summaryrefslogtreecommitdiffstats
path: root/pacman-c++/mainwidget.h
diff options
context:
space:
mode:
Diffstat (limited to 'pacman-c++/mainwidget.h')
-rw-r--r--pacman-c++/mainwidget.h17
1 files changed, 11 insertions, 6 deletions
diff --git a/pacman-c++/mainwidget.h b/pacman-c++/mainwidget.h
index b15427c..6adcba2 100644
--- a/pacman-c++/mainwidget.h
+++ b/pacman-c++/mainwidget.h
@@ -1,11 +1,10 @@
1#ifndef MAINWIDGET_H 1#ifndef MAINWIDGET_H
2#define MAINWIDGET_H 2#define MAINWIDGET_H
3 3
4#include <QtGui>
5#include <QtCore>
6
7#include "constants.h" 4#include "constants.h"
8#include "pixmapitem.h" 5#include "pixmapitem.h"
6#include <QtGui>
7#include <QtCore>
9 8
10class Actor; 9class Actor;
11 10
@@ -24,12 +23,15 @@ protected:
24 23
25private: 24private:
26 void createGui(); 25 void createGui();
27
28 void updateMap(const Transmission::map_t& map); 26 void updateMap(const Transmission::map_t& map);
29
30 void updateScore(); 27 void updateScore();
28 bool isRunning();
31 29
32 QVector< QVector< PixmapItem* > > visualMap; 30private slots:
31 void startGame();
32
33private:
34 QVector< QVector<PixmapItem *> > visualMap;
33 35
34 // data conversion 36 // data conversion
35 QPoint mapPositionToCoord(unsigned int x, unsigned int y); 37 QPoint mapPositionToCoord(unsigned int x, unsigned int y);
@@ -46,6 +48,9 @@ private:
46 48
47 // translate Qt::Key to our key format 49 // translate Qt::Key to our key format
48 Transmission::field_t translateKey(int); 50 Transmission::field_t translateKey(int);
51
52 // game running
53 bool m_running;
49}; 54};
50 55
51#endif // MAINWIDGET_H 56#endif // MAINWIDGET_H