summaryrefslogtreecommitdiffstats
path: root/pacman-c++/mainwidget.h
diff options
context:
space:
mode:
authortotycro <totycro@unknown-horizons.org>2011-04-06 15:07:01 +0200
committertotycro <totycro@unknown-horizons.org>2011-04-06 15:07:01 +0200
commitdce91729ff119ce6e00340f67297ca9e3e72110c (patch)
treee0d2eb446bb7ba391319cbd02634bb635b08afcc /pacman-c++/mainwidget.h
parent6dc8b50817fe5da8550c245db755f7014402c62a (diff)
downloadfoop-dce91729ff119ce6e00340f67297ca9e3e72110c.tar.gz
foop-dce91729ff119ce6e00340f67297ca9e3e72110c.tar.bz2
foop-dce91729ff119ce6e00340f67297ca9e3e72110c.zip
Cleaned up constants
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