BWAPI
Public Member Functions
StateMachine< entity_type > Class Template Reference

#include <StateMachine.h>

List of all members.

Public Member Functions

 StateMachine (entity_type *owner)
virtual ~StateMachine ()
void SetCurrentState (State< entity_type > *s)
void SetGlobalState (State< entity_type > *s)
void SetPreviousState (State< entity_type > *s)
void Update () const
void ChangeState (State< entity_type > *pNewState)
void RevertToPreviousState ()
bool isInState (const State< entity_type > &st) const
State< entity_type > * GetCurrentState () const
State< entity_type > * GetGlobalState () const
State< entity_type > * GetPreviousState () const

template<class entity_type>
class StateMachine< entity_type >


Constructor & Destructor Documentation

template<class entity_type>
StateMachine< entity_type >::StateMachine ( entity_type *  owner) [inline]
template<class entity_type>
virtual StateMachine< entity_type >::~StateMachine ( ) [inline, virtual]

Member Function Documentation

template<class entity_type>
void StateMachine< entity_type >::ChangeState ( State< entity_type > *  pNewState) [inline]

Here is the caller graph for this function:

template<class entity_type>
State<entity_type>* StateMachine< entity_type >::GetCurrentState ( ) const [inline]
template<class entity_type>
State<entity_type>* StateMachine< entity_type >::GetGlobalState ( ) const [inline]
template<class entity_type>
State<entity_type>* StateMachine< entity_type >::GetPreviousState ( ) const [inline]
template<class entity_type>
bool StateMachine< entity_type >::isInState ( const State< entity_type > &  st) const [inline]
template<class entity_type>
void StateMachine< entity_type >::RevertToPreviousState ( ) [inline]
template<class entity_type>
void StateMachine< entity_type >::SetCurrentState ( State< entity_type > *  s) [inline]
template<class entity_type>
void StateMachine< entity_type >::SetGlobalState ( State< entity_type > *  s) [inline]
template<class entity_type>
void StateMachine< entity_type >::SetPreviousState ( State< entity_type > *  s) [inline]
template<class entity_type>
void StateMachine< entity_type >::Update ( ) const [inline]

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines