#include <BGController.h>
Inheritance diagram for CBGController:

| Public Slots | |
| bool | TriangleClicked (int32) | 
| TriangleClicked. | |
| void | TriangleAddPiece (int32, CBGPiece::COLOR) | 
| TriangleAddPiece. | |
| void | TriangleRemovePiece (int32, CBGPiece::COLOR) | 
| TriangleRemovePiece. | |
| Public Member Functions | |
| CBGController (QWidget *target) | |
| CBGController. | |
| CBGController (QWidget *target, uint32 studentID, const int8 *name, uint32 nameLength, CaffeineGUID gameID, bool bIsSpectator=false) | |
| CBGController. | |
| ~CBGController () | |
| ~CBGController | |
| void | ResetMove () | 
| ResetMove. | |
| Protected Member Functions | |
| void | NewGame () | 
| NewGame. | |
| void | Play (const CPiece *p) | 
| 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. | |
Limitations: NONE
| 
 | 
| CBGController. Description: Class constructor 
 
 
 | 
| 
 | ||||||||||||||||||||||||||||
| CBGController. Description: Class constructor 
 
 
 | 
| 
 | 
| ~CBGController Description: Class deconstructor Limitations: NONE | 
| 
 | 
| 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. | 
| 
 | 
| Play. Description: Called when its our turn to play. Save the dice values and set the player piece dice values. 
 
 
 Implements CGUIController. | 
| 
 | 
| PlayMove. Description: Plays a given move. 
 
 
 Implements CGUIController. | 
| 
 | 
| ResetMove. Description: Resets the user move values so that they can start their move selection over. 
 
 | 
| 
 | 
| SetPlayerPiece. Description: Sets out player piece. 
 
 
 Implements CGUIController. | 
| 
 | 
| TimeElapsed. Description: Called when either a player's move time or game time has expired 
 
 
 Implements CGUIController. | 
| 
 | ||||||||||||
| TriangleAddPiece. Description: Function called when a piece should be added to a triangle. 
 
 
 | 
| 
 | 
| TriangleClicked. Description: Creates a move based on the square clicked by the user and tries to play the move. 
 
 | 
| 
 | ||||||||||||
| TriangleRemovePiece. Description: Function called when a piece should be removed from a triangle. 
 
 
 | 
| 
 | 
| UpdateCurrentPlayerPiece. Description: 
 
 Implements CGUIController. |