aboutsummaryrefslogtreecommitdiff
path: root/src/entry.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/entry.cc')
-rw-r--r--src/entry.cc15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/entry.cc b/src/entry.cc
new file mode 100644
index 0000000..b6431f0
--- /dev/null
+++ b/src/entry.cc
@@ -0,0 +1,15 @@
+#include "entry.h"
+
+namespace creature {
+ class Creature;
+}
+
+namespace entry {
+ std::string genText(const Entry& e, const creature::Creature& c) {
+ return e.getName() + " (" + e.getType() + ")";
+ }
+
+ std::string Entry::getText(const creature::Creature& c) const {
+ return genText(*this, c);
+ }
+}