CBG  0.1
Compendium of board games
SystemPiece Class Reference

#include <SystemPiece.h>

Inheritance diagram for SystemPiece:
SourcePiece DestinationPiece IdentifierPiece Piece Piece Piece

Public Member Functions

 SystemPiece (Player &owner, Coordinate source, Coordinate destination, int identifier)
 
- Public Member Functions inherited from SourcePiece
 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...
 
- Public Member Functions inherited from DestinationPiece
 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 IdentifierPiece
 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...
 

Additional Inherited Members

- Public Attributes inherited from Piece
Playerowner
 Pointer to the pieces owner. More...
 
- Protected Attributes inherited from SourcePiece
Coordinate source
 Coordinate containing the source. More...
 
- Protected Attributes inherited from DestinationPiece
Coordinate destination
 Coordinate containing the destination. More...
 
- Protected Attributes inherited from IdentifierPiece
int identifier
 The piece's identifier. More...
 

Detailed Description

A piece with made up of a SourcePiece, DestinationPiece and IdentifierPiece.

Author
Ian Duffy
Darren Brogan

Constructor & Destructor Documentation

SystemPiece::SystemPiece ( Player owner,
Coordinate  source,
Coordinate  destination,
int  identifier 
)

A piece with made up of a SourcePiece, DestinationPiece and IdentifierPiece.

Author
Ian Duffy
Darren Brogan

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