Peoplemon  0.1.0
Peoplemon 3 game source documentation
StandingBehavior.hpp
Go to the documentation of this file.
1 #ifndef CORE_COMPONENTS_STANDINGBEHAVIOR_HPP
2 #define CORE_COMPONENTS_STANDINGBEHAVIOR_HPP
3 
5 
6 namespace core
7 {
8 namespace component
9 {
17 public:
23  StandingBehavior(bl::tmap::Direction faceDir);
24 
32  void update(bl::tmap::Position& position, Controllable& controller);
33 
34 private:
35  const bl::tmap::Direction dir;
36 };
37 
38 } // namespace component
39 } // namespace core
40 
41 #endif
Core classes and functionality for both the editor and game.
Adding this component to an entity allows it to be controlled.
AI behavior for standing in place facing a fixed direction.
void update(bl::tmap::Position &position, Controllable &controller)
Ensures the managed entity is facing the required position.
StandingBehavior(bl::tmap::Direction faceDir)
Construct a new Standing Behavior component.