AI_StateMachine::Session Class Reference

#include <AI_StateMachine.h>

Inheritance diagram for AI_StateMachine::Session:

AI_Actor::StateMachineSession

List of all members.


Detailed Description

State machine session.

Keep actual state of the state machine. Each user of state machine should have one.

Public Member Functions

 Session ()
 Constructor.
void setRootState (ai_index i_index)
 Set root state from which the state machine will begin (defaul is 0).
void setActualState (ai_index i_index)
 Set actual state of state machine.
ai_index getRootState (void) const
 Get root state from which the state machine will begin (defaul is 0).
ai_index getActualState (void) const
 Get actual state of state machine.
void reset (void)
 Reset state machine.

Protected Attributes

ai_index m_i_root_state
 Root state (where everything will begin).
ai_index m_i_actual_state
 Actual state in state machine.


Constructor & Destructor Documentation

AI_StateMachine::Session::Session (  )  [inline]

Constructor.


Member Function Documentation

void AI_StateMachine::Session::setRootState ( ai_index  i_index  )  [inline]

Set root state from which the state machine will begin (defaul is 0).

void AI_StateMachine::Session::setActualState ( ai_index  i_index  )  [inline]

Set actual state of state machine.

ai_index AI_StateMachine::Session::getRootState ( void   )  const [inline]

Get root state from which the state machine will begin (defaul is 0).

ai_index AI_StateMachine::Session::getActualState ( void   )  const [inline]

Get actual state of state machine.

void AI_StateMachine::Session::reset ( void   )  [inline]

Reset state machine.


Member Data Documentation

Root state (where everything will begin).

Actual state in state machine.


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