summaryrefslogtreecommitdiffstats
path: root/pacman-c++/block.h
diff options
context:
space:
mode:
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