|
CBG
0.1
Compendium of board games
|
#include <DestinationPiece.h>
Public Member Functions | |
| DestinationPiece (Player &owner, Coordinate destination) | |
| Coordinate | getDestination () |
| Returns the destination. More... | |
| void | setDestination (Coordinate destination) |
| Sets the destination coordinate. 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... | |
| virtual void | print (ostream &os) const |
| Inserts the piece into the given ostream. More... | |
Protected Attributes | |
| Coordinate | destination |
| Coordinate containing the destination. 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 a destination.
| DestinationPiece::DestinationPiece | ( | Player & | owner, |
| Coordinate | destination | ||
| ) |
A Piece with a destination.
| Coordinate DestinationPiece::getDestination | ( | ) |
Returns the destination.
| void DestinationPiece::setDestination | ( | Coordinate | destination | ) |
Sets the destination coordinate.
|
protected |
Coordinate containing the destination.