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

CTicTacToePiece Class Reference

CTicTacToePiece. More...

#include <TicTacToe.h>

Inheritance diagram for CTicTacToePiece:

CPiece List of all members.

Public Member Functions

 CTicTacToePiece ()
 CTicTacToePiece.
 CTicTacToePiece (const CTicTacToePiece &)
 CTicTacToePiece.
 CTicTacToePiece (TYPE)
 CTicTacToePiece.
 ~CTicTacToePiece ()
 ~CTicTacToePiece
bool operator== (const CTicTacToePiece &) const
 operator ==
bool operator== (const TYPE &) const
 operator ==
bool operator!= (const CTicTacToePiece &) const
 operator !=
bool operator!= (const TYPE &) const
 operator !=
void operator= (const CTicTacToePiece &)
 operator =
void operator= (const TYPE &)
 operator =
void SetType (TYPE)
 SetType.
TYPE GetType () const
 GetType.

Detailed Description

CTicTacToePiece.

Description: A board piece for TicTacToe.

Limitations: NONE


Constructor & Destructor Documentation

CTicTacToePiece::CTicTacToePiece (   )  [inline]
 

CTicTacToePiece.

Description: Class constructor

Limitations: NONE

CTicTacToePiece::CTicTacToePiece (  const CTicTacToePiece &  other  )  [inline]
 

CTicTacToePiece.

Description: Copy constructor

Parameters:
other is the piece to assign to this one.
Limitations: NONE

CTicTacToePiece::CTicTacToePiece (  CTicTacToePiece::TYPE  type  )  [inline]
 

CTicTacToePiece.

Description: Class constructor

Parameters:
type is the CTicTacToePiece type to assign to this piece.
Limitations: NONE

CTicTacToePiece::~CTicTacToePiece (   )  [inline]
 

~CTicTacToePiece

Description: Class deconstructor

Limitations: NONE


Member Function Documentation

CTicTacToePiece::TYPE CTicTacToePiece::GetType (   )  const [inline]
 

GetType.

Description: Returns the type of this piece.

Returns:
The type of this piece.
Limitations: NONE

bool CTicTacToePiece::operator!= (  const TYPE &  other  )  const [inline]
 

operator !=

Description: Not-equal operator. Returns true if the type doesn't match the type of this piece.

Parameters:
other is the type to compare.
Returns:
Returns true if the types are NOT the same, and false otherwise.
Limitations: NONE

bool CTicTacToePiece::operator!= (  const CTicTacToePiece &  other  )  const [inline]
 

operator !=

Description: Not-equal operator. Returns true if the pieces don't match.

Parameters:
other is the piece to compare.
Returns:
Returns true if the pieces are NOT the same, and false otherwise.
Limitations: NONE

void CTicTacToePiece::operator= (  const TYPE &  other  )  [inline]
 

operator =

Description: Assignment operator. Assigns the type to this piece.

Parameters:
other is the type to set.
Returns:
void
Limitations: NONE

void CTicTacToePiece::operator= (  const CTicTacToePiece &  other  )  [inline]
 

operator =

Description: Assignment operator. Assigns one CTicTacToePiece to another.

Parameters:
other is the piece to set to this one.
Returns:
void
Limitations: NONE

bool CTicTacToePiece::operator== (  const TYPE &  other  )  const [inline]
 

operator ==

Description: Equal operator. Returns true if the types of the pieces match.

Parameters:
other is the piece to compare.
Returns:
Returns true if the pieces are the same, and false otherwise.
Limitations: NONE

bool CTicTacToePiece::operator== (  const CTicTacToePiece &  other  )  const [inline]
 

operator ==

Description: Equal operator. Returns true if the pieces match.

Parameters:
other is the piece to compare.
Returns:
Returns true if the pieces are the same, and false otherwise.
Limitations: NONE

void CTicTacToePiece::SetType (  CTicTacToePiece::TYPE  type  )  [inline]
 

SetType.

Description: Sets the type of this piece.

Parameters:
type is the CTicTacToePiece type 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