Argentum Online - Servidor
action.h
1 #ifndef __ACTION_H
2 #define __ACTION_H
3 
4 #include "../entities/entity.h"
5 #include "../position.h"
6 
7 class Map;
8 
9 class Action {
10  protected:
11  static Entity* get_entity(Map& map, EntityId entity_id);
12 
13  static Entity* get_entity(Map& map, position_t position);
14 
15  static void rm_entity(Map& map, EntityId entity_id);
16 
17  public:
18  virtual ~Action();
19  virtual void execute(Map& map, EntityId entity_id) const = 0;
20 };
21 
22 #endif
Action
Definition: action.h:9
Entity
Definition: entity.h:15
Map
Definition: map.h:47
position
Definition: position.h:8