From dce91729ff119ce6e00340f67297ca9e3e72110c Mon Sep 17 00:00:00 2001 From: totycro Date: Wed, 6 Apr 2011 15:07:01 +0200 Subject: Cleaned up constants --- pacman-c++/mainwidget.h | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'pacman-c++/mainwidget.h') 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: virtual void keyReleaseEvent(QKeyEvent* ); private: - void loadDummyMap(); + void createGui(); + + void updateMap(const Transmission::map_t& map); void updateScore(); + Transmission::map_t currentMap; + // data conversion QPoint mapPositionToCoord(unsigned int x, unsigned int y); @@ -36,10 +40,10 @@ private: QMap m_actors; // key currently pressed by user - transmission::field_t currentKey; + Transmission::field_t currentKey; // translate Qt::Key to our key format - transmission::field_t translateKey(int); + Transmission::field_t translateKey(int); }; #endif // MAINWIDGET_H -- cgit v1.2.3