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

CBGGUIPiece Class Reference

CBGGUIPiece. More...

#include <BGGUIPiece.h>

Inheritance diagram for CBGGUIPiece:

CGuiPiece List of all members.

Public Member Functions

 CBGGUIPiece (QCanvas *pParent, int32 x, int32 y, CBGGUIPiece::COLOR style)
 CBGGUIPiece.
int32 rtti () const
 rtti
void redraw (const int32 x, const int32 y, const int32 width, const int32 height)
 redraw
void setPosition (uint32)
 setPosition
uint32 getPosition () const
 getPosition

Detailed Description

CBGGUIPiece.

Description: A CGuiPiece derived class used to draw the Backgammon game checkers on the screen. (Red & White)

Limitations: NONE


Constructor & Destructor Documentation

CBGGUIPiece::CBGGUIPiece QCanvas *  pParent,
int32  x,
int32  y,
CBGGUIPiece::COLOR  style
 

CBGGUIPiece.

Description: Class constructor

Parameters:
pParent is the parent canvas object
number is the number of this triangle.
style is the style of the piece (eg. White or Red)
Limitations: NONE


Member Function Documentation

uint32 CBGGUIPiece::getPosition  )  const [inline]
 

getPosition

Description: Returns the position of this Backgammon triangle.

Returns:
The position of this Backgammon triangle game piece.
Limitations: NONE

void CBGGUIPiece::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 CBGGUIPiece::rtti  )  const [inline, virtual]
 

rtti

Description: Returns the Runtime Type Identifier.

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

Implements CGuiPiece.

void CBGGUIPiece::setPosition uint32  pos  )  [inline]
 

setPosition

Description: Sets the position of this piece.

Parameters:
pos is position to set.
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