Argentum Online - Servidor
entity_factory.h
1 #ifndef ENTITY_FACTORY_H
2 #define ENTITY_FACTORY_H
3 
4 #include "../../../include/types.h"
5 #include "mob_factory.h"
6 
7 class Player;
8 class Map;
9 
11  private:
12  Map& map;
13  // Devuelve el siguiente id a asignar a una nueva entidad.
14  EntityId get_next_id();
15 
16  public:
17  EntityFactory(Map& map);
18  ~EntityFactory();
19 
20  Player* create_player(nlohmann::json player_info);
21  Monster* create_monster(const std::string& monster_name);
22  Monster* create_monster(MobId monster_id);
23  Npc* create_npc(npc_proffesion_t npc);
24  Npc* create_npc(MobId npc_id);
25 };
26 
27 #endif // ENTITY_FACTORY_H
Monster
Definition: monster.h:10
EntityFactory
Definition: entity_factory.h:10
Npc
Definition: npc.h:10
Map
Definition: map.h:47
Player
Definition: player.h:14