summaryrefslogtreecommitdiffstats
path: root/pacman-c++/point.h
diff options
context:
space:
mode:
authormanuel <manuel@mausz.at>2011-04-17 19:54:02 +0200
committermanuel <manuel@mausz.at>2011-04-17 19:54:02 +0200
commit19c9c38d28cdaafcc1b496027f53dcd1914037cf (patch)
tree416d1efa5ed1dd9fdcea55cb5794fdb25d3bbb87 /pacman-c++/point.h
parent65195fdab6262d31056c74f922376de3b009943c (diff)
downloadfoop-19c9c38d28cdaafcc1b496027f53dcd1914037cf.tar.gz
foop-19c9c38d28cdaafcc1b496027f53dcd1914037cf.tar.bz2
foop-19c9c38d28cdaafcc1b496027f53dcd1914037cf.zip
get rid of two dynamic_casts and use qgraphicitem_cast which is A LOT faster (it makes use of static casts)
Diffstat (limited to 'pacman-c++/point.h')
-rw-r--r--pacman-c++/point.h7
1 files changed, 6 insertions, 1 deletions
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
@@ -7,12 +7,17 @@ class Point
7 : public GameEntity 7 : public GameEntity
8{ 8{
9public: 9public:
10 enum
11 {
12 Type = UserType + Transmission::point
13 };
14
15public:
10 Point(QGraphicsItem *parent=0); 16 Point(QGraphicsItem *parent=0);
11 virtual ~Point() 17 virtual ~Point()
12 {}; 18 {};
13 19
14 virtual bool enter(Actor *actor); 20 virtual bool enter(Actor *actor);
15
16 virtual void onDie(Actor *actor); 21 virtual void onDie(Actor *actor);
17}; 22};
18 23