pcce::IGameState Class Reference

Base game state class. More...

#include <IGameState.h>

List of all members.

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


Detailed Description

Base game state class.

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.


Constructor & Destructor Documentation

IGameState::IGameState (  ) 

Definition at line 40 of file IGameState.cpp.

00040                       : mProcessList(new ProcessList()) {
00041 }

virtual pcce::IGameState::~IGameState (  )  [inline, virtual]

Definition at line 55 of file IGameState.h.

00055 {};


Member Function Documentation

virtual void pcce::IGameState::vSwitchTo (  )  [inline, virtual]

Definition at line 57 of file IGameState.h.

00057 {};

virtual void pcce::IGameState::vSwitchFrom (  )  [inline, virtual]

Definition at line 58 of file IGameState.h.

00058 {};

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.

Parameters:
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 }


Member Data Documentation

Definition at line 74 of file IGameState.h.

Referenced by GetScene().

Definition at line 80 of file IGameState.h.

Referenced by AddProcess(), ExecProcesses(), and HasActiveProcesses().


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

Generated on Thu Mar 6 11:39:28 2008 for Protocce by  doxygen 1.5.5