From b35be096423e89746d441cbf2333800f853c92fd Mon Sep 17 00:00:00 2001 From: totycro Date: Mon, 4 Apr 2011 22:55:41 +0200 Subject: Support actor in map --- pacman-c++/mainwidget.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'pacman-c++/mainwidget.h') 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 @@ #define MAINWIDGET_H #include +#include #include "constants.h" +class Actor; + class MainWidget : public QWidget { @@ -19,7 +22,11 @@ private: // data conversion QPoint mapPositionToCoord(unsigned int x, unsigned int y); - QGraphicsScene *scene; + QGraphicsScene *m_scene; + + Actor *getActor(Color); + typedef std::map ActorMap; + ActorMap m_actors; }; #endif // MAINWIDGET_H \ No newline at end of file -- cgit v1.2.3