#include <BGBoard.h>
Public Member Functions | |
| CBGBoard () | |
| CBGBoard. | |
| ~CBGBoard () | |
| ~CBGBoard | |
| void | NewGame () |
| NewGame. | |
| void | PlayMove (const CBGMove *m) |
| PlayMove. | |
| bool | CheckMove (const CBGMove *m) |
| CheckMove. | |
| bool | VerifySingleMove (CBGPiece p, int32 start, int32 end, uint32 die) const |
| VerifySingleMove. | |
| bool | CheckForWin () |
| CheckForWin. | |
| void | UpdateCurrentPlayerPiece () |
| UpdateCurrentPlayerPiece. | |
Protected Member Functions | |
| void | PlaySingleMove (CBGPiece p, int32 start, int32 end, bool bEmitSignals=false) |
| PlaySingleMove. | |
| bool | HasValidMoves (CBGPlayerTurn player) |
| HasValidMoves. | |
| CBGPlayerTurn | RollDice () const |
| RollDice. | |
| std::vector< CBGMove > | GenerateMoves (uint32 die1, uint32 die2, CBGPiece p) |
| GenerateMoves. | |
Description: Represents a Backgammon game board.
Limitations: NONE
|
|
CBGBoard. Description: Class constructor Limitations: NONE |
|
|
~CBGBoard Description: Class deconstructor Limitations: NONE |
|
|
CheckForWin. Description: This function is called to check for win states.
|
|
|
CheckMove. Description: Checks a move and returns true if it is valid.
|
|
||||||||||||||||
|
GenerateMoves. Description: Returns a character representing the piece.
|
|
|
HasValidMoves. Description: This function is called to check if a player has any valid moves.
|
|
|
NewGame. Description: Resets the board to the beginning state.
|
|
|
PlayMove. Description: Updates the board based on a given move.
|
|
||||||||||||||||||||
|
PlaySingleMove. Description: Plays "half" a move.
|
|
|
RollDice. Description: This function is generate random numbers for the dice roll
|
|
|
UpdateCurrentPlayerPiece. Description: This function is called get the next player to play
|
|
||||||||||||||||||||
|
VerifySingleMove. Description: This function is called to verify "half" a move is valid.
|