From 18bd0722a9cebc3ba80bfb74a5b5ba0dd9e53c75 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 16 Nov 2015 20:02:04 +0300 Subject: Rename SpellTarget into CommandTarget enum and convert it 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 7f2a66748..5dbaa578d 100644 --- a/src/textcommand.cpp +++ b/src/textcommand.cpp @@ -37,7 +37,7 @@ TextCommand::TextCommand(const unsigned int id, const std::string &symbol, const std::string &command, const std::string &comment, - const SpellTarget type, const std::string &icon, + const CommandTargetT type, const std::string &icon, const unsigned int basicLvl, const MagicSchool school, const unsigned int schoolLvl, const int mana) : mCommand(command), @@ -60,7 +60,7 @@ TextCommand::TextCommand(const unsigned int id, const std::string &symbol, TextCommand::TextCommand(const unsigned int id, const std::string &symbol, const std::string &command, const std::string &comment, - const SpellTarget type, const std::string &icon) : + const CommandTargetT type, const std::string &icon) : mCommand(command), mComment(comment), mSymbol(symbol), @@ -81,7 +81,7 @@ TextCommand::TextCommand(const unsigned int id) : mCommand(""), mComment(""), mSymbol(""), - mTargetType(NOTARGET), + mTargetType(CommandTarget::NoTarget), mIcon(""), mId(id), mMana(0), -- cgit v1.2.3-70-g09d2