|
CBG
0.1
Compendium of board games
|
#include <SourcePiece.h>
Public Member Functions | |
| SourcePiece (Player &owner, Coordinate source) | |
| Coordinate | getSource () |
| Returns the source. More... | |
| void | setSource (Coordinate source) |
| Sets the source 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 | source |
| Coordinate containing the source. 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 source.
| SourcePiece::SourcePiece | ( | Player & | owner, |
| Coordinate | source | ||
| ) |
A Piece with a source.
| Coordinate SourcePiece::getSource | ( | ) |
Returns the source.
| void SourcePiece::setSource | ( | Coordinate | source | ) |
Sets the source coordinate.
|
protected |
Coordinate containing the source.