![]() |
Peoplemon
0.1.0
Peoplemon 3 game source documentation
|
Fired after an entity begins moving from one position to another. More...
#include <EntityMoved.hpp>
Public Member Functions | |
EntityMoved (bl::ecs::Entity entity, const bl::tmap::Position &oldPos, const bl::tmap::Position &pos, bool running=false) | |
Construct a new EntityMoved event. More... | |
Public Attributes | |
const bl::ecs::Entity | entity |
The entity that moved. More... | |
const bl::tmap::Position | previousPosition |
The previous position of the entity. More... | |
const bl::tmap::Position & | position |
The current position of the entity. More... | |
const bool | running |
Whether or not the entity is running. More... | |
Fired after an entity begins moving from one position to another.
Definition at line 18 of file EntityMoved.hpp.
|
inline |
Construct a new EntityMoved event.
entity | The entity that moved |
oldPos | The old position |
pos | The current position |
Definition at line 38 of file EntityMoved.hpp.
const bl::ecs::Entity core::event::EntityMoved::entity |
The entity that moved.
Definition at line 20 of file EntityMoved.hpp.
const bl::tmap::Position& core::event::EntityMoved::position |
The current position of the entity.
Definition at line 26 of file EntityMoved.hpp.
const bl::tmap::Position core::event::EntityMoved::previousPosition |
The previous position of the entity.
Definition at line 23 of file EntityMoved.hpp.
const bool core::event::EntityMoved::running |
Whether or not the entity is running.
Definition at line 29 of file EntityMoved.hpp.