#include <OthelloGM.h>
Inheritance diagram for COthelloGM:
Public Member Functions | |
COthelloGM () | |
COthelloGM. | |
~COthelloGM () | |
~COthelloGM | |
CEID | GetCEID () const |
GetCEID. | |
uint32 | GetMaxNumberPlayers () const |
VERSION CONTROL HISTORY
| |
Protected Member Functions | |
void | NewGame () |
NewGame. | |
void | PlayMove (const CMove *) |
PlayMove. | |
bool | CheckMove (const CMove *) |
CheckMove. | |
bool | CheckForWin () |
CheckForWin. | |
void | InvalidMoveProcessing (const CMove *) |
InvalidMoveProcessing. | |
void | UpdateCurrentPlayerPiece () |
UpdateCurrentPlayerPiece. | |
void | SetPlayerDescription () |
SetPlayerDescription. | |
void | AddPlayer (CDescription) |
AddPlayer. | |
void | RemovePlayer (CDescription desc) |
RemovePlayer. | |
void | TimeElapsed (const CPlayerPiece *) |
TimeElapsed. | |
bool | HasValidMoves (COthelloPiece player) |
HasValidMoves. | |
int8 | CheckDirection (const COthelloMove *m, int8 direction) const |
CheckDirection. |
Description: The Othello Game Module. It will check that moves are valid.
Limitations: NONE
|
COthelloGM. Description: Class constructor
|
|
~COthelloGM Description: Class deconstructor
|
|
AddPlayer. Description: Adds a player to the game.
Implements CGameModule. |
|
CheckDirection. Description:
|
|
CheckForWin. Description: This function is called to check for win states. Also needs to update the m_playerList to indicate the correct win states for the players
Implements CGameModule. |
|
CheckMove. Description: This function is called to verify a move is valid.
Implements CGameModule. |
|
GetCEID. Description: Returns the CEID of this game module
Implements CGameModule. |
|
VERSION CONTROL HISTORY
Revision 1.1 2005/04/14 04:38:29 mab6d5 Updated to use the new GM base class. Revision 1.1 2005/03/20 23:48:50 tcsvw5 Moved inline functions to seperate file Revision 1.0 2005/02/03 20:39:04 cafene Added CVS expansion keywords to the template. 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: Resets the board and sets the first player to move.
Implements CGameModule. |
|
PlayMove. Description: Plays a move.
Implements CGameModule. |
|
RemovePlayer. Description: Removes a player to the game. Set m_bReadyToStart to false if the game is no longer ready to start.
Implements CGameModule. |
|
SetPlayerDescription. Description: Sets the m_PlayerInfo variable with the correct data. Override this function and set your information.
Reimplemented from CGameModule. |
|
TimeElapsed. Description: Called when either a player's move time or game time has expired
Implements CGameModule. |
|
UpdateCurrentPlayerPiece. Description: Updates the value of the m_curPiece variable to the piece that should play now.
Implements CGameModule. |