summaryrefslogtreecommitdiffstats
path: root/pacman-c++/mainwidget.h
diff options
context:
space:
mode:
authormanuel <manuel@mausz.at>2011-04-06 15:15:03 +0200
committermanuel <manuel@mausz.at>2011-04-06 15:15:03 +0200
commitcbc0da21f393dc7bf2a11beaf1314c9dcaeb0999 (patch)
tree534fee860ef8f0064425f98bbbb1febb7335f820 /pacman-c++/mainwidget.h
parent2b3210e6d19e32b7746e0e1cdf22035ce508ca8a (diff)
parentdce91729ff119ce6e00340f67297ca9e3e72110c (diff)
downloadfoop-cbc0da21f393dc7bf2a11beaf1314c9dcaeb0999.tar.gz
foop-cbc0da21f393dc7bf2a11beaf1314c9dcaeb0999.tar.bz2
foop-cbc0da21f393dc7bf2a11beaf1314c9dcaeb0999.zip
Merge branch 'master' of ssh://manuel.mausz.at/foop
Conflicts: pacman-c++/actor.cpp pacman-c++/constants.h pacman-c++/mainwidget.cpp
Diffstat (limited to 'pacman-c++/mainwidget.h')
-rw-r--r--pacman-c++/mainwidget.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/pacman-c++/mainwidget.h b/pacman-c++/mainwidget.h
index 0a97116..0056669 100644
--- a/pacman-c++/mainwidget.h
+++ b/pacman-c++/mainwidget.h
@@ -21,10 +21,14 @@ protected:
21 virtual void keyReleaseEvent(QKeyEvent* ); 21 virtual void keyReleaseEvent(QKeyEvent* );
22 22
23private: 23private:
24 void loadDummyMap(); 24 void createGui();
25
26 void updateMap(const Transmission::map_t& map);
25 27
26 void updateScore(); 28 void updateScore();
27 29
30 Transmission::map_t currentMap;
31
28 // data conversion 32 // data conversion
29 QPoint mapPositionToCoord(unsigned int x, unsigned int y); 33 QPoint mapPositionToCoord(unsigned int x, unsigned int y);
30 34
@@ -36,10 +40,10 @@ private:
36 QMap<Color::Color, Actor*> m_actors; 40 QMap<Color::Color, Actor*> m_actors;
37 41
38 // key currently pressed by user 42 // key currently pressed by user
39 transmission::field_t currentKey; 43 Transmission::field_t currentKey;
40 44
41 // translate Qt::Key to our key format 45 // translate Qt::Key to our key format
42 transmission::field_t translateKey(int); 46 Transmission::field_t translateKey(int);
43}; 47};
44 48
45#endif // MAINWIDGET_H 49#endif // MAINWIDGET_H