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++/block.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'pacman-c++/block.h') 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: Down = (1 << 3) }; + enum + { + Type = UserType + Transmission::block + }; + public: Block(Color::Color color, unsigned int neighbours = None, QGraphicsItem *parent = 0); virtual ~Block() -- cgit v1.2.3