Peoplemon  0.1.0
Peoplemon 3 game source documentation
Public Member Functions | List of all members
core::component::SpinBehavior Class Reference

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...
 

Detailed Description

Add this to an entity to make it spin in place.

Definition at line 17 of file SpinBehavior.hpp.

Constructor & Destructor Documentation

◆ SpinBehavior()

core::component::SpinBehavior::SpinBehavior ( file::Behavior::Spinning::Direction  dir)

Construct a new Spin Behavior component.

Parameters
dirThe direction to spin in

Definition at line 10 of file SpinBehavior.cpp.

Member Function Documentation

◆ update()

void core::component::SpinBehavior::update ( bl::tmap::Position &  position,
Controllable controller,
float  dt 
)

Updates the behavior.

Parameters
positionThe position component of the entity
controllerThe controllable component of the entity
dtTime elapsed in seconds

Definition at line 14 of file SpinBehavior.cpp.


The documentation for this class was generated from the following files: