Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

CBGPiece Class Reference

CBGPiece. More...

#include <Backgammon.h>

Inheritance diagram for CBGPiece:

CPiece List of all members.

Public Member Functions

 CBGPiece ()
 CBGPiece.
 CBGPiece (const CBGPiece &p)
 CBGPiece.
 CBGPiece (COLOR color)
 CBGPiece.
 ~CBGPiece ()
 ~CBGPiece
void operator= (const CBGPiece::COLOR &color)
 operator =
void operator= (const CBGPiece &p)
 operator =
bool operator== (const CBGPiece &p) const
 operator ==
bool operator!= (const CBGPiece &p) const
 operator !=
bool operator== (const CBGPiece::COLOR &color) const
 operator ==
bool operator!= (const CBGPiece::COLOR &color) const
 operator !=
void SetColor (COLOR color)
 SetColor.
COLOR GetColor () const
 GetColor.

Detailed Description

CBGPiece.

Description: Backgammon checker

Limitations: NONE


Constructor & Destructor Documentation

CBGPiece::CBGPiece  )  [inline]
 

CBGPiece.

Description: Class constructor

Limitations: NONE

CBGPiece::CBGPiece const CBGPiece p  )  [inline]
 

CBGPiece.

Description: Class copy constructor

Parameters:
p is the CBGPiece to copy.
Limitations: NONE

CBGPiece::CBGPiece CBGPiece::COLOR  color  )  [inline]
 

CBGPiece.

Description: Class constructor

Parameters:
color is color that this piece should be.
Limitations: NONE

CBGPiece::~CBGPiece  )  [inline]
 

~CBGPiece

Description: Class deconstructor

Limitations: NONE


Member Function Documentation

CBGPiece::COLOR CBGPiece::GetColor  )  const [inline]
 

GetColor.

Description: Gets the color of this piece.

Returns:
The color of this piece.
Limitations: NONE

bool CBGPiece::operator!= const CBGPiece::COLOR &  color  )  const [inline]
 

operator !=

Description: Not-Equiv. operator. Returns true if the pieces are not the same.

Parameters:
color is the color to compare.
Returns:
True if the pieces are the different, false if they are the same.
Limitations: NONE

bool CBGPiece::operator!= const CBGPiece p  )  const [inline]
 

operator !=

Description: Not-Equiv. operator. Returns true if the pieces are not the same.

Parameters:
p is the CBGPiece to compare.
Returns:
True if the pieces are the different, false if they are the same.
Limitations: NONE

void CBGPiece::operator= const CBGPiece p  )  [inline]
 

operator =

Description: Assignment operator

Parameters:
p is the CBGPiece to assign to this piece.
Returns:
void
Limitations: NONE

void CBGPiece::operator= const CBGPiece::COLOR &  color  )  [inline]
 

operator =

Description: Assignment operator

Parameters:
color is the color to assign to this piece.
Returns:
void
Limitations: NONE

bool CBGPiece::operator== const CBGPiece::COLOR &  color  )  const [inline]
 

operator ==

Description: Equivalence operator. Returns true if the pieces are the same.

Parameters:
color is the color to compare.
Returns:
True if the pieces are the same, false otherwise.
Limitations: NONE

bool CBGPiece::operator== const CBGPiece p  )  const [inline]
 

operator ==

Description: Equivalence operator. Returns true if the pieces are the same.

Parameters:
p is the CBGPiece to compare.
Returns:
True if the pieces are the same, false otherwise.
Limitations: NONE

void CBGPiece::SetColor CBGPiece::COLOR  color  )  [inline]
 

SetColor.

Description: Sets the color of this piece.

Parameters:
color is the color to set.
Returns:
void
Limitations: NONE


The documentation for this class was generated from the following file:
Copyright (c) 2005 Matt Bruns, Pat Hammond, Kevin Markussen, Travis Service, Brain Shaver

SourceForge.net Logo