blob: 82df4387f52cce546303bb2ed6ad447d54d02676 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#ifndef GAMEENTITY_H
#define GAMEENTITY_H
class Actor;
/**
* Abstract base class for entities that interact in the game
*/
class GameEntity {
// returns whether the actor may enter this field
virtual bool checkEnter(Actor *actor) = 0;
// performs action when this actor acctually enters
virtual void enter(Actor *actor) = 0;
};
#endif // GAMEENTITY_H
|