diff options
| author | manuel <manuel@mausz.at> | 2011-04-12 18:08:02 +0200 |
|---|---|---|
| committer | manuel <manuel@mausz.at> | 2011-04-12 18:08:02 +0200 |
| commit | 651a1bee1adc5318922d1b37b0cea11a65df71e2 (patch) | |
| tree | a60d4921d569f0b4b817e31e049cbc64d11d05f9 /pacman-c++/pixmapitem.h | |
| parent | fae7c3377c8995b217e620c5cf1e963b3ab1e84a (diff) | |
| download | foop-651a1bee1adc5318922d1b37b0cea11a65df71e2.tar.gz foop-651a1bee1adc5318922d1b37b0cea11a65df71e2.tar.bz2 foop-651a1bee1adc5318922d1b37b0cea11a65df71e2.zip | |
make removal of items from scene delayed by one tick (looks better)
all items are now derived from gameentity and gameentity is derived from pixmapitem:
- this is naturally better
- allows us to add a generic gameentity.color()
Diffstat (limited to 'pacman-c++/pixmapitem.h')
| -rw-r--r-- | pacman-c++/pixmapitem.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/pacman-c++/pixmapitem.h b/pacman-c++/pixmapitem.h index 7560556..f57c22a 100644 --- a/pacman-c++/pixmapitem.h +++ b/pacman-c++/pixmapitem.h | |||
| @@ -1,12 +1,11 @@ | |||
| 1 | #ifndef PIXMAPITEM__H | 1 | #ifndef PIXMAPITEM__H |
| 2 | #define PIXMAPITEM__H | 2 | #define PIXMAPITEM__H |
| 3 | 3 | ||
| 4 | #include "gameentity.h" | ||
| 5 | #include <QtGui/QGraphicsObject> | 4 | #include <QtGui/QGraphicsObject> |
| 6 | #include <QtGui/QGraphicsScene> | 5 | #include <QtGui/QGraphicsScene> |
| 7 | 6 | ||
| 8 | class PixmapItem | 7 | class PixmapItem |
| 9 | : public QGraphicsObject, public GameEntity | 8 | : public QGraphicsObject |
| 10 | { | 9 | { |
| 11 | public: | 10 | public: |
| 12 | PixmapItem(QGraphicsItem *parent = 0); | 11 | PixmapItem(QGraphicsItem *parent = 0); |
