#include <TicTacToeController.h>
Inheritance diagram for CTicTacToeController:

| Public Slots | |
| bool | PieceClicked (uint32, uint32) | 
| PieceClicked. | |
| void | PieceTypeChanged (uint32, uint32, CTicTacToePiece::TYPE) | 
| PieceTypeChanged. | |
| Public Member Functions | |
| CTicTacToeController (QWidget *target) | |
| CTicTacToeController. | |
| CTicTacToeController (QWidget *target, uint32 studentID, const int8 *name, uint32 nameLength, CaffeineGUID gameID, bool bIsSpectator=false) | |
| CTicTacToeController. | |
| ~CTicTacToeController () | |
| ~COthelloController | |
| Protected Member Functions | |
| void | NewGame () | 
| NewGame. | |
| void | Play (const CPiece *) | 
| Play. | |
| void | PlayMove (const CMove *m) | 
| PlayMove. | |
| bool | CheckMove (CMove *m) | 
| CheckMove. | |
| bool | CheckForWin () | 
| CheckForWin. | |
| void | UpdateCurrentPlayerPiece () | 
| UpdateCurrentPlayerPiece. | |
| void | SetPlayerPiece (const CPiece *p) | 
| SetPlayerPiece. | |
| void | TimeElapsed (const CPlayerPiece *piece) | 
| TimeElapsed. | |
| bool | CheckForPieceWin (CTicTacToePiece p) const | 
| CheckForPieceWin. | |
Description: This class is the controller class for the Othello GUI. It verifies moves and choses the the next player's turn. It will also communicate with the Caffeine Client if doing a AI/Tournament game.
Limitations: NONE
| 
 | 
| CTicTacToeController. Description: Class constructor 
 
 
 | 
| 
 | ||||||||||||||||||||||||||||
| CTicTacToeController. Description: Class constructor 
 
 
 | 
| 
 | 
| ~COthelloController Description: Class deconstructor Limitations: NONE | 
| 
 | 
| CheckForPieceWin. Description: Checks to see if a certain piece is a winner. 
 
 
 | 
| 
 | 
| CheckForWin. Description: Checks for a win state and sets the m_winningPiece variable if in a win state. 
 
 Implements CGUIController. | 
| 
 | 
| CheckMove. Description: Validates a given move. Returns true if the move is valid and false otherwise. 
 
 
 Implements CGUIController. | 
| 
 | 
| NewGame. Description: Resets all the board pieces to their default values. 
 
 Implements CGUIController. | 
| 
 | ||||||||||||
| PieceClicked. Description: Creates a move based on the square clicked by the user and tries to play the move. 
 
 | 
| 
 | ||||||||||||||||
| PieceTypeChanged. Description: Function called when a piece on the board changes type. Sends the update to the GUI. 
 
 
 | 
| 
 | 
| Play. Description: Tells the GUI to play a move. This is needed so that we can pass stochastic elements to the game controller (eg dice rolls). 
 
 
 Implements CGUIController. | 
| 
 | 
| PlayMove. Description: Plays a given move. 
 
 
 Implements CGUIController. | 
| 
 | 
| SetPlayerPiece. Description: Sets the player piece. 
 
 
 Implements CGUIController. | 
| 
 | 
| TimeElapsed. Description: Called when either a player's move time or game time has expired 
 
 
 Implements CGUIController. | 
| 
 | 
| UpdateCurrentPlayerPiece. Description: Updates the m_curPiece variable with the next person to move. 
 
 Implements CGUIController. |