Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

COthelloGUIBoard Class Reference

COthelloGUIBoard. More...

#include <OthelloGUIBoard.h>

List of all members.

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.


Detailed Description

COthelloGUIBoard.

Description: Class is a QCanvasView derived class used for displaying the Othello board on the screen.

Limitations: NONE


Constructor & Destructor Documentation

COthelloGUIBoard::COthelloGUIBoard QWidget *  parent = 0,
const char *  name = 0
 

COthelloGUIBoard.

Description: Class constructor

Limitations: NONE

COthelloGUIBoard::~COthelloGUIBoard  ) 
 

~COthelloGUIBoard

Description: Class deconstructor

Limitations: NONE


Member Function Documentation

void COthelloGUIBoard::BuildBoard  )  [protected]
 

BuildBoard.

Description: Creates the board object and all the COthelloPiece objects.

Returns:
void
Limitations: NONE

void COthelloGUIBoard::contentsMousePressEvent QMouseEvent *  event  )  [protected]
 

contentsMousePressEvent

Description: Traps a mouse click event so that we can see if the user clicked one of the grid sqaures.

Returns:
void
Limitations: NONE

void COthelloGUIBoard::DestroyBoard  )  [protected]
 

DestroyBoard.

Description: Deletes the board and all its contents.

Returns:
void
Limitations: NONE

void COthelloGUIBoard::NewBoard  ) 
 

NewBoard.

Description: Resets all the game squares to the pre-game state.

Returns:
void
Limitations: NONE

void COthelloGUIBoard::resizeEvent QResizeEvent *  event  )  [protected]
 

resizeEvent

Description: Handles the resize event to redraw the board to the correct size.

Returns:
void
Limitations: NONE


The documentation for this class was generated from the following files:
Copyright (c) 2005 Matt Bruns, Pat Hammond, Kevin Markussen, Travis Service, Brain Shaver

SourceForge.net Logo