aboutsummaryrefslogtreecommitdiff
path: root/src/entry.h
diff options
context:
space:
mode:
authorYour Name <you@example.com>2021-05-06 15:12:39 -0400
committerYour Name <you@example.com>2021-05-06 15:12:39 -0400
commit5ed030a38810e4a3bb9c969db6892065581340c6 (patch)
treeeac8fa93a221d7b4cbccacd18adf7cb83282e04f /src/entry.h
parent9f3802690f9dd9452e96d1d7a879291978d66e35 (diff)
downloaddmtool-5ed030a38810e4a3bb9c969db6892065581340c6.tar.gz
dmtool-5ed030a38810e4a3bb9c969db6892065581340c6.tar.bz2
dmtool-5ed030a38810e4a3bb9c969db6892065581340c6.zip
Implemented edit method
Diffstat (limited to 'src/entry.h')
-rw-r--r--src/entry.h3
1 files changed, 2 insertions, 1 deletions
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;
};
}