#include <TicTacToeGM.h>
Inheritance diagram for CTicTacToeGM:

Public Member Functions | |
| CTicTacToeGM () | |
| CTicTacToeGM. | |
| ~CTicTacToeGM () | |
| ~CTicTacToeGM | |
| CEID | GetCEID () const |
| GetCEID. | |
| uint32 | GetMaxNumberPlayers () const |
| GetMaxNumberPlayers. | |
| uint32 | GetMinNumberPlayers () const |
| GetMixNumberPlayers. | |
| uint32 | GetNumberPlayers () const |
| GetNumberPlayers. | |
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 *m) |
| InvalidMoveProcessing. | |
| void | UpdateCurrentPlayerPiece () |
| UpdateCurrentPlayerPiece. | |
| void | SetPlayerDescription () |
| SetPlayerDescription. | |
| void | AddPlayer (CDescription desc) |
| AddPlayer. | |
| void | RemovePlayer (CDescription desc) |
| RemovePlayer. | |
| void | TimeElapsed (const CPlayerPiece *piece) |
| TimeElapsed. | |
| bool | CheckForPieceWin (CTicTacToePiece p) const |
| CheckForPieceWin. | |
Description: Game module for Tic-Tac-Toe
Limitations: NONE
|
|
CTicTacToeGM. Description: Class constructor Limitations: NONE |
|
|
~CTicTacToeGM Description: Class deconstructor Limitations: NONE |
|
|
AddPlayer. Description: This function is called to add a player to the game.
Implements CGameModule. |
|
|
CheckForPieceWin. Description: Checks to see if a certain piece is a winner.
|
|
|
CheckForWin. Description: Checks for a winner of the game.
Implements CGameModule. |
|
|
CheckMove. Description: Checks a move for validity and returns true if the move is valid.
Implements CGameModule. |
|
|
GetCEID. Description: Returns the CEID of this game module.
Implements CGameModule. |
|
|
GetMaxNumberPlayers. Description: Returns the minimum number of players required to play this game.
Implements CGameModule. |
|
|
GetMixNumberPlayers. Description: Returns the minimum number of players required to play this game.
Implements CGameModule. |
|
|
GetNumberPlayers. Description: Returns the current number of players
Implements CGameModule. |
|
|
InvalidMoveProcessing. Description: Called when an invalid move has been determined. It declares the other person to be the winner.
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 from the game. This function will only be called when a game is not being played.
Implements CGameModule. |
|
|
SetPlayerDescription. Description: Sets the description of this game module.
Reimplemented from CGameModule. |
|
|
TimeElapsed. Description: Called when the time of one of the players has expired.
Implements CGameModule. |
|
|
UpdateCurrentPlayerPiece. Description: Updates the current player piece to the next person who is to move.
Implements CGameModule. |