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

COthelloGUIPiece Class Reference

COthelloGUIPiece. More...

#include <OthelloGUIPiece.h>

Inheritance diagram for COthelloGUIPiece:

CGuiPiece List of all members.

Public Member Functions

 COthelloGUIPiece (QCanvas *pParent, int32 row, int32 col, COthelloPiece::TYPE style=COthelloPiece::EMPTY)
 COthelloPiece.
int32 rtti () const
 rtti
void redraw (const int32 tilesize, const QPoint &offset)
 redraw
int32 getRow () const
 getRow
int32 getCol () const
 getCol
const QPoint & getPosition () const
 getPosition

Detailed Description

COthelloGUIPiece.

Description: A CGuiPiece derived class used to draw the Othello game pieces on the screen. (Blank, White, & Black)

Limitations: NONE


Constructor & Destructor Documentation

COthelloGUIPiece::COthelloGUIPiece QCanvas *  pParent,
int32  row,
int32  col,
COthelloPiece::TYPE  style = COthelloPiece::EMPTY
 

COthelloPiece.

Description: Class constructor

Parameters:
pParent is the parent canvas object
row is the row in which this piece should reside.
col is the column in which this piece should reside.
style is the style of the piece (eg. Empty, White, or Black)
Limitations: NONE


Member Function Documentation

int32 COthelloGUIPiece::getCol  )  const [inline]
 

getCol

Description: Returns the column of this Othello game piece.

Returns:
The column of this Othello game piece.
Limitations: NONE

const QPoint & COthelloGUIPiece::getPosition  )  const [inline]
 

getPosition

Description: Returns the position of this Othello game piece.

Returns:
The position of this Othello game piece.
Limitations: NONE

int32 COthelloGUIPiece::getRow  )  const [inline]
 

getRow

Description: Returns the row of this Othello game piece.

Returns:
The row of this Othello game piece.
Limitations: NONE

void COthelloGUIPiece::redraw const int32  tilesize,
const QPoint &  offset
[virtual]
 

redraw

Description: Redraws the piece object based on the new size and offset.

Parameters:
tilesize is the width/height of the tile.
offset is the offset from the side and top/bottom borders of the window.
Returns:
void
Limitations: NONE

Implements CGuiPiece.

int32 COthelloGUIPiece::rtti  )  const [inline, virtual]
 

rtti

Description: Returns the Runtime Type Identifier.

Returns:
The Runtime Type Identifier for a COthelloPiece.
Limitations: NONE

Implements CGuiPiece.


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