diff options
Diffstat (limited to 'pacman-c++/mainwidget.h')
| -rw-r--r-- | pacman-c++/mainwidget.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/pacman-c++/mainwidget.h b/pacman-c++/mainwidget.h index 0056669..36e5624 100644 --- a/pacman-c++/mainwidget.h +++ b/pacman-c++/mainwidget.h | |||
| @@ -1,10 +1,12 @@ | |||
| 1 | #ifndef MAINWIDGET_H | 1 | #ifndef MAINWIDGET_H |
| 2 | #define MAINWIDGET_H | 2 | #define MAINWIDGET_H |
| 3 | 3 | ||
| 4 | #include "constants.h" | ||
| 5 | #include <QtGui> | 4 | #include <QtGui> |
| 6 | #include <QtCore> | 5 | #include <QtCore> |
| 7 | 6 | ||
| 7 | #include "constants.h" | ||
| 8 | #include "pixmapitem.h" | ||
| 9 | |||
| 8 | class Actor; | 10 | class Actor; |
| 9 | 11 | ||
| 10 | class MainWidget | 12 | class MainWidget |
| @@ -22,12 +24,12 @@ protected: | |||
| 22 | 24 | ||
| 23 | private: | 25 | private: |
| 24 | void createGui(); | 26 | void createGui(); |
| 25 | 27 | ||
| 26 | void updateMap(const Transmission::map_t& map); | 28 | void updateMap(const Transmission::map_t& map); |
| 27 | 29 | ||
| 28 | void updateScore(); | 30 | void updateScore(); |
| 29 | 31 | ||
| 30 | Transmission::map_t currentMap; | 32 | PixmapItem ** visualMap; |
| 31 | 33 | ||
| 32 | // data conversion | 34 | // data conversion |
| 33 | QPoint mapPositionToCoord(unsigned int x, unsigned int y); | 35 | QPoint mapPositionToCoord(unsigned int x, unsigned int y); |
