kmahjongg
BoardLayout Class Reference
#include <BoardLayout.h>
Detailed Description
This class implements methods for loading and manipulating board.longer description
Definition at line 36 of file BoardLayout.h.
Public Member Functions | |
| bool | allFilled (POSITION &p) |
| bool | anyFilled (POSITION &p) |
| bool | blockedLeftOrRight (short z, short y, short x) |
| BoardLayout () | |
| void | clearBoardLayout () |
| void | copyBoardLayout (UCHAR *to, unsigned short &numTiles) |
| void | deleteTile (POSITION &p) |
| UCHAR | getBoardData (short z, short y, short x) |
| QString & | getFilename () |
| void | insertTile (POSITION &p) |
| bool | isTileAt (POSITION &p) |
| bool | loadBoardLayout (const QString &from) |
| bool | loadBoardLayout_10 (const QString &from) |
| bool | saveBoardLayout (const QString &where) |
| void | setBoardData (short z, short y, short x, UCHAR value) |
| void | shiftDown () |
| void | shiftLeft () |
| void | shiftRight () |
| void | shiftUp () |
| bool | tileAbove (POSITION &p) |
| bool | tileAbove (short z, short y, short x) |
| ~BoardLayout () | |
Public Attributes | |
| int | m_depth |
| int | m_height |
| int | m_maxTiles |
| int | m_width |
Protected Member Functions | |
| void | initialiseBoard () |
Constructor & Destructor Documentation
| BoardLayout::BoardLayout | ( | ) |
| BoardLayout::~BoardLayout | ( | ) |
Member Function Documentation
| bool BoardLayout::allFilled | ( | POSITION & | p | ) |
Description.
- Parameters:
-
&p blah blah pos
- Returns:
trueif title abowefalseif title not abowe
Definition at line 364 of file BoardLayout.cpp.
| bool BoardLayout::anyFilled | ( | POSITION & | p | ) |
Description.
- Parameters:
-
&p blah blah pos
- Returns:
trueif title abowefalseif title not abowe
Definition at line 358 of file BoardLayout.cpp.
| bool BoardLayout::blockedLeftOrRight | ( | short | z, | |
| short | y, | |||
| short | x | |||
| ) |
is this tile blocked to the left or right
- Parameters:
-
z blah blah y blah blah x blah blah
- Returns:
trueif ...falseif ...
Definition at line 343 of file BoardLayout.cpp.
| void BoardLayout::clearBoardLayout | ( | ) |
| void BoardLayout::copyBoardLayout | ( | UCHAR * | to, | |
| unsigned short & | numTiles | |||
| ) |
Description.
- Parameters:
-
*to blah blah &numTiles blah blah
Definition at line 233 of file BoardLayout.cpp.
| void BoardLayout::deleteTile | ( | POSITION & | p | ) |
| UCHAR BoardLayout::getBoardData | ( | short | z, | |
| short | y, | |||
| short | x | |||
| ) |
Method description.
- Parameters:
-
z blah blah y blah blah x blah blah
- Returns:
- UCHAR ...
Definition at line 377 of file BoardLayout.cpp.
| QString& BoardLayout::getFilename | ( | ) | [inline] |
| void BoardLayout::initialiseBoard | ( | ) | [protected] |
| void BoardLayout::insertTile | ( | POSITION & | p | ) |
| bool BoardLayout::isTileAt | ( | POSITION & | p | ) | [inline] |
Description.
- Parameters:
-
&p blah blah
- See also:
- pos
- Returns:
trueif title abowefalseif title not abowe
Definition at line 159 of file BoardLayout.h.
| bool BoardLayout::loadBoardLayout | ( | const QString & | from | ) |
Method description.
- Parameters:
-
from blah blah
- Returns:
trueif ...falseif ...
Definition at line 133 of file BoardLayout.cpp.
| bool BoardLayout::loadBoardLayout_10 | ( | const QString & | from | ) |
Method description.
- Parameters:
-
from blah blah
- Returns:
trueif ...falseif ...
- See also:
- loadBoardLayout
Definition at line 88 of file BoardLayout.cpp.
| bool BoardLayout::saveBoardLayout | ( | const QString & | where | ) |
Method description.
- Parameters:
-
where blah blah
- Returns:
trueif ...falseif ...
- See also:
- loadBoardLayout
Definition at line 44 of file BoardLayout.cpp.
| void BoardLayout::setBoardData | ( | short | z, | |
| short | y, | |||
| short | x, | |||
| UCHAR | value | |||
| ) |
Method description.
- Parameters:
-
z blah blah y blah blah x blah blah value blah blah
Definition at line 381 of file BoardLayout.cpp.
| void BoardLayout::shiftDown | ( | ) |
| void BoardLayout::shiftLeft | ( | ) |
| void BoardLayout::shiftRight | ( | ) |
| void BoardLayout::shiftUp | ( | ) |
| bool BoardLayout::tileAbove | ( | POSITION & | p | ) | [inline] |
is there a tile anywhere above here (top left to bot right quarter)
- Parameters:
-
&p blah blah pos
- Returns:
trueif title abowefalseif title not abowe
- See also:
- tileAbove
Definition at line 110 of file BoardLayout.h.
| bool BoardLayout::tileAbove | ( | short | z, | |
| short | y, | |||
| short | x | |||
| ) |
is there a tile anywhere above here (top left to bot right quarter)
- Parameters:
-
z blah blah y blah blah x blah blah
- Returns:
trueif title abowefalseif title not abowe
Definition at line 333 of file BoardLayout.cpp.
Member Data Documentation
The documentation for this class was generated from the following files:
KDE 4.2 API Reference