![]() |
Peoplemon
0.1.0
Peoplemon 3 game source documentation
|
Add this to an entity to make it spin in place. More...
#include <SpinBehavior.hpp>
Public Member Functions | |
SpinBehavior (file::Behavior::Spinning::Direction dir) | |
Construct a new Spin Behavior component. More... | |
void | update (bl::tmap::Position &position, Controllable &controller, float dt) |
Updates the behavior. More... | |
Add this to an entity to make it spin in place.
Definition at line 17 of file SpinBehavior.hpp.
core::component::SpinBehavior::SpinBehavior | ( | file::Behavior::Spinning::Direction | dir | ) |
Construct a new Spin Behavior component.
dir | The direction to spin in |
Definition at line 10 of file SpinBehavior.cpp.
void core::component::SpinBehavior::update | ( | bl::tmap::Position & | position, |
Controllable & | controller, | ||
float | dt | ||
) |
Updates the behavior.
position | The position component of the entity |
controller | The controllable component of the entity |
dt | Time elapsed in seconds |
Definition at line 14 of file SpinBehavior.cpp.