summaryrefslogtreecommitdiff
path: root/src/textcommand.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-11-16 20:02:04 +0300
committerAndrei Karas <akaras@inbox.ru>2015-11-16 20:02:04 +0300
commit18bd0722a9cebc3ba80bfb74a5b5ba0dd9e53c75 (patch)
tree179d12121a4e588efa53c67a207e2ab5392d99eb /src/textcommand.cpp
parent44cdf80268135a21ddb09710fc029e808fb3f519 (diff)
downloadplus-18bd0722a9cebc3ba80bfb74a5b5ba0dd9e53c75.tar.gz
plus-18bd0722a9cebc3ba80bfb74a5b5ba0dd9e53c75.tar.bz2
plus-18bd0722a9cebc3ba80bfb74a5b5ba0dd9e53c75.tar.xz
plus-18bd0722a9cebc3ba80bfb74a5b5ba0dd9e53c75.zip
Rename SpellTarget into CommandTarget enum and convert it to strong typed.
Diffstat (limited to 'src/textcommand.cpp')
-rw-r--r--src/textcommand.cpp6
1 files changed, 3 insertions, 3 deletions
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),