CBG  0.1
Compendium of board games
IdentifierPiece Class Reference

#include <IdentifierPiece.h>

Inheritance diagram for IdentifierPiece:
Piece SystemPiece

Public Member Functions

 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...
 
- 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...
 

Protected Attributes

int identifier
 The piece's identifier. 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 an identifier.

Author
Ian Duffy.

Constructor & Destructor Documentation

IdentifierPiece::IdentifierPiece ( Player owner,
int  identifier 
)

A Piece with an identifier.

Author
Ian Duffy.

Member Function Documentation

int IdentifierPiece::getIdentifier ( )

Returns the identifier.

void IdentifierPiece::print ( ostream &  os) const
virtual

Override the print function to include the identifier.

Reimplemented from Piece.

Member Data Documentation

int IdentifierPiece::identifier
protected

The piece's identifier.


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