#include <FiniteStateMachine.h>
| ADBLib::FiniteStateMachine::FiniteStateMachine |
( |
| ) |
|
| virtual ADBLib::FiniteStateMachine::~FiniteStateMachine |
( |
| ) |
|
|
inlinevirtual |
Sets up the finite state machine with a new state table and a state to start from.
- Parameters
-
| newStateTable | An array of FSMTransitions - the state table from which transition data will be drawn. |
| initState | The state from which the FSM should start. |
- Note
- This process is not completely inexpensive (especially for large state tables). It converts an array to an std::multimap.
| void ADBLib::FiniteStateMachine::update |
( |
| ) |
|
|
virtual |
Updates the current state and applies transitions when needed. Uses multimaps to enhance transition speed.
| FSMState* ADBLib::FiniteStateMachine::currentState |
|
protected |
The documentation for this class was generated from the following files: