From 6dc8b50817fe5da8550c245db755f7014402c62a Mon Sep 17 00:00:00 2001 From: manuel Date: Wed, 6 Apr 2011 14:32:09 +0200 Subject: some minor cleanup --- pacman-c++/block.h | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) (limited to 'pacman-c++/block.h') diff --git a/pacman-c++/block.h b/pacman-c++/block.h index 034a626..40bde51 100644 --- a/pacman-c++/block.h +++ b/pacman-c++/block.h @@ -8,12 +8,20 @@ class Block : public PixmapItem { + enum Neighbour { + None = 0, + Left = (1 << 0), + Right = (1 << 1), + Up = (1 << 2), + Down = (1 << 3) + }; + public: - Block(Color color, QGraphicsItem *parent=0); + Block(Color::Color color, Neighbour neighbour = None, QGraphicsItem *parent = 0); - private: - // map for saving QPixmaps for reuse - static QMap m_pixmaps; +private: + // map for saving QPixmaps for reuse + static QMap m_pixmaps; }; #endif // BLOCK_H -- cgit v1.2.3