diff options
author | Your Name <you@example.com> | 2021-04-29 14:17:08 -0400 |
---|---|---|
committer | Your Name <you@example.com> | 2021-04-29 14:17:08 -0400 |
commit | 5a813a75412ac9b8fadb90c9abd46dd95aee8e9b (patch) | |
tree | 75c5466d459c793430a6481cd276a624cd843794 /src/spell.cc | |
parent | cd57ad6e208728bafcbc8c7d7b85d88603706978 (diff) | |
download | dmtool-5a813a75412ac9b8fadb90c9abd46dd95aee8e9b.tar.gz dmtool-5a813a75412ac9b8fadb90c9abd46dd95aee8e9b.tar.bz2 dmtool-5a813a75412ac9b8fadb90c9abd46dd95aee8e9b.zip |
Removed data files from repo
Diffstat (limited to 'src/spell.cc')
-rw-r--r-- | src/spell.cc | 17 |
1 files changed, 17 insertions, 0 deletions
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 <string> +#include <sstream> + +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(); + } +} |