![]() |
Peoplemon
0.1.0
Peoplemon 3 game source documentation
|
Add this component to an entity to make it follow a fixed path. More...
#include <FixedPathBehavior.hpp>
Public Member Functions | |
FixedPathBehavior (const file::Behavior::Path &path) | |
Construct a new Fixed Path Behavior component. More... | |
void | update (bl::tmap::Position &position, Controllable &controller) |
Updates the entity along the path. More... | |
Add this component to an entity to make it follow a fixed path.
Definition at line 17 of file FixedPathBehavior.hpp.
core::component::FixedPathBehavior::FixedPathBehavior | ( | const file::Behavior::Path & | path | ) |
Construct a new Fixed Path Behavior component.
path | The path to follow |
Definition at line 7 of file FixedPathBehavior.cpp.
void core::component::FixedPathBehavior::update | ( | bl::tmap::Position & | position, |
Controllable & | controller | ||
) |
Updates the entity along the path.
position | The position component of the entity |
controller | The controllable component of the entity |
Definition at line 13 of file FixedPathBehavior.cpp.