|
CBG
0.1
Compendium of board games
|
#include <Piece.h>
Public Member Functions | |
| 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... | |
| virtual void | print (ostream &os) const |
| Inserts the piece into the given ostream. More... | |
Public Attributes | |
| Player * | owner |
| Pointer to the pieces owner. More... | |
Protected Attributes | |
| int | type |
| The type of the piece. More... | |
| Piece::Piece | ( | ) |
| Piece::Piece | ( | Player & | owner | ) |
|
virtual |
| int Piece::getType | ( | ) | const |
Returns the type of piece.
|
virtual |
Inserts the piece into the given ostream.
Reimplemented in IdentifierPiece.
| bool Piece::setType | ( | int | type | ) |
Sets the type of piece.
| Player* Piece::owner |
Pointer to the pieces owner.
|
protected |
The type of the piece.