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

CTicTacToeGUIPiece Class Reference

CTicTacToeGUIPiece. More...

#include <TicTacToeGUIPiece.h>

Inheritance diagram for CTicTacToeGUIPiece:

CGuiPiece List of all members.

Public Member Functions

 CTicTacToeGUIPiece (QCanvas *pParent, int32 row, int32 col, CTicTacToePiece::TYPE style=CTicTacToePiece::EMPTY)
 CTicTacToeGUIPiece.
int32 rtti () const
 rtti
void redraw (const int32 x, const int32 y, const int32 width, const int32 height)
 redraw
int32 getRow () const
 getRow
int32 getCol () const
 getCol
const QPoint & getPosition () const
 getPosition

Detailed Description

CTicTacToeGUIPiece.

Description: A CGuiPiece derived class used to draw the TicTacToe game pieces on the screen. (Empty, X, & O)

Limitations: NONE


Constructor & Destructor Documentation

CTicTacToeGUIPiece::CTicTacToeGUIPiece QCanvas *  pParent,
int32  row,
int32  col,
CTicTacToePiece::TYPE  style = CTicTacToePiece::EMPTY
 

CTicTacToeGUIPiece.

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 CTicTacToeGUIPiece::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 & CTicTacToeGUIPiece::getPosition  )  const [inline]
 

getPosition

Description: Returns the position of this Othello game piece.

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

int32 CTicTacToeGUIPiece::getRow  )  const [inline]
 

getRow

Description: Returns the row of this Othello game piece.

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

void CTicTacToeGUIPiece::redraw const int32  x,
const int32  y,
const int32  width,
const int32  height
[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 CTicTacToeGUIPiece::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