• Skip to content
  • Skip to link menu
KDE 4.2 API Reference
  • KDE API Reference
  • API Reference
  • Sitemap
  • Contact Us
 

kmahjongg

BoardLayout Class Reference

#include <BoardLayout.h>

List of all members.


Detailed Description

This class implements methods for loading and manipulating board.

longer description

Author:
Mauricio Piacentini <mauricio@tabuleiro.com>

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 (  ) 

Default Constructor.

Definition at line 25 of file BoardLayout.cpp.

BoardLayout::~BoardLayout (  ) 

Default Deconstructor.

Definition at line 35 of file BoardLayout.cpp.


Member Function Documentation

bool BoardLayout::allFilled ( POSITION &  p  ) 

Description.

Parameters:
&p blah blah pos
Returns:
true if title abowe

false if title not abowe

Definition at line 364 of file BoardLayout.cpp.

bool BoardLayout::anyFilled ( POSITION &  p  ) 

Description.

Parameters:
&p blah blah pos
Returns:
true if title abowe

false if 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:
true if ...

false if ...

Definition at line 343 of file BoardLayout.cpp.

void BoardLayout::clearBoardLayout (  ) 

Method description.

Definition at line 39 of file BoardLayout.cpp.

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  ) 

Description.

Parameters:
&p blah blah pos

Definition at line 348 of file BoardLayout.cpp.

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]

Get filename.

Returns:
filename

Definition at line 198 of file BoardLayout.h.

void BoardLayout::initialiseBoard (  )  [protected]

Protected Method description.

Definition at line 187 of file BoardLayout.cpp.

void BoardLayout::insertTile ( POSITION &  p  ) 

Description.

Parameters:
&p blah blah
See also:
pos

Definition at line 370 of file BoardLayout.cpp.

bool BoardLayout::isTileAt ( POSITION &  p  )  [inline]

Description.

Parameters:
&p blah blah
See also:
pos
Returns:
true if title abowe

false if title not abowe

Definition at line 159 of file BoardLayout.h.

bool BoardLayout::loadBoardLayout ( const QString &  from  ) 

Method description.

Parameters:
from blah blah
Returns:
true if ...

false if ...

Definition at line 133 of file BoardLayout.cpp.

bool BoardLayout::loadBoardLayout_10 ( const QString &  from  ) 

Method description.

Parameters:
from blah blah
Returns:
true if ...

false if ...

See also:
loadBoardLayout

Definition at line 88 of file BoardLayout.cpp.

bool BoardLayout::saveBoardLayout ( const QString &  where  ) 

Method description.

Parameters:
where blah blah
Returns:
true if ...

false if ...

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 (  ) 

Method description.

Definition at line 306 of file BoardLayout.cpp.

void BoardLayout::shiftLeft (  ) 

Method description.

Definition at line 238 of file BoardLayout.cpp.

void BoardLayout::shiftRight (  ) 

Method description.

Definition at line 260 of file BoardLayout.cpp.

void BoardLayout::shiftUp (  ) 

Method description.

Definition at line 280 of file BoardLayout.cpp.

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:
true if title abowe

false if 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:
true if title abowe

false if title not abowe

Definition at line 333 of file BoardLayout.cpp.


Member Data Documentation

int BoardLayout::m_depth

Member Description.

Definition at line 191 of file BoardLayout.h.

int BoardLayout::m_height

Member Description.

Definition at line 190 of file BoardLayout.h.

int BoardLayout::m_maxTiles

Member Description.

Definition at line 192 of file BoardLayout.h.

int BoardLayout::m_width

Member Description.

Definition at line 189 of file BoardLayout.h.


The documentation for this class was generated from the following files:
  • BoardLayout.h
  • BoardLayout.cpp

kmahjongg

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

API Reference

Skip menu "API Reference"
  • kblackbox
  • kgoldrunner
  • kmahjongg
  • ksquares
  • libkdegames
  •   highscore
  •   kgame
  •   kggzgames
  •   kggzmod
  •   kggznet
  • libkmahjongg
Generated for API Reference by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal