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++/bonuspoint.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'pacman-c++/bonuspoint.h') diff --git a/pacman-c++/bonuspoint.h b/pacman-c++/bonuspoint.h index 2c5a07d..fbb5ba2 100644 --- a/pacman-c++/bonuspoint.h +++ b/pacman-c++/bonuspoint.h @@ -6,6 +6,12 @@ class BonusPoint : public GameEntity { +public: + enum + { + Type = UserType + Transmission::bonuspoint + }; + public: BonusPoint(QGraphicsItem *parent=0); virtual ~BonusPoint() -- cgit v1.2.3