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.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/pacman-c++/mainwidget.h b/pacman-c++/mainwidget.h
index 4cdb3b8..93af229 100644
--- a/pacman-c++/mainwidget.h
+++ b/pacman-c++/mainwidget.h
@@ -2,9 +2,12 @@
2#define MAINWIDGET_H 2#define MAINWIDGET_H
3 3
4#include <QtGui> 4#include <QtGui>
5#include <map>
5 6
6#include "constants.h" 7#include "constants.h"
7 8
9class Actor;
10
8class MainWidget 11class MainWidget
9 : public QWidget 12 : public QWidget
10{ 13{
@@ -19,7 +22,11 @@ private:
19 // data conversion 22 // data conversion
20 QPoint mapPositionToCoord(unsigned int x, unsigned int y); 23 QPoint mapPositionToCoord(unsigned int x, unsigned int y);
21 24
22 QGraphicsScene *scene; 25 QGraphicsScene *m_scene;
26
27 Actor *getActor(Color);
28 typedef std::map<Color, Actor*> ActorMap;
29 ActorMap m_actors;
23}; 30};
24 31
25#endif // MAINWIDGET_H \ No newline at end of file 32#endif // MAINWIDGET_H \ No newline at end of file