#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