CBG  0.1
Compendium of board games
SourcePiece Class Reference

#include <SourcePiece.h>

Inheritance diagram for SourcePiece:
Piece SystemPiece

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

Detailed Description

A Piece with a source.

Author
Ian Duffy

Constructor & Destructor Documentation

SourcePiece::SourcePiece ( Player owner,
Coordinate  source 
)

A Piece with a source.

Author
Ian Duffy

Member Function Documentation

Coordinate SourcePiece::getSource ( )

Returns the source.

void SourcePiece::setSource ( Coordinate  source)

Sets the source coordinate.

Member Data Documentation

Coordinate SourcePiece::source
protected

Coordinate containing the source.


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