• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdegames API Reference
  • KDE Home
  • Contact Us
 

kmahjongg

Public Member Functions | Public Attributes | List of all members
GameData Class Reference

#include <GameData.h>

Public Member Functions

 GameData (BoardLayout *boardlayout)
 
 ~GameData ()
 
UCHAR BoardData (short z, short y, short x)
 
void clearRemovedTilePair (POSITION &a, POSITION &b)
 
short findAllMatchingTiles (POSITION &posA)
 
bool findMove (POSITION &posA, POSITION &posB)
 
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 (short e, short y, short x, UCHAR f)
 
void putTile (POSITION &pos)
 
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)
 

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
 

Detailed Description

This class implements.

longer description

Author
Mauricio Piacentini mauri.nosp@m.cio@.nosp@m.tabul.nosp@m.eiro.nosp@m..com

Definition at line 51 of file GameData.h.

Constructor & Destructor Documentation

GameData::GameData ( BoardLayout *  boardlayout)
explicit

Constructor.

Parameters
boardlayout
See also
BoardLayout

Definition at line 25 of file GameData.cpp.

GameData::~GameData ( )

Default Destructor.

Definition at line 47 of file GameData.cpp.

Member Function Documentation

UCHAR GameData::BoardData ( short  z,
short  y,
short  x 
)

Method Description.

Parameters
z
y
x
Returns
UCHAR

Definition at line 104 of file GameData.cpp.

void GameData::clearRemovedTilePair ( POSITION &  a,
POSITION &  b 
)

Definition at line 824 of file GameData.cpp.

short GameData::findAllMatchingTiles ( POSITION &  posA)

Definition at line 1005 of file GameData.cpp.

bool GameData::findMove ( POSITION &  posA,
POSITION &  posB 
)

Definition at line 884 of file GameData.cpp.

void GameData::generatePositionDepends ( )

Definition at line 165 of file GameData.cpp.

bool GameData::generateStartPosition2 ( )

Definition at line 549 of file GameData.cpp.

void GameData::generateTilePositions ( )

Definition at line 143 of file GameData.cpp.

POSITION& GameData::getFromPosTable ( int  index)
inline

Definition at line 184 of file GameData.h.

char* GameData::getMaskBytes ( )
inline

Method Description.

Returns
*char blah blah

Definition at line 166 of file GameData.h.

UCHAR GameData::HighlightData ( short  z,
short  y,
short  x 
)

Method Description.

Parameters
z
y
x
Returns
UCHAR

Definition at line 84 of file GameData.cpp.

void GameData::initialiseRemovedTiles ( )

Definition at line 871 of file GameData.cpp.

bool GameData::isMatchingTile ( POSITION &  Pos1,
POSITION &  Pos2 
)

Definition at line 762 of file GameData.cpp.

bool GameData::loadFromStream ( QDataStream &  in)

Definition at line 1047 of file GameData.cpp.

UCHAR GameData::MaskData ( short  z,
short  y,
short  x 
)

Method Description.

Parameters
z
y
x
Returns
UCHAR

Definition at line 74 of file GameData.cpp.

int GameData::moveCount ( )

Definition at line 951 of file GameData.cpp.

POSITION & GameData::MoveListData ( short  i)

Method Description.

Parameters
i
Returns
POSITION pos

Definition at line 124 of file GameData.cpp.

bool GameData::partTile ( int  z,
int  y,
int  x 
)

Method Description.

Parameters
z
y
x
Returns
true if ...
false if ...

Definition at line 69 of file GameData.cpp.

void GameData::putTile ( short  e,
short  y,
short  x,
UCHAR  f 
)

Method Description.

Parameters
e
y
x
f

Definition at line 51 of file GameData.cpp.

void GameData::putTile ( POSITION &  pos)
inline

Method Description.

Parameters
pospos

Definition at line 79 of file GameData.h.

bool GameData::saveToStream ( QDataStream &  out)

Definition at line 1073 of file GameData.cpp.

void GameData::setBoardData ( short  z,
short  y,
short  x,
UCHAR  value 
)

Method Description.

Parameters
z
y
x
value

Definition at line 114 of file GameData.cpp.

void GameData::setHighlightData ( short  z,
short  y,
short  x,
UCHAR  value 
)

Method Description.

Parameters
z
y
x
value

Definition at line 94 of file GameData.cpp.

void GameData::setMoveListData ( short  i,
POSITION &  value 
)

Method Description.

Parameters
i
valuepos

Definition at line 134 of file GameData.cpp.

void GameData::setRemovedTilePair ( POSITION &  a,
POSITION &  b 
)

Definition at line 777 of file GameData.cpp.

void GameData::shuffle ( )

Definition at line 1098 of file GameData.cpp.

bool GameData::tilePresent ( int  z,
int  y,
int  x 
)

Method Description.

Parameters
z
y
x
Returns
true if ...
false if ...

Definition at line 59 of file GameData.cpp.

Member Data Documentation

int GameData::allow_redo

Definition at line 187 of file GameData.h.

int GameData::allow_undo

Definition at line 186 of file GameData.h.

short GameData::m_depth

Definition at line 195 of file GameData.h.

short GameData::m_height

Definition at line 194 of file GameData.h.

short GameData::m_maxTiles

Definition at line 196 of file GameData.h.

short GameData::m_width

Definition at line 193 of file GameData.h.

USHORT GameData::MaxTileNum

Definition at line 190 of file GameData.h.

KRandomSequence GameData::random

Definition at line 198 of file GameData.h.

USHORT GameData::TileNum

Definition at line 189 of file GameData.h.


The documentation for this class was generated from the following files:
  • GameData.h
  • GameData.cpp
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.

kmahjongg

Skip menu "kmahjongg"
  • Main Page
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members

kdegames API Reference

Skip menu "kdegames API Reference"
  • granatier
  • kapman
  • kblackbox
  • kgoldrunner
  • kigo
  • kmahjongg
  • KShisen
  • ksquares
  • libkdegames
  •   highscore
  •   libkdegamesprivate
  •     kgame
  • libkmahjongg
  • palapeli
  •   libpala

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal