Peoplemon  0.1.0
Peoplemon 3 game source documentation
SpinBehavior.hpp
Go to the documentation of this file.
1 #ifndef CORE_COMPONENTS_SPINBEHAVIOR_HPP
2 #define CORE_COMPONENTS_SPINBEHAVIOR_HPP
3 
6 
7 namespace core
8 {
9 namespace component
10 {
17 class SpinBehavior {
18 public:
25 
33  void update(bl::tmap::Position& position, Controllable& controller, float dt);
34 
35 private:
37  float standTime;
38 };
39 
40 } // namespace component
41 } // namespace core
42 
43 #endif
Core classes and functionality for both the editor and game.
Adding this component to an entity allows it to be controlled.
Add this to an entity to make it spin in place.
SpinBehavior(file::Behavior::Spinning::Direction dir)
Construct a new Spin Behavior component.
void update(bl::tmap::Position &position, Controllable &controller, float dt)
Updates the behavior.
Direction
The direction to spin.
Definition: Behavior.hpp:51