diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-08-14 22:25:15 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-08-14 23:06:07 +0300 |
commit | f494a0e08ada527827fe41c7d98e2791f915ab40 (patch) | |
tree | eda260d5fbdce3e328b69513e96a5eaf1fda76ee /src/gui/windows/skilldialog.h | |
parent | 8d0dc6e707c470ccd2d3a3d4e44cfdee0ed890d9 (diff) | |
download | plus-f494a0e08ada527827fe41c7d98e2791f915ab40.tar.gz plus-f494a0e08ada527827fe41c7d98e2791f915ab40.tar.bz2 plus-f494a0e08ada527827fe41c7d98e2791f915ab40.tar.xz plus-f494a0e08ada527827fe41c7d98e2791f915ab40.zip |
Cast skill depend on selected cast type.
Diffstat (limited to 'src/gui/windows/skilldialog.h')
-rw-r--r-- | src/gui/windows/skilldialog.h | 27 |
1 files changed, 25 insertions, 2 deletions
diff --git a/src/gui/windows/skilldialog.h b/src/gui/windows/skilldialog.h index 79c3ecc9c..59981c403 100644 --- a/src/gui/windows/skilldialog.h +++ b/src/gui/windows/skilldialog.h @@ -37,6 +37,7 @@ #include "utils/xml.h" +class Being; class Button; class Label; class SkillModel; @@ -144,13 +145,15 @@ class SkillDialog final : public Window, const AutoTarget autoTarget, int level, const bool withText, - const std::string &text); + const std::string &text, + CastTypeT castType); static void useSkill(const SkillInfo *const info, const AutoTarget autoTarget, int level, const bool withText, - const std::string &text); + const std::string &text, + const CastTypeT castType); SkillData *getSkillData(const int id) const; @@ -164,6 +167,26 @@ class SkillDialog final : public Window, const CastTypeT type); private: + static void useSkillDefault(const SkillInfo *const info, + const AutoTarget autoTarget, + int level, + const bool withText, + const std::string &text); + + static void useSkillTarget(const SkillInfo *const info, + const AutoTarget autoTarget, + int level, + const bool withText, + const std::string &text, + const Being *being); + + static void useSkillPosition(const SkillInfo *const info, + int level, + const bool withText, + const std::string &text, + const int x, + const int y); + void addSkillDuration(SkillInfo *const skill); SkillInfo *loadSkill(XmlNodePtr node, |