KShisen
Public Slots |
Signals |
Public Member Functions |
Static Public Attributes |
Protected Member Functions |
List of all members
Board Class Reference
#include <board.h>
Inherits QWidget.
Public Slots | |
bool | loadBackground (const QString &) |
void | loadSettings () |
bool | loadTileset (const QString &) |
void | newGame () |
void | setPauseEnabled (bool enabled) |
void | setSoundsEnabled (bool enabled) |
Signals | |
void | changed () |
void | cheatStatusChanged () |
void | endOfGame () |
void | invalidMove () |
void | markMatched () |
void | newGameStarted () |
void | resized () |
void | selectAMatchingTile () |
void | selectAMove () |
void | selectATile () |
void | tilesDoNotMatch () |
Public Member Functions | |
Board (QWidget *parent=0) | |
~Board () | |
bool | canRedo () const |
bool | canUndo () const |
int | currentTime () const |
int | delay () const |
bool | gravityFlag () const |
bool | hasCheated () const |
bool | hint_I (PossibleMoves &possibleMoves) const |
bool | isOver () const |
bool | isPaused () const |
bool | isStuck () const |
virtual void | mousePressEvent (QMouseEvent *e) |
virtual void | paintEvent (QPaintEvent *e) |
void | redo () |
void | resetRedo () |
void | resetTimer () |
void | resetUndo () |
void | resizeBoard () |
virtual void | resizeEvent (QResizeEvent *e) |
void | setCheatModeEnabled (bool enabled) |
void | setChineseStyleFlag (bool b) |
void | setDelay (int) |
void | setGameOverEnabled (bool enabled) |
void | setGameStuckEnabled (bool enabled) |
void | setGravityFlag (bool b) |
void | setSize (int x, int y) |
void | setSolvableFlag (bool b) |
void | setTilesCanSlideFlag (bool b) |
void | showHint () |
bool | solvable (bool noRestore=false) |
bool | solvableFlag () const |
int | tilesLeft () const |
void | undo () |
int | xTiles () const |
int | yTiles () const |
Static Public Attributes | |
static const int | nTiles = 42 |
Protected Member Functions | |
virtual QSize | sizeHint () const |
Detailed Description
Constructor & Destructor Documentation
Member Function Documentation
bool Board::canRedo | ( | ) | const |
bool Board::canUndo | ( | ) | const |
|
signal |
|
signal |
int Board::currentTime | ( | ) | const |
|
signal |
bool Board::hasCheated | ( | ) | const |
bool Board::hint_I | ( | PossibleMoves & | possibleMoves | ) | const |
|
signal |
bool Board::isOver | ( | ) | const |
bool Board::isPaused | ( | ) | const |
bool Board::isStuck | ( | ) | const |
|
slot |
|
slot |
|
signal |
|
slot |
Does most of the newGame work.
This slot is called from the App::invokeNewGame() signal from App and should call App::newGame again to do the work that cannot be done from Board.
|
signal |
|
signal |
|
signal |
|
signal |
|
signal |
void Board::setCheatModeEnabled | ( | bool | enabled | ) |
void Board::setGameOverEnabled | ( | bool | enabled | ) |
void Board::setGameStuckEnabled | ( | bool | enabled | ) |
|
slot |
|
slot |
bool Board::solvable | ( | bool | noRestore = false | ) |
|
signal |
int Board::tilesLeft | ( | ) | const |
Member Data Documentation
The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:44:19 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:44:19 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.