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

Add this component to an entity to make it follow a fixed path. More...

#include <FixedPathBehavior.hpp>

Public Member Functions

 FixedPathBehavior (const file::Behavior::Path &path)
 Construct a new Fixed Path Behavior component. More...
 
void update (bl::tmap::Position &position, Controllable &controller)
 Updates the entity along the path. More...
 

Detailed Description

Add this component to an entity to make it follow a fixed path.

Definition at line 17 of file FixedPathBehavior.hpp.

Constructor & Destructor Documentation

◆ FixedPathBehavior()

core::component::FixedPathBehavior::FixedPathBehavior ( const file::Behavior::Path path)

Construct a new Fixed Path Behavior component.

Parameters
pathThe path to follow

Definition at line 7 of file FixedPathBehavior.cpp.

Member Function Documentation

◆ update()

void core::component::FixedPathBehavior::update ( bl::tmap::Position &  position,
Controllable controller 
)

Updates the entity along the path.

Parameters
positionThe position component of the entity
controllerThe controllable component of the entity

Definition at line 13 of file FixedPathBehavior.cpp.


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