CScores Class Reference

#include <CScores.h>

Collaboration diagram for CScores:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 CScores ()
 ~CScores ()
void SetOptions (COptions *pOptions)
 Set link to the options object to use.
void Reset (void)
 Reset the scores to zero.
void RaisePlayerScore (int Player)
 Add one to the score of the specified player.
void RaiseDrawGamesCount (void)
 Add one to the draw games count.
int GetPlayerScore (int Player)
 Get the score of a player.
int GetDrawGamesCount (void)
 Get how many draw games there were.

Private Attributes

COptionsm_pOptions
 Link to the options object to use.
int m_Scores [MAX_PLAYERS]
 Score of each player.
int m_DrawGamesCount
 Number of draw games.


Constructor & Destructor Documentation

CScores::CScores ( void   ) 

Here is the call graph for this function:

CScores::~CScores ( void   ) 


Member Function Documentation

void CScores::SetOptions ( COptions pOptions  )  [inline]

Set link to the options object to use.

Here is the caller graph for this function:

void CScores::Reset ( void   ) 

Reset the scores to zero.

Here is the caller graph for this function:

void CScores::RaisePlayerScore ( int  Player  ) 

Add one to the score of the specified player.

Here is the call graph for this function:

Here is the caller graph for this function:

void CScores::RaiseDrawGamesCount ( void   ) 

Add one to the draw games count.

Here is the caller graph for this function:

int CScores::GetPlayerScore ( int  Player  )  [inline]

Get the score of a player.

Here is the caller graph for this function:

int CScores::GetDrawGamesCount ( void   )  [inline]

Get how many draw games there were.

Here is the caller graph for this function:


Member Data Documentation

Link to the options object to use.

int CScores::m_Scores[MAX_PLAYERS] [private]

Score of each player.

Number of draw games.


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

Generated on Sat Oct 18 12:26:48 2008 for Bombermaaan by  doxygen 1.5.5
Visit the Bombermaaan project page
SourceForge.net Logo