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

CBGGUITriangle Class Reference

CBGGUITriangle. More...

#include <BGGUITriangle.h>

Inheritance diagram for CBGGUITriangle:

CGuiPiece List of all members.

Public Member Functions

 CBGGUITriangle (QCanvas *pParent, int32 x, int32 y, int32 loc, CBGGUITriangle::COLOR style)
 CBGGUITriangle.
int32 rtti () const
 rtti
void redraw (const int32 x, const int32 y, const int32 width, const int32 height)
 redraw
uint32 getPosition () const
 getPosition
void AddPiece ()
 AddPiece.
void RemovePiece ()
 RemovePiece.
uint32 GetPieceCount () const
 GetPieceCount.
void SetPieceColor (CBGGUIPiece::COLOR color)
 SetPieceColor.

Detailed Description

CBGGUITriangle.

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

Limitations: NONE


Constructor & Destructor Documentation

CBGGUITriangle::CBGGUITriangle QCanvas *  pParent,
int32  x,
int32  y,
int32  loc,
CBGGUITriangle::COLOR  style
 

CBGGUITriangle.

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

void CBGGUITriangle::AddPiece  ) 
 

AddPiece.

Description: Adds a checker to this triangle.

Returns:
void
Limitations: NONE

uint32 CBGGUITriangle::GetPieceCount  )  const [inline]
 

GetPieceCount.

Description: Returns the number of pieces on the triangle

Returns:
The number of pieces on the triangle.
Limitations: NONE

uint32 CBGGUITriangle::getPosition  )  const [inline]
 

getPosition

Description: Returns the position of this Backgammon triangle.

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

void CBGGUITriangle::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.

void CBGGUITriangle::RemovePiece  ) 
 

RemovePiece.

Description: Removes a checker to this triangle.

Returns:
void
Limitations: NONE

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

rtti

Description: Returns the Runtime Type Identifier.

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

Implements CGuiPiece.

void CBGGUITriangle::SetPieceColor CBGGUIPiece::COLOR  color  ) 
 

SetPieceColor.

Description: Sets the color of the checkers on the triangle.

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