#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); } }