From f494a0e08ada527827fe41c7d98e2791f915ab40 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 14 Aug 2016 22:25:15 +0300 Subject: Cast skill depend on selected cast type. --- src/gui/windows/skilldialog.h | 27 +++++++++++++++++++++++++-- 1 file changed, 25 insertions(+), 2 deletions(-) (limited to 'src/gui/windows/skilldialog.h') 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, -- cgit v1.2.3-60-g2f50