summaryrefslogtreecommitdiffstats
path: root/pacman-c++/block.h
diff options
context:
space:
mode:
authormanuel <manuel@mausz.at>2011-04-06 15:07:50 +0200
committermanuel <manuel@mausz.at>2011-04-06 15:07:50 +0200
commit2b3210e6d19e32b7746e0e1cdf22035ce508ca8a (patch)
tree2fdd4967de000e72c9a9f83eefad47e7f13e6e21 /pacman-c++/block.h
parent6dc8b50817fe5da8550c245db755f7014402c62a (diff)
downloadfoop-2b3210e6d19e32b7746e0e1cdf22035ce508ca8a.tar.gz
foop-2b3210e6d19e32b7746e0e1cdf22035ce508ca8a.tar.bz2
foop-2b3210e6d19e32b7746e0e1cdf22035ce508ca8a.zip
adding nicer blocks :D
Diffstat (limited to 'pacman-c++/block.h')
-rw-r--r--pacman-c++/block.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/pacman-c++/block.h b/pacman-c++/block.h
index 40bde51..29ddd23 100644
--- a/pacman-c++/block.h
+++ b/pacman-c++/block.h
@@ -8,6 +8,7 @@
8class Block 8class Block
9 : public PixmapItem 9 : public PixmapItem
10{ 10{
11public:
11 enum Neighbour { 12 enum Neighbour {
12 None = 0, 13 None = 0,
13 Left = (1 << 0), 14 Left = (1 << 0),
@@ -16,8 +17,8 @@ class Block
16 Down = (1 << 3) 17 Down = (1 << 3)
17 }; 18 };
18 19
19public: 20 Block(Color::Color color, unsigned int neighbours = None, QGraphicsItem *parent = 0);
20 Block(Color::Color color, Neighbour neighbour = None, QGraphicsItem *parent = 0); 21 void setNeighbours(unsigned int neighbours);
21 22
22private: 23private:
23 // map for saving QPixmaps for reuse 24 // map for saving QPixmaps for reuse