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) | |
| ~KGrPlayField () | |
| void | setTile (int x, int y, int tilenum) |
| void | setBackground (const bool create, const QImage *background, const QPoint &tl) |
| void | setTiles (QList< QPixmap > *tileset, const QPoint &topLeft, const int h, const int v, const int tilewidth, const int tileheight) |
Constructor & Destructor Documentation
| KGrPlayField::KGrPlayField | ( | KGameCanvasAbstract * | canvas = NULL |
) | [explicit] |
Definition at line 22 of file kgrplayfield.cpp.
| KGrPlayField::~KGrPlayField | ( | ) |
Definition at line 29 of file kgrplayfield.cpp.
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.
The origin relative to the canvas is passed in
- Parameters:
-
topLeft,the number of tiles the playground is composed of are passed in h and v,and tileWidth and contain the size of the single tile.
Definition at line 69 of file kgrplayfield.cpp.
The documentation for this class was generated from the following files:
KDE 4.0 API Reference