summaryrefslogtreecommitdiffstats
path: root/pacman-c++/mainwidget.h
blob: 184c542227df5e7dddaa049ebfae8156d70753ef (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#ifndef MAINWIDGET_H
#define MAINWIDGET_H

#include <QtGui>
#include <map>

#include "constants.h"

class Actor;

class MainWidget
  : public QWidget
{
  Q_OBJECT

public:
  MainWidget();

private:
  void loadDummyMap();

  // data conversion
  QPoint mapPositionToCoord(unsigned int x, unsigned int y);

  QGraphicsScene *m_scene;

  typedef std::map<Color, Actor*> ActorMap;
  ActorMap m_actors;
};

#endif // MAINWIDGET_H