20 #ifndef __PAWSGAMEBOARD_H    21 #define __PAWSGAMEBOARD_H    52         void SetRow(int8_t newRow);
    58         virtual bool OnMouseDown(
int button, 
int modifiers, 
int x, 
int y);
    61         virtual bool OnDoubleClick(
int button, 
int modifiers, 
int x, 
int y);
   111         virtual void HandleMessage(
MsgEntry *message);
   138         void SetGameOptions(uint16_t newOptions);
   161             if (whitePieces.GetSize() > 0)
   162                 return whitePieces.Get(idx);
   170             if (blackPieces.GetSize() > 0)
   171                 return blackPieces.Get(idx);
   179             if (whitePieces.GetSize() > 0)
   180                 return whitePieces.GetSize();
   188             if (blackPieces.GetSize() > 0)
   189                 return blackPieces.GetSize();
   195         uint8_t NextPiece(uint8_t current) 
const;
   198         const csString PieceArtName(uint8_t piece) 
const;
   202         csArray<pawsGameTile *> tiles;
   205         uint8_t currentCounter;
   214         uint16_t gameOptions;
   229         csHash<csString, int> pieceArt;
   232         csArray<int> whitePieces;
   235         csArray<int> blackPieces;
 int8_t GetColumn() const 
Returns the column number for this game tile. 
 
void SetGameBoard(pawsGameBoard *gameBoard)
Sets the game board field. 
 
Message from the server to setup/update the minigame board on the client side. 
 
uint8_t state
The current game tile state. 
 
void SetState(uint8_t state)
Sets the game tile state. 
 
void RestoreState()
Restores the previous game tile state. 
 
void SetRow(int8_t newRow)
Sets the row number for this game tile. 
 
White regular game piece. 
 
int8_t GetRows() const 
Returns the number of rows. 
 
The structure of 1 queue entry (pointer to a message) 
 
void SetColumn(int8_t newColumn)
Sets the column number for this game tile. 
 
uint32_t GetGameID() const 
Returns the game ID value. 
 
int8_t GetCols() const 
Returns the number of columns. 
 
CREATE_PAWS_FACTORY(pawsGameBoard)
 
int8_t GetRow() const 
Returns the row number for this game tile. 
 
virtual void Draw()
Draws the game tile. 
 
uint8_t GetState() const 
Return the game tile state. 
 
size_t BlackPiecesCount() const 
Number of available black pieces. 
 
uint8_t WhitePiecesList(size_t idx) const 
List of available white pieces. 
 
size_t WhitePiecesCount() const 
Number of available white pieces. 
 
csRef< iPawsImage > image
The game piece image. 
 
uint16_t GetGameOptions() const 
Returns game options. 
 
int8_t row
The row number on the game board. 
 
uint8_t BlackPiecesList(size_t idx) const 
List of available black pieces. 
 
bool IsDragging() const 
Returns true if a game piece is being dragged. 
 
virtual bool OnMouseDown(int button, int modifiers, int x, int y)
Mouse event. 
 
uint8_t oldState
The previous game tile state. 
 
pawsGameBoard * board
The game board. 
 
Black regular game piece. 
 
int8_t column
The column number on the game board. 
 
virtual bool OnDoubleClick(int button, int modifiers, int x, int y)
Double-click event.