summaryrefslogtreecommitdiffstats
path: root/pacman-c++/mainwidget.h
blob: dc20d752248cc43fd46947facf88186a1b7a2500 (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 "constants.h"
#include <QtGui>

class Actor;

class MainWidget
  : public QWidget
{
  Q_OBJECT

public:
  MainWidget();

private:
  void loadDummyMap();

  void updateScore();

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

  QList<QGridLayout*> m_playerScoreLayouts;
  QGraphicsScene *m_scene;

  QMap<Color, Actor*> m_actors;
};

#endif // MAINWIDGET_H