From 651a1bee1adc5318922d1b37b0cea11a65df71e2 Mon Sep 17 00:00:00 2001 From: manuel Date: Tue, 12 Apr 2011 18:08:02 +0200 Subject: 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() --- pacman-c++/actor.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'pacman-c++/actor.h') diff --git a/pacman-c++/actor.h b/pacman-c++/actor.h index ae04687..6b6f743 100644 --- a/pacman-c++/actor.h +++ b/pacman-c++/actor.h @@ -1,7 +1,7 @@ #ifndef ACTOR_H #define ACTOR_H -#include "pixmapitem.h" +#include "gameentity.h" #include "constants.h" #include "audio.h" #include @@ -9,7 +9,7 @@ #include class Actor - : public PixmapItem + : public GameEntity { Q_OBJECT @@ -27,7 +27,6 @@ public: {}; QSequentialAnimationGroup *setupEatingAnimation(Actor::Movement direction); - Color::Color color(); PixmapItem &icon(); Movement direction(); bool isLocal(); @@ -47,7 +46,6 @@ private: private: QPixmap m_pix; - Color::Color m_color; Movement m_direction; PixmapItem m_icon; bool m_local; -- cgit v1.2.3