summaryrefslogtreecommitdiffstats
path: root/pacman-c++/gameentity.h
diff options
context:
space:
mode:
Diffstat (limited to 'pacman-c++/gameentity.h')
-rw-r--r--pacman-c++/gameentity.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/pacman-c++/gameentity.h b/pacman-c++/gameentity.h
new file mode 100644
index 0000000..82df438
--- /dev/null
+++ b/pacman-c++/gameentity.h
@@ -0,0 +1,19 @@
1#ifndef GAMEENTITY_H
2#define GAMEENTITY_H
3
4class Actor;
5
6/**
7 * Abstract base class for entities that interact in the game
8 */
9class GameEntity {
10
11 // returns whether the actor may enter this field
12 virtual bool checkEnter(Actor *actor) = 0;
13
14 // performs action when this actor acctually enters
15 virtual void enter(Actor *actor) = 0;
16
17};
18
19#endif // GAMEENTITY_H