5 #include <unordered_map>
10 #include "special_ability.h"
15 const char* what()
const throw();
20 std::unordered_map<ItemId, item_type_t> id_to_type_map;
21 std::unordered_map<ItemId, Armor> armors_map;
22 std::unordered_map<std::string, nlohmann::json> abilities_map;
23 std::unordered_map<ItemId, Weapon> weapons_map;
24 std::unordered_map<ItemId, Potion> potions_map;
27 void add_armors(
const nlohmann::json& armors_data);
29 void add_abilities(
const nlohmann::json& abilities_data);
31 void add_weapons(
const nlohmann::json& weapons_data);
33 void add_potions(
const nlohmann::json& potions_data);
48 bool item_exists(ItemId item_id);
52 #endif // ITEM_FACTORY_H