Define the interface for the collider object.
More...
#include <i_collider.h>
Define the interface for the collider object.
virtual IBehavior* Graphics::ICollider::getAction |
( |
void |
| ) |
const |
|
pure virtual |
Get the action that the collider will execute.
- Returns
- IBehavior *
virtual bool Graphics::ICollider::isCollision |
( |
IObject * |
obj_1, |
|
|
IObject * |
obj_2 |
|
) |
| |
|
pure virtual |
Compute if the couple of objects is colliding.
- Parameters
-
obj_1 | : Contains the first object. |
obj_2 | : Contains the second object. |
- Returns
- true : if the couple of objects is colliding.
-
false : if they don't collide.
virtual bool Graphics::ICollider::isValid |
( |
std::string const & |
obj_1, |
|
|
std::string const & |
obj_2 |
|
) |
| |
|
pure virtual |
Verify if the couple of objects is supported by the collider.
- Parameters
-
obj_1 | : Contains the key of the first object. |
obj_2 | : Contains the key of the second object. |
- Returns
- true : if the collider support the couple of objects.
-
false : if the collider doesn't support the couple of objects.
The documentation for this class was generated from the following file:
- /home/robin_f/Programming/Git/CPP/LoveBrains/include/Graphics/i_collider.h