From 19c9c38d28cdaafcc1b496027f53dcd1914037cf Mon Sep 17 00:00:00 2001 From: manuel Date: Sun, 17 Apr 2011 19:54:02 +0200 Subject: get rid of two dynamic_casts and use qgraphicitem_cast which is A LOT faster (it makes use of static casts) --- pacman-c++/point.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'pacman-c++/point.h') diff --git a/pacman-c++/point.h b/pacman-c++/point.h index 9fd9929..a406194 100644 --- a/pacman-c++/point.h +++ b/pacman-c++/point.h @@ -6,13 +6,18 @@ class Point : public GameEntity { +public: + enum + { + Type = UserType + Transmission::point + }; + public: Point(QGraphicsItem *parent=0); virtual ~Point() {}; virtual bool enter(Actor *actor); - virtual void onDie(Actor *actor); }; -- cgit v1.2.3