#include <Collision.hpp>
Definition at line 12 of file Collision.hpp.
◆ Collision()
| Collision::Collision |
( |
std::shared_ptr< ServerSocket > |
serverSocket | ) |
|
|
inlineexplicit |
◆ cancelMove()
| void Collision::cancelMove |
( |
const std::shared_ptr< Event > & |
event, |
|
|
const std::shared_ptr< Drawable > & |
drawable |
|
) |
| |
|
static |
cancelMove, cancel the move
- Parameters
-
Definition at line 72 of file Collision.cpp.
◆ checkCollision()
| bool Collision::checkCollision |
( |
const std::shared_ptr< Drawable > & |
drawable, |
|
|
const std::shared_ptr< Drawable > & |
other |
|
) |
| |
|
static |
checkCollision, check the collision
- Parameters
-
- Returns
- bool (true or false) if there is a collision
Definition at line 53 of file Collision.cpp.
◆ update()
| void Collision::update |
( |
std::shared_ptr< Event > |
event, |
|
|
std::shared_ptr< IComponentRType > |
component |
|
) |
| |
|
overridevirtual |
◆ _score
| int Collision::_score = 0 |
The documentation for this class was generated from the following files: