summaryrefslogtreecommitdiff
path: root/src/gui/windows/skilldialog.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-09-21 01:44:50 +0300
committerAndrei Karas <akaras@inbox.ru>2015-09-21 01:44:50 +0300
commit52e799ac652c6edd48d250f814e259af44f92329 (patch)
tree655a6cc9adc5a1f7179857d9d31c979ed39a1596 /src/gui/windows/skilldialog.h
parentc4a9748e841fd8620e7e9d230aad8964f424bb08 (diff)
downloadmv-52e799ac652c6edd48d250f814e259af44f92329.tar.gz
mv-52e799ac652c6edd48d250f814e259af44f92329.tar.bz2
mv-52e799ac652c6edd48d250f814e259af44f92329.tar.xz
mv-52e799ac652c6edd48d250f814e259af44f92329.zip
Add option for auto target skill to closest target.
Diffstat (limited to 'src/gui/windows/skilldialog.h')
-rw-r--r--src/gui/windows/skilldialog.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/gui/windows/skilldialog.h b/src/gui/windows/skilldialog.h
index 29cc69165..8f085ee22 100644
--- a/src/gui/windows/skilldialog.h
+++ b/src/gui/windows/skilldialog.h
@@ -25,6 +25,7 @@
#include "gui/widgets/window.h"
+#include "enums/simpletypes/autotarget.h"
#include "enums/simpletypes/modifiable.h"
#include "listeners/actionlistener.h"
@@ -112,7 +113,8 @@ class SkillDialog final : public Window,
void widgetResized(const Event &event) override final;
- void useItem(const int itemId) const;
+ void useItem(const int itemId,
+ const AutoTarget autoTarget) const;
void updateTabSelection();
@@ -132,7 +134,8 @@ class SkillDialog final : public Window,
void removeSkill(const int id);
- static void useSkill(const SkillInfo *const info);
+ static void useSkill(const SkillInfo *const info,
+ const AutoTarget autoTarget);
SkillData *getSkillData(const int id) const;