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

AI behavior for standing in place facing a fixed direction. More...

#include <StandingBehavior.hpp>

Public Member Functions

 StandingBehavior (bl::tmap::Direction faceDir)
 Construct a new Standing Behavior component. More...
 
void update (bl::tmap::Position &position, Controllable &controller)
 Ensures the managed entity is facing the required position. More...
 

Detailed Description

AI behavior for standing in place facing a fixed direction.

Definition at line 16 of file StandingBehavior.hpp.

Constructor & Destructor Documentation

◆ StandingBehavior()

core::component::StandingBehavior::StandingBehavior ( bl::tmap::Direction  faceDir)

Construct a new Standing Behavior component.

Parameters
faceDirThe direction to face

Definition at line 7 of file StandingBehavior.cpp.

Member Function Documentation

◆ update()

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

Ensures the managed entity is facing the required position.

Parameters
positionThe entities position component
controllerThe entities controllable component

Definition at line 10 of file StandingBehavior.cpp.


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