CBG  0.1
Compendium of board games
DestinationPiece Class Reference

#include <DestinationPiece.h>

Inheritance diagram for DestinationPiece:
Piece SystemPiece

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
Playerowner
 Pointer to the pieces owner. More...
 

Detailed Description

A Piece with a destination.

Author
Ian Duffy

Constructor & Destructor Documentation

DestinationPiece::DestinationPiece ( Player owner,
Coordinate  destination 
)

A Piece with a destination.

Author
Ian Duffy

Member Function Documentation

Coordinate DestinationPiece::getDestination ( )

Returns the destination.

void DestinationPiece::setDestination ( Coordinate  destination)

Sets the destination coordinate.

Member Data Documentation

Coordinate DestinationPiece::destination
protected

Coordinate containing the destination.


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