summaryrefslogtreecommitdiffstats
path: root/pacman-c++/gameentity.h
diff options
context:
space:
mode:
authortotycro <totycro@unknown-horizons.org>2011-04-11 12:09:04 +0200
committertotycro <totycro@unknown-horizons.org>2011-04-11 12:09:04 +0200
commit98f4a31e1a359a69dbcc0fa4055f36cefb6d4e02 (patch)
treeddd164d3339a067116f02f88314e2f57457bb1df /pacman-c++/gameentity.h
parent30c36b7549f8ae411f8eca4de144627331895a24 (diff)
downloadfoop-98f4a31e1a359a69dbcc0fa4055f36cefb6d4e02.tar.gz
foop-98f4a31e1a359a69dbcc0fa4055f36cefb6d4e02.tar.bz2
foop-98f4a31e1a359a69dbcc0fa4055f36cefb6d4e02.zip
Added basic game logic
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