#include <TicTacToeGUIBoard.h>
Public Member Functions | |
| CTicTacToeGUIBoard (QWidget *parent=0, const char *name=0) | |
| CTicTacToeGUIBoard. | |
| ~CTicTacToeGUIBoard () | |
| ~CTicTacToeGUIBoard | |
| void | NewBoard () |
| NewBoard. | |
Protected Member Functions | |
| void | contentsMousePressEvent (QMouseEvent *event) |
| contentsMousePressEvent | |
| void | resizeEvent (QResizeEvent *event) |
| resizeEvent | |
| void | BuildBoard () |
| BuildBoard. | |
| void | DestroyBoard () |
| DestroyBoard. | |
Description: Class is a QCanvasView derived class used for displaying the TicTacToe board on the screen.
Limitations: NONE
|
||||||||||||
|
CTicTacToeGUIBoard. Description: Class constructor Limitations: NONE |
|
|
~CTicTacToeGUIBoard Description: Class deconstructor Limitations: NONE |
|
|
BuildBoard. Description: Creates the board object and all the COthelloPiece objects.
|
|
|
contentsMousePressEvent Description: Traps a mouse click event so that we can see if the user clicked one of the grid sqaures.
|
|
|
DestroyBoard. Description: Deletes the board and all its contents.
|
|
|
NewBoard. Description: Resets all the game squares to the pre-game state.
|
|
|
resizeEvent Description: Handles the resize event to redraw the board to the correct size.
|