![]() |
Peoplemon
0.1.0
Peoplemon 3 game source documentation
|
AI behavior for standing in place facing a fixed direction. More...
#include <StandingBehavior.hpp>
Public Member Functions | |
StandingBehavior (bl::tmap::Direction faceDir) | |
Construct a new Standing Behavior component. More... | |
void | update (bl::tmap::Position &position, Controllable &controller) |
Ensures the managed entity is facing the required position. More... | |
AI behavior for standing in place facing a fixed direction.
Definition at line 16 of file StandingBehavior.hpp.
core::component::StandingBehavior::StandingBehavior | ( | bl::tmap::Direction | faceDir | ) |
Construct a new Standing Behavior component.
faceDir | The direction to face |
Definition at line 7 of file StandingBehavior.cpp.
void core::component::StandingBehavior::update | ( | bl::tmap::Position & | position, |
Controllable & | controller | ||
) |
Ensures the managed entity is facing the required position.
position | The entities position component |
controller | The entities controllable component |
Definition at line 10 of file StandingBehavior.cpp.