#include <BackgammonGM.h>
Inheritance diagram for CBackgammonGM:
Public Member Functions | |
CBackgammonGM () | |
CBackgammonGM. | |
~CBackgammonGM () | |
~CBackgammonGM | |
CEID | GetCEID () const |
GetCEID. | |
Protected Member Functions | |
void | NewGame () |
NewGame. | |
void | PlayMove (const CMove *m) |
PlayMove. | |
bool | CheckMove (const CMove *m) |
CheckMove. | |
bool | CheckForWin () |
CheckForWin. | |
void | InvalidMoveProcessing (const CMove *p) |
InvalidMoveProcessing. | |
void | SetPlayerDescription () |
VERSION CONTROL HISTORY
| |
void | UpdateCurrentPlayerPiece () |
UpdateCurrentPlayerPiece. | |
void | AddPlayer (CDescription desc) |
AddPlayer. | |
void | RemovePlayer (CDescription desc) |
RemovePlayer. | |
void | TimeElapsed (const CPlayerPiece *piece) |
TimeElapsed. | |
void | PlaySingleMove (CBGPiece p, int32 start, int32 end) |
PlaySingleMove. | |
CBGPlayerTurn | RollDice () const |
RollDice. | |
bool | VerifySingleMove (CBGPiece p, int32 start, int32 end, uint32 die) const |
VerifySingleMove. | |
bool | HasValidMoves (CBGPlayerTurn player) |
HasValidMoves. | |
std::vector< CBGMove > | GenerateMoves (uint32 die1, uint32 die2, CBGPiece p) |
GenerateMoves. |
Description: The Backgammon Game Module. It will check that moves are valid.
Limitations: NONE
|
CBackgammonGM. Description: Class constructor
|
|
~CBackgammonGM Description: Class deconstructor
|
|
AddPlayer. Description: Adds a new player to the game.
Implements CGameModule. |
|
CheckForWin. Description: This function is called to check for win states.
Implements CGameModule. |
|
CheckMove. Description: This function is called to verify a move is valid.
Implements CGameModule. |
|
GenerateMoves. Description: Returns a character representing the piece.
|
|
GetCEID. Description: Returns the CEID of this game module
Implements CGameModule. |
|
HasValidMoves. Description: This function is called to check if a player has any valid moves.
|
|
InvalidMoveProcessing. Description: Called when an invalid move was discovered. Set m_bGameOver to true and set the m_winningMsg & m_winningMsgLength values if you want the game to end.
Implements CGameModule. |
|
NewGame. Description: Initalizes the game board and sets the m_curPiece value to the first player that should play.
Implements CGameModule. |
|
PlayMove. Description: Plays a move.
Implements CGameModule. |
|
PlaySingleMove. Description: Plays "half" a move.
|
|
RemovePlayer. Description: Removes a player from the game.
Implements CGameModule. |
|
RollDice. Description: This function is generate random numbers for the dice roll
|
|
VERSION CONTROL HISTORY
Revision 1.1 2005/05/12 15:59:18 tcsvw5 BackgammonGM.hpp Revision 1.2 2005/04/16 22:28:21 mab6d5 Updated for new GM base class Revision 1.1 2005/04/05 04:44:36 tcsvw5 empty log message *** Revision 1.1 2005/03/20 23:48:50 tcsvw5 Initial revison Revision 1.0 2005/02/03 20:39:04 cafene Added CVS expansion keywords to the template. Reimplemented from CGameModule. |
|
TimeElapsed. Description: Called when either a player's move time or game time has expired
Implements CGameModule. |
|
UpdateCurrentPlayerPiece. Description: This function is called get the next player to play
Implements CGameModule. |
|
VerifySingleMove. Description: This function is called to verify "half" a move is valid.
|