#include <OthelloGUIBoard.h>
Public Member Functions | |
COthelloGUIBoard (QWidget *parent=0, const char *name=0) | |
COthelloGUIBoard. | |
~COthelloGUIBoard () | |
~COthelloGUIBoard | |
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 Othello board on the screen.
Limitations: NONE
|
COthelloGUIBoard. Description: Class constructor Limitations: NONE |
|
~COthelloGUIBoard 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.
|