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