|
CBG
0.1
Compendium of board games
|
#include <SnakesAndLaddersPlayer.h>
Public Member Functions | |
| SnakesAndLaddersPlayer () | |
| SnakesAndLaddersPlayer (int amountOfTypes, vector< string > types, int maxPieces) | |
Public Member Functions inherited from Player | |
| Player () | |
| Public constructors. More... | |
| Player (int amountOfTypes, vector< string > types, int maxPieces) | |
| virtual | ~Player () |
| int | getAmountOfPieces () const |
| Public functions. More... | |
| bool | removePiece (Piece *toBeRemoved) |
| bool | hasType (int type) const |
| Check if pieces vector at index type is empty. More... | |
| bool | hasRoomForPiece () const |
| string | getCharacter (int type) const |
| Returns a string from pieces vector at index type. More... | |
| Piece & | addPiece () |
| Add pieces to the pieces vector. More... | |
| Piece & | addPiece (Piece *insert) |
| Piece & | getPiece (int index) const |
| Returns a reference to the piece in the pieces vector at index. More... | |
Public Attributes | |
| bool | suspended |
Public Attributes inherited from Player | |
| bool | suspended |
| Return weather this player can move or not. More... | |
Additional Inherited Members | |
Protected Attributes inherited from Player | |
| int | amountOfPieces |
| int | maxPieces |
| Int variable to store the max amount of pieces a player could own. More... | |
| int | amountOfTypes |
| Variable used to store the amount of types of pieces the player has. More... | |
| vector< string > | types |
| Vector to store the different types of pieces the player could own. More... | |
| vector< Piece * > | pieces |
| Vector of type Piece pointer to store all the pieces the player owns. More... | |
Player for snakes and ladders. Adds a suspended boolean.
| SnakesAndLaddersPlayer::SnakesAndLaddersPlayer | ( | ) |
| SnakesAndLaddersPlayer::SnakesAndLaddersPlayer | ( | int | amountOfTypes, |
| vector< string > | types, | ||
| int | maxPieces | ||
| ) |
Player for snakes and ladders. Adds a suspended boolean.
| bool SnakesAndLaddersPlayer::suspended |