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

CBGGUIBar Class Reference

CBGGUIBar. More...

#include <BGGUIBar.h>

Inheritance diagram for CBGGUIBar:

CGuiPiece List of all members.

Public Member Functions

 CBGGUIBar (QCanvas *pParent, int32 x, int32 y, uint32 loc, CBGGUIPiece::COLOR checkerColor)
 CBGGUITriangle.
int32 rtti () const
 rtti
void redraw (const int32 x, const int32 y, const int32 width, const int32 height)
 redraw
void AddPiece ()
 AddPiece.
void RemovePiece ()
 RemovePiece.
uint32 GetPieceCount () const
 GetPieceCount.
CBGGUIPiece::COLOR GetPieceColor () const
 GetPieceColor.

Detailed Description

CBGGUIBar.

Description: A CGuiPiece derived class used to draw the Backgammon game bar on the screen.

Limitations: NONE


Constructor & Destructor Documentation

CBGGUIBar::CBGGUIBar QCanvas *  pParent,
int32  x,
int32  y,
uint32  loc,
CBGGUIPiece::COLOR  checkerColor
 

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 CBGGUIBar::AddPiece  ) 
 

AddPiece.

Description: Adds a checker to this triangle.

Returns:
void
Limitations: NONE

CBGGUIPiece::COLOR CBGGUIBar::GetPieceColor  )  const [inline]
 

GetPieceColor.

Description: Returns the color of the checkers on this bar.

Returns:
The color of the checkers on this bar.
Limitations: NONE

uint32 CBGGUIBar::GetPieceCount  )  const [inline]
 

GetPieceCount.

Description: Returns the number of checkers on the bar

Returns:
The number of checkers on the bar
Limitations: NONE

void CBGGUIBar::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 CBGGUIBar::RemovePiece  ) 
 

RemovePiece.

Description: Removes a checker to this triangle.

Returns:
void
Limitations: NONE

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

rtti

Description: Returns the Runtime Type Identifier.

Returns:
The Runtime Type Identifier for a CBGGUIBar.
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