From 479e8a53ec90c19890dfb4b3746c4453769d806a Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 19 Sep 2011 19:33:14 +0300 Subject: Add comment field to spells/commands. --- src/textcommand.h | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) (limited to 'src/textcommand.h') diff --git a/src/textcommand.h b/src/textcommand.h index 5ddbe824d..b1af7667d 100644 --- a/src/textcommand.h +++ b/src/textcommand.h @@ -62,18 +62,16 @@ class TextCommand /** * Constructor. */ - TextCommand(unsigned int id, std::string symbol, - std::string command, SpellTarget type, - std::string icon, unsigned int basicLvl, - MagicSchool school = SKILL_MAGIC, + TextCommand(unsigned int id, std::string symbol, std::string command, + std::string comment, SpellTarget type, std::string icon, + unsigned int basicLvl, MagicSchool school = SKILL_MAGIC, unsigned int schoolLvl = 0, int mana = 0); /** * Constructor. */ - TextCommand(unsigned int id, std::string symbol, - std::string command, SpellTarget type, - std::string icon); + TextCommand(unsigned int id, std::string symbol, std::string command, + std::string comment, SpellTarget type, std::string icon); /** * Constructor. @@ -91,6 +89,9 @@ class TextCommand std::string getCommand() const { return mCommand; } + std::string getComment() const + { return mComment; } + std::string getSymbol() const { return mSymbol; } @@ -121,6 +122,9 @@ class TextCommand void setCommand(std::string command) { mCommand = command; } + void setComment(std::string comment) + { mComment = comment; } + void setSymbol(std::string symbol) { mSymbol = symbol; } @@ -159,6 +163,7 @@ class TextCommand protected: std::string mCommand; + std::string mComment; std::string mSymbol; SpellTarget mTargetType; std::string mIcon; -- cgit v1.2.3-60-g2f50