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

CTicTacToeBoard Class Reference

CTicTacToeBoard. More...

#include <TicTacToeBoard.h>

List of all members.

Public Member Functions

 CTicTacToeBoard ()
 CTicTacToeBoard.
 ~CTicTacToeBoard ()
 ~CTicTacToeBoard
void NewGame ()
 NewGame.
void PlayMove (const CTicTacToeMove *m)
 PlayMove.
bool CheckMove (const CTicTacToeMove *m) const
 CheckMove.
CTicTacToePiece::TYPE GetPieceType (uint32 x, uint32 y) const
 GetPieceType.


Detailed Description

CTicTacToeBoard.

Description: Represents an Othello game board.

Limitations:


Constructor & Destructor Documentation

CTicTacToeBoard::CTicTacToeBoard  ) 
 

CTicTacToeBoard.

Description: Class constructor

Limitations: NONE

CTicTacToeBoard::~CTicTacToeBoard  ) 
 

~CTicTacToeBoard

Description: Class deconstructor

Limitations: NONE


Member Function Documentation

bool CTicTacToeBoard::CheckMove const CTicTacToeMove m  )  const
 

CheckMove.

Description: Checks a move and returns true if it is valid.

Parameters:
m is the move being checked.
Returns:
True if the move is valid and false otherwise.
Limitations: NONE

CTicTacToePiece::TYPE CTicTacToeBoard::GetPieceType uint32  x,
uint32  y
const [inline]
 

GetPieceType.

Description: Returns the type of the piece at the given location.

Parameters:
x is the x-coordinate of the piece.
y is the y-coordinate of the piece.
Returns:
The type of the piece at the given coordinates
Limitations: The x and y values must be between 0 and 2 inclusive.

void CTicTacToeBoard::NewGame  ) 
 

NewGame.

Description: Resets the board to the beginning state.

Returns:
void
Limitations: NONE

void CTicTacToeBoard::PlayMove const CTicTacToeMove m  ) 
 

PlayMove.

Description: Updates the board based on a given move.

Parameters:
m is the move to make.
Returns:
void
Limitations: The move must be valid.


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

SourceForge.net Logo