#include <GUIPiece.h>
Inheritance diagram for CGuiPiece:

Public Member Functions | |
| CGuiPiece (QCanvas *pParent) | |
| CGuiPiece. | |
| virtual int32 | getStatus () const |
| getStatus | |
| virtual void | setStatus (const int32 status) |
| setStatus | |
| virtual int32 | getStyle () const |
| getStyle | |
| virtual void | setStyle (const int32 style) |
| setStyle | |
Protected Member Functions | |
| virtual void | draw (QPainter &p) |
| draw | |
| virtual void | move (const int32 x, const int32 y) |
| move | |
Description: This class represents a piece on the GUI game board and is used for drawing the piece on the board.
Limitations: NONE
|
|
CGuiPiece. Description: Class constructor
|
|
|
draw Description: Draws the proper pixmap on the canvas.
|
|
|
getStatus Description: Returns the status of the piece. (Unhighlighted or Highlighted)
|
|
|
getStyle Description: Returns the style of the piece. (Empty, White, Black)
|
|
||||||||||||
|
move Description: Moves a piece object to the specified location.
|
|
|
setStatus Description: Set the status of the piece.
|
|
|
setStyle Description: Sets the style of the piece.
|