kgoldrunner
KGrPlayField Class Reference
#include <kgrplayfield.h>
Inheritance diagram for KGrPlayField:

Detailed Description
The KGrPlayField is a KGameCanvasGroup managing the graphical representation of the playfield.Definition at line 30 of file kgrplayfield.h.
Public Member Functions | |
| KGrPlayField (KGameCanvasAbstract *canvas=NULL) | |
| void | setBackground (const bool create, const QPixmap &background, const QPoint &tl) |
| void | setTile (int x, int y, int tilenum) |
| void | setTiles (QList< QPixmap > *tileset, const QPoint &topLeft, const int h, const int v, const int tilewidth, const int tileheight) |
| ~KGrPlayField () | |
Constructor & Destructor Documentation
| KGrPlayField::KGrPlayField | ( | KGameCanvasAbstract * | canvas = NULL |
) | [explicit] |
| KGrPlayField::~KGrPlayField | ( | ) |
Member Function Documentation
| void KGrPlayField::setTile | ( | int | x, | |
| int | y, | |||
| int | tilenum | |||
| ) |
| void KGrPlayField::setTiles | ( | QList< QPixmap > * | tileset, | |
| const QPoint & | topLeft, | |||
| const int | h, | |||
| const int | v, | |||
| const int | tilewidth, | |||
| const int | tileheight | |||
| ) |
Set the tileset to use for the playfield and clear it to the background.
- Parameters:
-
[in] topLeft The origin relative to the canvas. [in] h Playground height, in number of tiles [in] v Playground width, in number of tiles [in] tilewidth The width of a single tile. [in] tileheight The height of a single tile. tileset List of tiles.
Definition at line 68 of file kgrplayfield.cpp.
The documentation for this class was generated from the following files:
KDE 4.2 API Reference