diff options
Diffstat (limited to 'src/item.h')
-rw-r--r-- | src/item.h | 8 |
1 files changed, 2 insertions, 6 deletions
@@ -1,5 +1,5 @@ #pragma once -#include "json.hpp" +#include <nlohmann/json.hpp> #include "entry.h" #include <memory> @@ -8,17 +8,13 @@ namespace entry { public: static std::shared_ptr<Item> create(const nlohmann::json& data); virtual ~Item() {} - - protected: - Item(const nlohmann::json& data) : Entry(data) {} }; class Substantial { public: virtual int getCost(void) const = 0; virtual double getWeight(void) const = 0; + std::string getText() const; virtual ~Substantial() {} }; - - std::string genText(const Substantial& s); } |