diff options
Diffstat (limited to 'pacman-c++/sceneholder.h')
| -rw-r--r-- | pacman-c++/sceneholder.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/pacman-c++/sceneholder.h b/pacman-c++/sceneholder.h index 61cff3e..5183f65 100644 --- a/pacman-c++/sceneholder.h +++ b/pacman-c++/sceneholder.h | |||
| @@ -4,7 +4,7 @@ | |||
| 4 | #include "constants.h" | 4 | #include "constants.h" |
| 5 | #include <QtGui> | 5 | #include <QtGui> |
| 6 | 6 | ||
| 7 | class PixmapItem; | 7 | class GameEntity; |
| 8 | class Actor; | 8 | class Actor; |
| 9 | 9 | ||
| 10 | class SceneHolder | 10 | class SceneHolder |
| @@ -32,11 +32,16 @@ protected: | |||
| 32 | QPoint CoordToMapPosition(QPoint point); | 32 | QPoint CoordToMapPosition(QPoint point); |
| 33 | 33 | ||
| 34 | /* map of all pixmap instances */ | 34 | /* map of all pixmap instances */ |
| 35 | QVector< QVector<PixmapItem *> > visualMap; | 35 | QVector< QVector<GameEntity *> > visualMap; |
| 36 | 36 | ||
| 37 | /* map of actors in order to keep track of those instances */ | 37 | /* map of actors in order to keep track of those instances */ |
| 38 | QMap<Color::Color, Actor*> m_actors; | 38 | QMap<Color::Color, Actor*> m_actors; |
| 39 | 39 | ||
| 40 | /* items that got removed/has been eaten | ||
| 41 | * must be remove one tick later | ||
| 42 | */ | ||
| 43 | QList<GameEntity *> m_oldItems; | ||
| 44 | |||
| 40 | /* my local color */ | 45 | /* my local color */ |
| 41 | Color::Color m_color; | 46 | Color::Color m_color; |
| 42 | 47 | ||
