summaryrefslogtreecommitdiffstats
path: root/pacman-c++/mainwidget.h
diff options
context:
space:
mode:
authortotycro <totycro@unknown-horizons.org>2011-04-05 17:50:57 +0200
committertotycro <totycro@unknown-horizons.org>2011-04-05 17:50:57 +0200
commit050e11002cb05586cf0f013b234c6801a9d876c4 (patch)
tree00e54db649f2755f793609be4b59e971736b80b5 /pacman-c++/mainwidget.h
parent7a56db7a6e9a21c1e2782f27b2f04ccc387d4efe (diff)
downloadfoop-050e11002cb05586cf0f013b234c6801a9d876c4.tar.gz
foop-050e11002cb05586cf0f013b234c6801a9d876c4.tar.bz2
foop-050e11002cb05586cf0f013b234c6801a9d876c4.zip
Added simple scorebox
Diffstat (limited to 'pacman-c++/mainwidget.h')
-rw-r--r--pacman-c++/mainwidget.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/pacman-c++/mainwidget.h b/pacman-c++/mainwidget.h
index f98cc42..dc20d75 100644
--- a/pacman-c++/mainwidget.h
+++ b/pacman-c++/mainwidget.h
@@ -3,7 +3,6 @@
3 3
4#include "constants.h" 4#include "constants.h"
5#include <QtGui> 5#include <QtGui>
6#include <map>
7 6
8class Actor; 7class Actor;
9 8
@@ -18,13 +17,15 @@ public:
18private: 17private:
19 void loadDummyMap(); 18 void loadDummyMap();
20 19
20 void updateScore();
21
21 // data conversion 22 // data conversion
22 QPoint mapPositionToCoord(unsigned int x, unsigned int y); 23 QPoint mapPositionToCoord(unsigned int x, unsigned int y);
23 24
25 QList<QGridLayout*> m_playerScoreLayouts;
24 QGraphicsScene *m_scene; 26 QGraphicsScene *m_scene;
25 27
26 typedef std::map<Color, Actor*> ActorMap; 28 QMap<Color, Actor*> m_actors;
27 ActorMap m_actors;
28}; 29};
29 30
30#endif // MAINWIDGET_H 31#endif // MAINWIDGET_H