GAMESTATE Class Reference

#include <gamestate.h>

Collaboration diagram for GAMESTATE:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 GAMESTATE ()
void UpdateSettings ()
STATES GetGameState ()
void SetGameState (STATES newstate)
void SetGameMode (MODES newmode)
MODES GetGameMode ()
void SetCarName (int p, string cn)
void SetCarPaint (int p, int cp)
void SetTrackName (string tn)
string GetTrackName ()
string GetCarName (int p)
int GetCarPaint (int p)

Private Attributes

STATES state
MODES mode
PLAYERINFO players [MAX_PLAYERS]
string trackname

Detailed Description

Definition at line 52 of file gamestate.h.


Constructor & Destructor Documentation

GAMESTATE::GAMESTATE  ) 
 

Definition at line 19 of file gamestate.cpp.

References state, and STATE_INIT.


Member Function Documentation

string GAMESTATE::GetCarName int  p  )  [inline]
 

Definition at line 76 of file gamestate.h.

References PLAYERINFO::carname, and players.

Referenced by MULTIPLAY::ExchangeWorldInfo(), InitGameData(), LoadWorld(), ResetWorld(), SelectCar(), and REPLAY::WriteHeader().

int GAMESTATE::GetCarPaint int  p  )  [inline]
 

Definition at line 77 of file gamestate.h.

References PLAYERINFO::carpaint, and players.

Referenced by MULTIPLAY::ExchangeWorldInfo(), SelectCar(), and REPLAY::WriteHeader().

MODES GAMESTATE::GetGameMode  )  [inline]
 

Definition at line 69 of file gamestate.h.

References mode.

Referenced by REPLAY::PlayStart(), and REPLAY::Start().

STATES GAMESTATE::GetGameState  ) 
 

Definition at line 31 of file gamestate.cpp.

References state.

Referenced by TIMER::Draw(), drawGLScene(), REPLAY::PlayStart(), REPLAY::Start(), TIMER::TickTimer(), and Update().

string GAMESTATE::GetTrackName  )  [inline]
 

Definition at line 75 of file gamestate.h.

References trackname.

Referenced by MULTIPLAY::ExchangeWorldInfo(), InitGameData(), LoadWorld(), and REPLAY::WriteHeader().

void GAMESTATE::SetCarName int  p,
string  cn
 

Definition at line 41 of file gamestate.cpp.

References PLAYERINFO::carname, players, SETTINGS::Set(), and settings.

Referenced by InitGameData(), LoadWorld(), REPLAY::PlayStart(), and SelectCar().

void GAMESTATE::SetCarPaint int  p,
int  cp
 

Definition at line 49 of file gamestate.cpp.

References PLAYERINFO::carpaint, players, SETTINGS::Set(), and settings.

Referenced by InitGameData(), LoadWorld(), and REPLAY::PlayStart().

void GAMESTATE::SetGameMode MODES  newmode  )  [inline]
 

Definition at line 68 of file gamestate.h.

References mode, SETTINGS::Set(), and settings.

void GAMESTATE::SetGameState STATES  newstate  ) 
 

Definition at line 36 of file gamestate.cpp.

References state.

Referenced by InitGameData(), REPLAY::PlayStart(), VGUI::Gui::ProcessAction(), Quit(), REPLAY::Start(), and TIMER::TickTimer().

void GAMESTATE::SetTrackName string  tn  )  [inline]
 

Definition at line 73 of file gamestate.h.

References SETTINGS::Set(), settings, and trackname.

Referenced by InitGameData(), LoadWorld(), and REPLAY::PlayStart().

void GAMESTATE::UpdateSettings  ) 
 

Definition at line 24 of file gamestate.cpp.

References SETTINGS::Get(), mode, and settings.


Member Data Documentation

MODES GAMESTATE::mode [private]
 

Definition at line 56 of file gamestate.h.

Referenced by GetGameMode(), SetGameMode(), and UpdateSettings().

PLAYERINFO GAMESTATE::players[MAX_PLAYERS] [private]
 

Definition at line 57 of file gamestate.h.

Referenced by GetCarName(), GetCarPaint(), SetCarName(), and SetCarPaint().

STATES GAMESTATE::state [private]
 

Definition at line 55 of file gamestate.h.

Referenced by GAMESTATE(), GetGameState(), and SetGameState().

string GAMESTATE::trackname [private]
 

Definition at line 58 of file gamestate.h.

Referenced by GetTrackName(), and SetTrackName().


The documentation for this class was generated from the following files:
Generated on Thu Oct 19 04:11:51 2006 by  doxygen 1.4.6