#include <IGameState.h>
Public Member Functions | |
| IGameState () | |
| virtual | ~IGameState () |
| virtual void | vSwitchTo () |
| virtual void | vSwitchFrom () |
| void | ExecProcesses (const tMillisecond timeDelta) |
| Update each of the processes currently live in this state. | |
| bool | HasActiveProcesses () |
| tScenePtr | GetScene () |
Protected Member Functions | |
| void | AddProcess (tIProcessPtr process) |
| Add a process to the process list. | |
Protected Attributes | |
| tScenePtr | mScene |
Private Attributes | |
| tProcessListPtr | mProcessList |
This class is the base game state class. The game states are the primary location for game logic.
Definition at line 52 of file IGameState.h.
| IGameState::IGameState | ( | ) |
| virtual pcce::IGameState::~IGameState | ( | ) | [inline, virtual] |
| virtual void pcce::IGameState::vSwitchTo | ( | ) | [inline, virtual] |
| virtual void pcce::IGameState::vSwitchFrom | ( | ) | [inline, virtual] |
| void IGameState::ExecProcesses | ( | const tMillisecond | timeDelta | ) |
Update each of the processes currently live in this state.
This method runs through the list of active processes in this state and updates them.
| timeDelta | Amount of time in milliseconds that has passed since the last update |
Definition at line 43 of file IGameState.cpp.
References mProcessList.
00043 { 00044 mProcessList->ExecuteAllProcesses(timeDelta); 00045 }
| bool IGameState::HasActiveProcesses | ( | ) |
Definition at line 47 of file IGameState.cpp.
References mProcessList.
00047 { 00048 return mProcessList->GetProcessCount() > 0; 00049 }
| tScenePtr IGameState::GetScene | ( | ) |
Definition at line 51 of file IGameState.cpp.
References mScene.
00051 { 00052 return mScene; 00053 }
| void IGameState::AddProcess | ( | tIProcessPtr | process | ) | [protected] |
Add a process to the process list.
Definition at line 55 of file IGameState.cpp.
References mProcessList.
00055 { 00056 mProcessList->AddProcess(process); 00057 }
tScenePtr pcce::IGameState::mScene [protected] |
Definition at line 80 of file IGameState.h.
Referenced by AddProcess(), ExecProcesses(), and HasActiveProcesses().
1.5.5