ScummVM API documentation
hpl::cStateMachine Class Reference

Public Member Functions

void Update (float afTime)
 
void AddState (iAIState *apState, const tString &asName, int alId, float afUpdateStep)
 
void ChangeState (int alId)
 
void SetActive (bool abX)
 
bool IsActive ()
 
iAIStateGetState (int alId)
 
iAIStateCurrentState ()
 

Member Function Documentation

◆ AddState()

void hpl::cStateMachine::AddState ( iAIState apState,
const tString asName,
int  alId,
float  afUpdateStep 
)

Adds a new state to the state machine. The state machine will destroy them when deleted.


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