summaryrefslogtreecommitdiff
path: root/src/gui/windows/skilldialog.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-08-14 22:25:15 +0300
committerAndrei Karas <akaras@inbox.ru>2016-08-14 23:06:07 +0300
commitf494a0e08ada527827fe41c7d98e2791f915ab40 (patch)
treeeda260d5fbdce3e328b69513e96a5eaf1fda76ee /src/gui/windows/skilldialog.h
parent8d0dc6e707c470ccd2d3a3d4e44cfdee0ed890d9 (diff)
downloadmv-f494a0e08ada527827fe41c7d98e2791f915ab40.tar.gz
mv-f494a0e08ada527827fe41c7d98e2791f915ab40.tar.bz2
mv-f494a0e08ada527827fe41c7d98e2791f915ab40.tar.xz
mv-f494a0e08ada527827fe41c7d98e2791f915ab40.zip
Cast skill depend on selected cast type.
Diffstat (limited to 'src/gui/windows/skilldialog.h')
-rw-r--r--src/gui/windows/skilldialog.h27
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,