From 5ed030a38810e4a3bb9c969db6892065581340c6 Mon Sep 17 00:00:00 2001 From: Your Name Date: Thu, 6 May 2021 15:12:39 -0400 Subject: Implemented edit method --- src/entry.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/entry.h') diff --git a/src/entry.h b/src/entry.h index ced8544..c745097 100644 --- a/src/entry.h +++ b/src/entry.h @@ -21,6 +21,7 @@ namespace entry { std::string getName(void) const {return name;} std::string getType(void) const {return type;} virtual std::string getText(void) const {return text;} + void setText(std::string t) {text = t;} virtual std::string getText(const creature::Creature& c) const { //return genText(*this, c); return genText(*this, c) + ": " + getText(); @@ -44,6 +45,6 @@ namespace entry { const std::string entry; const std::string name; const std::string type; - const std::string text; + std::string text; }; } -- cgit v1.2.3