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++/block.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++/block.h')
| -rw-r--r-- | pacman-c++/block.h | 5 |
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 | |||
| 21 | public: | 26 | public: |
| 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() |
