diff options
Diffstat (limited to 'pacman-c++/mainwidget.h')
| -rw-r--r-- | pacman-c++/mainwidget.h | 10 |
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 | ||
| 23 | private: | 23 | private: |
| 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 |
