#include <BGGUIBoard.h>
Public Member Functions | |
CBGGUIBoard (QWidget *parent=0, const char *name=0) | |
CBGGUIBoard. | |
~CBGGUIBoard () | |
~CBGGUIBoard | |
void | NewBoard () |
NewBoard. | |
void | AddChecker (int32 number, CBGPiece::COLOR color) |
AddChecker. | |
void | RemoveChecker (int32 number, CBGPiece::COLOR color) |
RemoveChecker. | |
void | SelectTriangle (uint32 number, bool select=true) |
SelectTriangle. | |
void | SelectBar (CBGGUIPiece::COLOR color, bool select=true) |
SelectBar. | |
bool | IsTriangleSelected (uint32 number) const |
IsTriangleSelected. | |
bool | IsBarSelected (CBGGUIPiece::COLOR color) const |
IsBarSelected. | |
void | ClearHighlight () |
ClearHighlight. | |
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 Backgammon board on the screen.
Limitations: NONE
|
CBGGUIBoard. Description: Class constructor Limitations: NONE |
|
~CBGGUIBoard Description: Class deconstructor Limitations: NONE |
|
AddChecker. Description: Adds a checker of specified color to a triangle or bar.
|
|
BuildBoard. Description: Creates the board object and all the CBGPiece objects.
|
|
ClearHighlight. Description: Makes all the triangles and bars Unhighlighted.
|
|
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.
|
|
IsBarSelected. Description: Returns true if the bar is selected.
|
|
IsTriangleSelected. Description: Returns true if the triangle is currently selected.
|
|
NewBoard. Description: Resets all the game squares to the pre-game state.
|
|
RemoveChecker. Description: Removes a checker of specified color to a triangle or bar.
|
|
resizeEvent Description: Handles the resize event to redraw the board to the correct size.
|
|
SelectBar. Description: Highlights/UnHighlights the specified bar.
|
|
SelectTriangle. Description: Highlights/UnHighlights the specified triangle.
|