CTestWin Class Reference

This class checks if a player won on a given game board. More...

#include <TestWin.h>

List of all members.

Public Member Functions

 CTestWin (const char *pBoard, char *pWinBoard, int boardSizeX, int boardSizeY, int boardSizeZ, char playerToTest, int winFieldCount, int returnImmediately)
 The constructor needs the game board properties and the player to test for a win.
bool testWin ()
 Returns if the player given by the constructor won a game or not.


Detailed Description

This class checks if a player won on a given game board.


Constructor & Destructor Documentation

CTestWin::CTestWin ( const char *  pBoard,
char *  pWinBoard,
int  boardSizeX,
int  boardSizeY,
int  boardSizeZ,
char  playerToTest,
int  winFieldCount,
int  returnImmediately 
)

The constructor needs the game board properties and the player to test for a win.

The winning pieces are written into the game board pWinboard on call of testWin(), which is'nt cleared before. If returnImmediately is set to true the winning pieces are not written on call of testWin(), then pWinBoard can be NULL.


The documentation for this class was generated from the following files:
Generated on Mon Jan 22 02:40:32 2007 for muele by  doxygen 1.4.7