|
CBG
0.1
Compendium of board games
|
#include <IdentifierPiece.h>
Public Member Functions | |
| IdentifierPiece (Player &owner, int identifier) | |
| virtual void | print (ostream &os) const |
| Override the print function to include the identifier. More... | |
| int | getIdentifier () |
| Returns the identifier. More... | |
Public Member Functions inherited from Piece | |
| Piece () | |
| Piece (Player &owner) | |
| virtual | ~Piece () |
| int | getType () const |
| Returns the type of piece. More... | |
| bool | setType (int type) |
| Sets the type of piece. More... | |
Protected Attributes | |
| int | identifier |
| The piece's identifier. More... | |
Protected Attributes inherited from Piece | |
| int | type |
| The type of the piece. More... | |
Additional Inherited Members | |
Public Attributes inherited from Piece | |
| Player * | owner |
| Pointer to the pieces owner. More... | |
A Piece with an identifier.
| int IdentifierPiece::getIdentifier | ( | ) |
Returns the identifier.
|
virtual |
Override the print function to include the identifier.
Reimplemented from Piece.
|
protected |
The piece's identifier.