#include <StrategoGM.h>
Inheritance diagram for CStrategoGM:
Public Member Functions | |
CStrategoGM () | |
CStrategoGM. | |
~CStrategoGM () | |
~CStrategoGM | |
virtual CEID | GetCEID () const |
GetCEID. | |
virtual void | RemovePlayer (CDescription desc) |
RemovePlayer. | |
virtual uint32 | GetMaxNumberPlayers () const |
SetPlayerDescription. | |
virtual uint32 | GetMinNumberPlayers () const |
SetPlayerDescription. | |
Protected Member Functions | |
virtual void | PlayMove (const CMove *m) |
PlayMove. | |
virtual bool | CheckMove (const CMove *m) |
CheckMove. | |
bool | Defeats (STRATEGOPIECE p1, STRATEGOPIECE p2) const |
Defeats. | |
virtual bool | CheckForWin () |
CheckForWin. | |
virtual void | UpdateCurrentPlayerPiece () |
UpdateCurrentPlayerPiece. | |
virtual void | AddPlayer (CDescription desc) |
AddPlayer. | |
void | SetPlayerDescription () |
SetPlayerDescription. | |
virtual void | NewGame () |
NewGame. | |
virtual void | InvalidMoveProcessing (const CMove *p) |
AddPlayer. | |
virtual void | OnGameSpecificMessage (const CGameMessage *pMsg) |
OnGameSpecificMessage. | |
virtual CMove * | RelayMove (CEID playerID, CMove *pMove) |
RelayMove. | |
virtual void | TimeElapsed (const CPlayerPiece *p) |
TimeElapsed. |
Description: The Stratego Game Module. It will check that moves are valid.
Limitations: NONE
|
CStrategoGM. Description: Class constructor
|
|
~CStrategoGM Description: Class deconstructor
|
|
AddPlayer. Description:
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. |
|
Defeats. Description: returns true if piece p1 defeats piece p2 in an attack
|
|
GetCEID. Description: Returns the CEID of this game module
Implements CGameModule. |
|
SetPlayerDescription. Description:
Implements CGameModule. |
|
SetPlayerDescription. Description:
Implements CGameModule. |
|
AddPlayer. Description:
Implements CGameModule. |
|
NewGame. Description: Builds a new game board
Implements CGameModule. |
|
OnGameSpecificMessage. Description: Used to process other game specific game messages
Reimplemented from CGameModule. |
|
PlayMove. Description: Plays a move.
Implements CGameModule. |
|
RelayMove. Description: Used to determine which parts of a move a given player is allowed to see
Reimplemented from 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:
Implements CGameModule. |