| 
    Planeshift
    
   | 
 
Wrapper class for game board. More...
#include <psminigameboard.h>
Public Member Functions | |
| bool | DetermineEndgame (Endgame_TileType &winningPiece) | 
| determine if the current layout matches an endgame pattern. Returns true or false appropriately.  More... | |
| uint8_t | Get (uint8_t col, uint8_t row) const | 
| Gets the tile state from the specified column and row.  More... | |
| uint8_t | GetCols () const | 
| Returns the number of columns.  More... | |
| uint8_t * | GetLayout () const | 
| Returns the packed game board layout.  More... | |
| Rule_MoveablePieces | GetMoveablePiecesRule (void) | 
| Rule_MoveDirection | GetMoveDirectionRule (void) | 
| int | GetMoveDistanceRule (void) | 
| Rule_MovePiecesTo | GetMovePiecesToRule (void) | 
| Rule_MovePieceType | GetMovePieceTypeRule (void) | 
| uint8_t | GetNumPieces () const | 
| Returns the number of available pieces.  More... | |
| uint8_t | GetNumPlayers (void) | 
| returns number of players  More... | |
| uint8_t * | GetPieces () const | 
| Returns the package list of available pieces.  More... | |
| uint8_t | GetPiecesSize () const | 
| Returns the number of available pieces.  More... | |
| Rule_PlayerTurn | GetPlayerTurnRule (void) | 
| return Game rules  More... | |
| uint8_t | GetRows () const | 
| Returns the number of rows.  More... | |
| psMiniGameBoard () | |
| void | Set (uint8_t col, uint8_t row, uint8_t state) | 
| Sets the tile state at the specified column and row.  More... | |
| void | Setup (psMiniGameBoardDef *newGameDef, uint8_t *preparedLayout) | 
| Sets up the game board layout.  More... | |
| ~psMiniGameBoard () | |
Wrapper class for game board.
Wrapper class for a mini-game in play, and exists singly with a unique mini-game session.
Definition at line 218 of file psminigameboard.h.
| psMiniGameBoard::psMiniGameBoard | ( | ) | 
| psMiniGameBoard::~psMiniGameBoard | ( | ) | 
| bool psMiniGameBoard::DetermineEndgame | ( | Endgame_TileType & | winningPiece | ) | 
determine if the current layout matches an endgame pattern. Returns true or false appropriately.
| uint8_t psMiniGameBoard::Get | ( | uint8_t | col, | 
| uint8_t | row | ||
| ) | const | 
Gets the tile state from the specified column and row.
      
  | 
  inline | 
Returns the number of columns.
Definition at line 230 of file psminigameboard.h.
      
  | 
  inline | 
Returns the packed game board layout.
Definition at line 242 of file psminigameboard.h.
      
  | 
  inline | 
Definition at line 286 of file psminigameboard.h.
      
  | 
  inline | 
Definition at line 294 of file psminigameboard.h.
      
  | 
  inline | 
Definition at line 298 of file psminigameboard.h.
      
  | 
  inline | 
Definition at line 290 of file psminigameboard.h.
      
  | 
  inline | 
Definition at line 282 of file psminigameboard.h.
      
  | 
  inline | 
Returns the number of available pieces.
Definition at line 248 of file psminigameboard.h.
      
  | 
  inline | 
returns number of players
Definition at line 272 of file psminigameboard.h.
      
  | 
  inline | 
Returns the package list of available pieces.
Definition at line 260 of file psminigameboard.h.
      
  | 
  inline | 
Returns the number of available pieces.
Definition at line 254 of file psminigameboard.h.
      
  | 
  inline | 
return Game rules
Definition at line 278 of file psminigameboard.h.
      
  | 
  inline | 
Returns the number of rows.
Definition at line 236 of file psminigameboard.h.
| void psMiniGameBoard::Set | ( | uint8_t | col, | 
| uint8_t | row, | ||
| uint8_t | state | ||
| ) | 
Sets the tile state at the specified column and row.
| void psMiniGameBoard::Setup | ( | psMiniGameBoardDef * | newGameDef, | 
| uint8_t * | preparedLayout | ||
| ) | 
Sets up the game board layout.