From 5a813a75412ac9b8fadb90c9abd46dd95aee8e9b Mon Sep 17 00:00:00 2001 From: Your Name Date: Thu, 29 Apr 2021 14:17:08 -0400 Subject: Removed data files from repo --- src/spell.cc | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 src/spell.cc (limited to 'src/spell.cc') diff --git a/src/spell.cc b/src/spell.cc new file mode 100644 index 0000000..0294956 --- /dev/null +++ b/src/spell.cc @@ -0,0 +1,17 @@ +#include "spell.h" +#include "utils.h" +#include +#include + +using namespace std; + +namespace entry { + string Spell::getText() const { + stringstream text; + text << utils::toOrdinal(getLevel()) << " level " << getSchool() << " spell." << endl; + text << "Casting time: " << getCastingTime() << ", Duration: " << getDuration() << ", Range: " << getRange() << ", Components: " << getComponents() << "." << endl; + text << Entry::getText() << endl; + text << "Available for: " << utils::join(getClasses(), ", ") << "." << endl; + return text.str(); + } +} -- cgit v1.2.3