summaryrefslogtreecommitdiffstats
path: root/pacman-c++/actor.h
diff options
context:
space:
mode:
Diffstat (limited to 'pacman-c++/actor.h')
-rw-r--r--pacman-c++/actor.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/pacman-c++/actor.h b/pacman-c++/actor.h
new file mode 100644
index 0000000..753c920
--- /dev/null
+++ b/pacman-c++/actor.h
@@ -0,0 +1,30 @@
1#ifndef ACTOR_H
2#define ACTOR_H
3
4#include "pixmapitem.h"
5
6class Actor
7 : public PixmapItem
8{
9public:
10 enum Movement {
11 None = 0,
12 Left,
13 Right,
14 Up,
15 Down
16 };
17
18 enum Type {
19 Player1 = 1,
20 Player2,
21 Player3,
22 };
23
24 Actor(Type type);
25private:
26 Type m_type;
27 Movement m_direction;
28};
29
30#endif // ACTOR_H