summaryrefslogtreecommitdiffstats
path: root/pacman-c++/actor.h
blob: 39ccb88f88c325d26683227fa6f80e13a9e84133 (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
32
#ifndef ACTOR_H
#define ACTOR_H

#include "pixmapitem.h"
#include "constants.h"

class Actor
  : public PixmapItem
{
public:
  enum Movement {
    None = 0,
    Left,
    Right,
    Up,
    Down
  };

  Actor(Color::Color color, QGraphicsItem *parent = 0);
  virtual ~Actor() {};

  PixmapItem &getIcon();
  Color::Color getColor() { return m_color; }

private:
  QPixmap m_pix;
  Color::Color m_color;
  Movement m_direction;
  PixmapItem m_icon;
};

#endif // ACTOR_H