Peoplemon  0.1.0
Peoplemon 3 game source documentation
FixedPathBehavior.hpp
Go to the documentation of this file.
1 #ifndef CORE_COMPONENTS_FIXEDPATHBEHAVIOR_HPP
2 #define CORE_COMPONENTS_FIXEDPATHBEHAVIOR_HPP
3 
6 
7 namespace core
8 {
9 namespace component
10 {
18 public:
25 
32  void update(bl::tmap::Position& position, Controllable& controller);
33 
34 private:
35  const file::Behavior::Path path;
36  bool backwards;
37  unsigned int currentPace;
38  unsigned int currentStep;
39 };
40 
41 } // namespace component
42 } // namespace core
43 
44 #endif
Core classes and functionality for both the editor and game.
Adding this component to an entity allows it to be controlled.
Add this component to an entity to make it follow a fixed path.
void update(bl::tmap::Position &position, Controllable &controller)
Updates the entity along the path.
FixedPathBehavior(const file::Behavior::Path &path)
Construct a new Fixed Path Behavior component.
Contains data for when the behavior type is following a path.
Definition: Behavior.hpp:70