|
R-Type
Distributed multiplayer game engine in C++
|
Represents a collision between two entities. More...
#include <CollisionEvent.hpp>


Public Member Functions | |
| CollisionEvent (int entityA, int entityB) | |
| Construct a collision event. | |
| ~CollisionEvent () override=default | |
| int | getEntityA () const |
| Get the first entity ID involved in the collision. | |
| int | getEntityB () const |
| Get the second entity ID involved in the collision. | |
Public Member Functions inherited from server::IEvent | |
| IEvent ()=default | |
| virtual | ~IEvent ()=default |
Private Attributes | |
| int | _entityA |
| int | _entityB |
Represents a collision between two entities.
Definition at line 18 of file CollisionEvent.hpp.
|
inline |
Construct a collision event.
| entityA | First entity ID |
| entityB | Second entity ID |
Definition at line 25 of file CollisionEvent.hpp.
|
overridedefault |
|
inline |
Get the first entity ID involved in the collision.
Definition at line 31 of file CollisionEvent.hpp.
References _entityA.
|
inline |
Get the second entity ID involved in the collision.
Definition at line 36 of file CollisionEvent.hpp.
References _entityB.
|
private |
Definition at line 39 of file CollisionEvent.hpp.
Referenced by getEntityA().
|
private |
Definition at line 40 of file CollisionEvent.hpp.
Referenced by getEntityB().