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:
00036 explicit KGrPlayField (KGameCanvasAbstract* canvas = NULL);
00037
00041 ~KGrPlayField();
00042
00044 void setTile (int x, int y, int tilenum);
00045
00047 void setBackground (const bool create, const QPixmap &background,
00048 const QPoint & tl);
00049
00059 void setTiles (QList<QPixmap> * tileset, const QPoint & topLeft,
00060 const int h, const int v, const int tilewidth, const int tileheight);
00061
00062 private:
00063 QList<KGameCanvasPixmap *> m_tilesprites;
00064 QList<QPixmap> * m_tileset;
00065 int m_tilew;
00066 int m_tileh;
00067 int m_numTilesH;
00068 int m_numTilesV;
00069 KGameCanvasPixmap * m_background;
00070 };
00071
00072 #endif // KGRPLAYFIELD_H