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

CTicTacToeMove Class Reference

CTicTacToeMove. More...

#include <TicTacToe.h>

Inheritance diagram for CTicTacToeMove:

CMove List of all members.

Public Member Functions

 CTicTacToeMove ()
 CTicTacToeMove.
 CTicTacToeMove (const CTicTacToeMove &)
 CTicTacToeMove.
 ~CTicTacToeMove ()
 ~CTicTacToeMove
void SetLocation (uint32 x, uint32 y)
 SetLocation.
uint32 GetX () const
 GetX.
uint32 GetY () const
 GetY.
void SetPiece (CTicTacToePiece piece)
 SetPiece.
CTicTacToePiece GetPiece () const
 GetPiece.

Detailed Description

CTicTacToeMove.

Description: This class represents a move in TicTacToe.

Limitations: NONE


Constructor & Destructor Documentation

CTicTacToeMove::CTicTacToeMove  )  [inline]
 

CTicTacToeMove.

Description: Class constructor

Limitations: NONE

CTicTacToeMove::CTicTacToeMove const CTicTacToeMove m  )  [inline]
 

CTicTacToeMove.

Description: Class copy constructor

Parameters:
m is the CTicTacToeMove to copy.
Limitations: NONE

CTicTacToeMove::~CTicTacToeMove  )  [inline]
 

~CTicTacToeMove

Description: Class deconstructor

Limitations: NONE


Member Function Documentation

CTicTacToePiece CTicTacToeMove::GetPiece  )  const [inline]
 

GetPiece.

Description: Returns the piece of this move.

Returns:
The piece of this move.
Limitations: NONE

uint32 CTicTacToeMove::GetX  )  const [inline]
 

GetX.

Description: Returns the x-coordinate of the move.

Returns:
The x-coordinate of the move.
Limitations: NONE

uint32 CTicTacToeMove::GetY  )  const [inline]
 

GetY.

Description: Returns the y-coordinate of the move.

Returns:
The y-coordinate of the move.
Limitations: NONE

void CTicTacToeMove::SetLocation uint32  x,
uint32  y
[inline]
 

SetLocation.

Description: Sets the location of the move

Parameters:
x is the x-coordinate of the move. (0-2)
y is the y-coordinate of the move. (0-2)
Returns:
void
Limitations: NONE

void CTicTacToeMove::SetPiece CTicTacToePiece  piece  )  [inline]
 

SetPiece.

Description: Sets the piece of this move

Parameters:
piece is the tic-tac-toe piece 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