diff options
| author | manuel <manuel@mausz.at> | 2011-04-17 19:54:02 +0200 |
|---|---|---|
| committer | manuel <manuel@mausz.at> | 2011-04-17 19:54:02 +0200 |
| commit | 19c9c38d28cdaafcc1b496027f53dcd1914037cf (patch) | |
| tree | 416d1efa5ed1dd9fdcea55cb5794fdb25d3bbb87 /pacman-c++/bonuspoint.h | |
| parent | 65195fdab6262d31056c74f922376de3b009943c (diff) | |
| download | foop-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++/bonuspoint.h')
| -rw-r--r-- | pacman-c++/bonuspoint.h | 6 |
1 files changed, 6 insertions, 0 deletions
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 | |||
| @@ -7,6 +7,12 @@ class BonusPoint | |||
| 7 | : public GameEntity | 7 | : public GameEntity |
| 8 | { | 8 | { |
| 9 | public: | 9 | public: |
| 10 | enum | ||
| 11 | { | ||
| 12 | Type = UserType + Transmission::bonuspoint | ||
| 13 | }; | ||
| 14 | |||
| 15 | public: | ||
| 10 | BonusPoint(QGraphicsItem *parent=0); | 16 | BonusPoint(QGraphicsItem *parent=0); |
| 11 | virtual ~BonusPoint() | 17 | virtual ~BonusPoint() |
| 12 | {}; | 18 | {}; |
