aboutsummaryrefslogtreecommitdiff
path: root/src/item.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/item.h')
-rw-r--r--src/item.h8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/item.h b/src/item.h
index b0b06af..fc43a40 100644
--- a/src/item.h
+++ b/src/item.h
@@ -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);
}