kmahjongg
GameData Class Reference
#include <GameData.h>
Detailed Description
This class implements.longer description
Definition at line 47 of file GameData.h.
Public Member Functions | |
| UCHAR | BoardData (short z, short y, short x) |
| void | clearRemovedTilePair (POSITION &a, POSITION &b) |
| short | findAllMatchingTiles (POSITION &posA) |
| bool | findMove (POSITION &posA, POSITION &posB) |
| GameData (BoardLayout *boardlayout) | |
| void | generatePositionDepends () |
| bool | generateStartPosition2 () |
| void | generateTilePositions () |
| POSITION & | getFromPosTable (int index) |
| char * | getMaskBytes () |
| UCHAR | HighlightData (short z, short y, short x) |
| void | initialiseRemovedTiles () |
| bool | isMatchingTile (POSITION &Pos1, POSITION &Pos2) |
| bool | loadFromStream (QDataStream &in) |
| UCHAR | MaskData (short z, short y, short x) |
| int | moveCount () |
| POSITION & | MoveListData (short i) |
| bool | partTile (int z, int y, int x) |
| void | putTile (POSITION &pos) |
| void | putTile (short e, short y, short x, UCHAR f) |
| bool | saveToStream (QDataStream &out) |
| void | setBoardData (short z, short y, short x, UCHAR value) |
| void | setHighlightData (short z, short y, short x, UCHAR value) |
| void | setMoveListData (short i, POSITION &value) |
| void | setRemovedTilePair (POSITION &a, POSITION &b) |
| void | shuffle () |
| bool | tilePresent (int z, int y, int x) |
| ~GameData () | |
Public Attributes | |
| int | allow_redo |
| int | allow_undo |
| short | m_depth |
| short | m_height |
| short | m_maxTiles |
| short | m_width |
| USHORT | MaxTileNum |
| KRandomSequence | random |
| USHORT | TileNum |
Constructor & Destructor Documentation
| GameData::GameData | ( | BoardLayout * | boardlayout | ) | [explicit] |
Constructor.
- Parameters:
-
boardlayout
- See also:
- BoardLayout
Definition at line 23 of file GameData.cpp.
| GameData::~GameData | ( | ) |
Member Function Documentation
| UCHAR GameData::BoardData | ( | short | z, | |
| short | y, | |||
| short | x | |||
| ) |
Definition at line 732 of file GameData.cpp.
| short GameData::findAllMatchingTiles | ( | POSITION & | posA | ) |
Definition at line 915 of file GameData.cpp.
Definition at line 786 of file GameData.cpp.
| void GameData::generatePositionDepends | ( | ) |
Definition at line 128 of file GameData.cpp.
| bool GameData::generateStartPosition2 | ( | ) |
Definition at line 500 of file GameData.cpp.
| void GameData::generateTilePositions | ( | ) |
Definition at line 104 of file GameData.cpp.
| POSITION& GameData::getFromPosTable | ( | int | index | ) | [inline] |
Definition at line 180 of file GameData.h.
| char* GameData::getMaskBytes | ( | ) | [inline] |
| UCHAR GameData::HighlightData | ( | short | z, | |
| short | y, | |||
| short | x | |||
| ) |
| void GameData::initialiseRemovedTiles | ( | ) |
Definition at line 770 of file GameData.cpp.
Definition at line 678 of file GameData.cpp.
| bool GameData::loadFromStream | ( | QDataStream & | in | ) |
Definition at line 952 of file GameData.cpp.
| UCHAR GameData::MaskData | ( | short | z, | |
| short | y, | |||
| short | x | |||
| ) |
| int GameData::moveCount | ( | ) |
Definition at line 857 of file GameData.cpp.
| POSITION & GameData::MoveListData | ( | short | i | ) |
| bool GameData::partTile | ( | int | z, | |
| int | y, | |||
| int | x | |||
| ) |
Method Description.
- Parameters:
-
z y x
- Returns:
trueif ...falseif ...
Definition at line 58 of file GameData.cpp.
| void GameData::putTile | ( | POSITION & | pos | ) | [inline] |
| void GameData::putTile | ( | short | e, | |
| short | y, | |||
| short | x, | |||
| UCHAR | f | |||
| ) |
| bool GameData::saveToStream | ( | QDataStream & | out | ) |
Definition at line 977 of file GameData.cpp.
| void GameData::setBoardData | ( | short | z, | |
| short | y, | |||
| short | x, | |||
| UCHAR | value | |||
| ) |
| void GameData::setHighlightData | ( | short | z, | |
| short | y, | |||
| short | x, | |||
| UCHAR | value | |||
| ) |
| void GameData::setMoveListData | ( | short | i, | |
| POSITION & | value | |||
| ) |
Definition at line 695 of file GameData.cpp.
| void GameData::shuffle | ( | ) |
Definition at line 1000 of file GameData.cpp.
| bool GameData::tilePresent | ( | int | z, | |
| int | y, | |||
| int | x | |||
| ) |
Method Description.
- Parameters:
-
z y x
- Returns:
trueif ...falseif ...
Definition at line 53 of file GameData.cpp.
Member Data Documentation
| short GameData::m_depth |
| short GameData::m_height |
| short GameData::m_maxTiles |
| short GameData::m_width |
| KRandomSequence GameData::random |
Definition at line 169 of file GameData.h.
The documentation for this class was generated from the following files:
KDE 4.2 API Reference