kmahjongg
#include <boardwidget.h>
Where all the funn happens.
- See also
- BoardLayout
- Author
- Mathias Mueller
Definition at line 52 of file boardwidget.h.
Describe the enum.
Enumerator |
---|
Stop |
|
Demo |
|
Help |
|
Animation |
|
Match |
|
Definition at line 366 of file boardwidget.h.
BoardWidget::BoardWidget |
( |
QWidget * |
parent = 0 | ) |
|
|
explicit |
BoardWidget::~BoardWidget |
( |
| ) |
|
void BoardWidget::angleSwitchCCW |
( |
| ) |
|
|
slot |
void BoardWidget::angleSwitchCW |
( |
| ) |
|
|
slot |
void BoardWidget::animateMoveList |
( |
| ) |
|
void BoardWidget::animatingMoveListBackwards |
( |
| ) |
|
|
slot |
void BoardWidget::animatingMoveListForward |
( |
| ) |
|
|
slot |
void BoardWidget::calculateNewGame |
( |
int |
num = -1 | ) |
|
void BoardWidget::cancelUserSelectedTiles |
( |
| ) |
|
|
protected |
void BoardWidget::demoModeChanged |
( |
bool |
bActive | ) |
|
|
signal |
Signal Description.
- Parameters
-
void BoardWidget::demoMoveTimeout |
( |
| ) |
|
|
slot |
void BoardWidget::drawBoard |
( |
bool |
showTiles = true | ) |
|
|
slot |
void BoardWidget::drawTileNumber |
( |
| ) |
|
|
protected |
void BoardWidget::gameCalculated |
( |
| ) |
|
|
signal |
void BoardWidget::gameLoaded |
( |
| ) |
|
void BoardWidget::gameOver |
( |
unsigned short |
removed, |
|
|
unsigned short |
cheats |
|
) |
| |
|
signal |
QString BoardWidget::getBoardName |
( |
| ) |
|
|
inline |
long BoardWidget::getGameNum |
( |
| ) |
|
|
inline |
QString BoardWidget::getLayoutName |
( |
| ) |
|
void BoardWidget::helpMove |
( |
| ) |
|
|
slot |
void BoardWidget::helpMoveStop |
( |
| ) |
|
|
slot |
void BoardWidget::helpMoveTimeout |
( |
| ) |
|
|
slot |
void BoardWidget::hilightTile |
( |
POSITION & |
Pos, |
|
|
bool |
on = true , |
|
|
bool |
refresh = true |
|
) |
| |
|
protected |
Override the itemAt method of the KGameCanvasWidget.
We need this cause of corrections in the 3D simulated view with the stones, as the normal KGameCanvasWidget only supports 2D objects, and the thrown shadows should not be a part of the click event.
- Parameters
-
Definition at line 923 of file boardwidget.cpp.
bool BoardWidget::loadBackground |
( |
const QString & |
pszFileName, |
|
|
bool |
bShowError = true |
|
) |
| |
|
slot |
Slot Description.
- Returns
true
if ...
-
false
if ...
Definition at line 1048 of file boardwidget.cpp.
bool BoardWidget::loadBoard |
( |
| ) |
|
|
slot |
Slot Description.
- Returns
true
if ...
-
false
if ...
Definition at line 1035 of file boardwidget.cpp.
bool BoardWidget::loadBoardLayout |
( |
const QString & |
file | ) |
|
|
slot |
Slot Description.
- Returns
true
if ...
-
false
if ...
Definition at line 1098 of file boardwidget.cpp.
void BoardWidget::loadSettings |
( |
| ) |
|
|
slot |
bool BoardWidget::loadTileset |
( |
const QString & |
path | ) |
|
|
slot |
Slot Description.
- Returns
true
if ...
-
false
if ...
Definition at line 1078 of file boardwidget.cpp.
void BoardWidget::matchAnimationTimeout |
( |
| ) |
|
|
slot |
void BoardWidget::mousePressEvent |
( |
QMouseEvent * |
event | ) |
|
|
protected |
void BoardWidget::pause |
( |
| ) |
|
void BoardWidget::populateSpriteMap |
( |
| ) |
|
|
slot |
void BoardWidget::putTileInBoard |
( |
POSITION & |
Pos, |
|
|
bool |
refresh = true |
|
) |
| |
|
protected |
void BoardWidget::redoMove |
( |
| ) |
|
void BoardWidget::removeTile |
( |
POSITION & |
Pos, |
|
|
bool |
refresh = true |
|
) |
| |
|
protected |
int BoardWidget::requiredHeight |
( |
| ) |
|
|
protected |
int BoardWidget::requiredHorizontalCells |
( |
| ) |
|
|
protected |
int BoardWidget::requiredVerticalCells |
( |
| ) |
|
|
protected |
int BoardWidget::requiredWidth |
( |
| ) |
|
|
protected |
void BoardWidget::resizeTileset |
( |
const QSize & |
wsize | ) |
|
|
slot |
void BoardWidget::saveSettings |
( |
| ) |
|
|
slot |
void BoardWidget::setDisplayedWidth |
( |
| ) |
|
|
slot |
void BoardWidget::setShowMatch |
( |
bool |
show | ) |
|
void BoardWidget::setStatusText |
( |
const QString & |
pszText | ) |
|
|
protected |
void BoardWidget::shuffle |
( |
| ) |
|
|
slot |
void BoardWidget::startDemoMode |
( |
| ) |
|
void BoardWidget::statusTextChanged |
( |
const QString & |
, |
|
|
long |
|
|
) |
| |
|
signal |
void BoardWidget::stopDemoMode |
( |
| ) |
|
void BoardWidget::stopEndAnimation |
( |
| ) |
|
|
protected |
void BoardWidget::stopMatchAnimation |
( |
| ) |
|
|
protected |
void BoardWidget::tileNumberChanged |
( |
int |
iMaximum, |
|
|
int |
iCurrent, |
|
|
int |
iLeft |
|
) |
| |
|
signal |
void BoardWidget::transformPointToPosition |
( |
const QPoint & |
point, |
|
|
POSITION & |
MouseClickPos |
|
) |
| |
|
protected |
Transform window point to board position.
- Parameters
-
point | Input: Point in window coordinates |
MouseClickPos | Output: Position in game board |
Definition at line 971 of file boardwidget.cpp.
int BoardWidget::undoMove |
( |
| ) |
|
void BoardWidget::updateSpriteMap |
( |
| ) |
|
|
slot |
bool BoardWidget::validMovesAvailable |
( |
| ) |
|
|
protected |
This method test if any valid moves are available.
- Returns
- False if no valid move available, else true.
Definition at line 1238 of file boardwidget.cpp.
QTimer* BoardWidget::animateBackwardsTimer |
|
protected |
QTimer* BoardWidget::animateForwardTimer |
|
protected |
unsigned short BoardWidget::cheatsUsed |
|
protected |
long BoardWidget::gameGenerationNum |
|
protected |
bool BoardWidget::gamePaused |
|
protected |
int BoardWidget::iTimerStep |
|
protected |
short BoardWidget::matchCount |
|
protected |
bool BoardWidget::showHelp |
|
protected |
bool BoardWidget::showMatch |
|
protected |
KMahjonggBackground BoardWidget::theBackground |
KMahjonggTileset BoardWidget::theTiles |
The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:18:33 by
doxygen 1.8.7 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.