#pragma once #include "Object.h" enum ObjectType { ARMOR, CONSUMABLE, GOLD, WEAPON, }; // database object table row struct UniversalObject { String name; String description; ObjectType type; int min_value; int max_value; int protection; }; class ObjectFactory { public: static Object * create_object(const UniversalObject & universal); static Object * create_object(const String & name = "", const String & description = ""); private: ObjectFactory() = delete; };