From 65195fdab6262d31056c74f922376de3b009943c Mon Sep 17 00:00:00 2001 From: manuel Date: Sun, 17 Apr 2011 19:19:56 +0200 Subject: a bigger commit again: - fix pacman movement. now more like real pacman (again). e.g. if you press a direction-key again: the pacman will move in that direction as soon as possible and no repeated keypress is needed - add random colorized blocks (without dieing yet) - add cmdline-option: --nocolorblocks to disable that --- pacman-c++/block.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'pacman-c++/block.h') diff --git a/pacman-c++/block.h b/pacman-c++/block.h index 2f388c8..6d97a9a 100644 --- a/pacman-c++/block.h +++ b/pacman-c++/block.h @@ -23,6 +23,7 @@ public: virtual ~Block() {}; + unsigned int neighbours(); void setNeighbours(unsigned int neighbours); virtual bool checkEnter(Actor *actor); virtual bool enter(Actor *actor); @@ -30,6 +31,7 @@ public: private: // map for saving QPixmaps for reuse static QMap m_pixmaps; + unsigned int m_neighbours; }; #endif // BLOCK_H -- cgit v1.2.3