kgoldrunner
kgrplayfield.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018 #ifndef KGRPLAYFIELD_H
00019 #define KGRPLAYFIELD_H
00020
00021 #include <kgamecanvas.h>
00022
00023 #include <QPixmap>
00024 #include <QList>
00025
00030 class KGrPlayField : public KGameCanvasGroup
00031 {
00032 public:
00033 explicit KGrPlayField (KGameCanvasAbstract* canvas = NULL);
00034 ~KGrPlayField();
00035
00037 void setTile (int x, int y, int tilenum);
00038
00040 void setBackground (const bool create, const QImage * background,
00041 const QPoint & tl);
00042
00050 void setTiles (QList<QPixmap> * tileset, const QPoint & topLeft,
00051 const int h, const int v, const int tilewidth, const int tileheight);
00052
00053 private:
00054 QList<KGameCanvasPixmap *> m_tilesprites;
00055 QList<QPixmap> * m_tileset;
00056 int m_tilew;
00057 int m_tileh;
00058 int m_numTilesH;
00059 int m_numTilesV;
00060 KGameCanvasPixmap * m_background;
00061 };
00062
00063 #endif // KGRPLAYFIELD_H