summaryrefslogtreecommitdiffstats
path: root/pacman-c++/block.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++/block.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++/block.h')
-rw-r--r--pacman-c++/block.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/pacman-c++/block.h b/pacman-c++/block.h
index 6d97a9a..2e47646 100644
--- a/pacman-c++/block.h
+++ b/pacman-c++/block.h
@@ -18,6 +18,11 @@ public:
18 Down = (1 << 3) 18 Down = (1 << 3)
19 }; 19 };
20 20
21 enum
22 {
23 Type = UserType + Transmission::block
24 };
25
21public: 26public:
22 Block(Color::Color color, unsigned int neighbours = None, QGraphicsItem *parent = 0); 27 Block(Color::Color color, unsigned int neighbours = None, QGraphicsItem *parent = 0);
23 virtual ~Block() 28 virtual ~Block()