Tinman  1.0
Public Types | Public Member Functions | Private Types | Private Attributes | List of all members
StateMachine Class Reference

#include <statemachine.h>

Public Types

typedef std::shared_ptr< StateMachineshared
 

Public Member Functions

 StateMachine (Game::shared game)
 
virtual ~StateMachine ()
 
void change_state (void)
 
void set_current_state (StateName next_state)
 
State::shared get_state (StateName state)
 
State::shared get_current_state ()
 

Private Types

typedef std::map< StateName, State::sharedStateTable
 

Private Attributes

StateTable state_table_
 
StateName current_state_
 
Game::shared game_
 

Member Typedef Documentation

typedef std::shared_ptr<StateMachine> StateMachine::shared
typedef std::map<StateName, State::shared> StateMachine::StateTable
private

Constructor & Destructor Documentation

StateMachine::StateMachine ( Game::shared  game)
StateMachine::~StateMachine ( )
virtual

Member Function Documentation

void StateMachine::change_state ( void  )
State::shared StateMachine::get_current_state ( )
State::shared StateMachine::get_state ( StateName  state)
void StateMachine::set_current_state ( StateName  next_state)

Member Data Documentation

StateName StateMachine::current_state_
private
Game::shared StateMachine::game_
private
StateTable StateMachine::state_table_
private

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