CBG  0.1
Compendium of board games
SnakesAndLaddersPlayer Class Reference

#include <SnakesAndLaddersPlayer.h>

Inheritance diagram for SnakesAndLaddersPlayer:
Player

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...
 
PieceaddPiece ()
 Add pieces to the pieces vector. More...
 
PieceaddPiece (Piece *insert)
 
PiecegetPiece (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...
 

Detailed Description

Player for snakes and ladders. Adds a suspended boolean.

Author
Ian Duffy

Constructor & Destructor Documentation

SnakesAndLaddersPlayer::SnakesAndLaddersPlayer ( )
SnakesAndLaddersPlayer::SnakesAndLaddersPlayer ( int  amountOfTypes,
vector< string >  types,
int  maxPieces 
)

Player for snakes and ladders. Adds a suspended boolean.

Author
Ian Duffy

Member Data Documentation

bool SnakesAndLaddersPlayer::suspended

The documentation for this class was generated from the following files: