From db82bf99bbd6d246f3e8da19fe88705f7015f144 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 16 Nov 2015 20:39:21 +0300 Subject: Move TextCommandType enum into separate file and convert to strong typed. --- src/textcommand.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/textcommand.cpp') diff --git a/src/textcommand.cpp b/src/textcommand.cpp index baca21090..04d479ece 100644 --- a/src/textcommand.cpp +++ b/src/textcommand.cpp @@ -54,7 +54,7 @@ TextCommand::TextCommand(const unsigned int id, mSchool(school), mBaseLvl(basicLvl), mSchoolLvl(schoolLvl), - mCommandType(TEXT_COMMAND_MAGIC), + mCommandType(TextCommandType::Magic), mImage(nullptr) { loadImage(); @@ -75,7 +75,7 @@ TextCommand::TextCommand(const unsigned int id, const std::string &symbol, mSchool(MagicSchool::SkillMagic), mBaseLvl(0), mSchoolLvl(0), - mCommandType(TEXT_COMMAND_TEXT), + mCommandType(TextCommandType::Text), mImage(nullptr) { loadImage(); @@ -92,7 +92,7 @@ TextCommand::TextCommand(const unsigned int id) : mSchool(MagicSchool::SkillMagic), mBaseLvl(0), mSchoolLvl(0), - mCommandType(TEXT_COMMAND_TEXT), + mCommandType(TextCommandType::Text), mImage(nullptr) { loadImage(); -- cgit v1.2.3-60-g2f50