summaryrefslogtreecommitdiffstats
path: root/pacman-c++/block.h
diff options
context:
space:
mode:
authormanuel <manuel@mausz.at>2011-04-17 19:19:56 +0200
committermanuel <manuel@mausz.at>2011-04-17 19:19:56 +0200
commit65195fdab6262d31056c74f922376de3b009943c (patch)
treee76a6141ae0603494dab0830baa41ec29a55f74e /pacman-c++/block.h
parent8187d48b30defcb11c61ba5365fe974151849e38 (diff)
downloadfoop-65195fdab6262d31056c74f922376de3b009943c.tar.gz
foop-65195fdab6262d31056c74f922376de3b009943c.tar.bz2
foop-65195fdab6262d31056c74f922376de3b009943c.zip
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
Diffstat (limited to 'pacman-c++/block.h')
-rw-r--r--pacman-c++/block.h2
1 files changed, 2 insertions, 0 deletions
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:
23 virtual ~Block() 23 virtual ~Block()
24 {}; 24 {};
25 25
26 unsigned int neighbours();
26 void setNeighbours(unsigned int neighbours); 27 void setNeighbours(unsigned int neighbours);
27 virtual bool checkEnter(Actor *actor); 28 virtual bool checkEnter(Actor *actor);
28 virtual bool enter(Actor *actor); 29 virtual bool enter(Actor *actor);
@@ -30,6 +31,7 @@ public:
30private: 31private:
31 // map for saving QPixmaps for reuse 32 // map for saving QPixmaps for reuse
32 static QMap<Color::Color, QPixmap> m_pixmaps; 33 static QMap<Color::Color, QPixmap> m_pixmaps;
34 unsigned int m_neighbours;
33}; 35};
34 36
35#endif // BLOCK_H 37#endif // BLOCK_H