summaryrefslogtreecommitdiff
path: root/src/gui/windows/skilldialog.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-09-20 17:55:42 +0300
committerAndrei Karas <akaras@inbox.ru>2014-09-20 17:55:42 +0300
commit5f7a8dd28733fd460578e43c6b2ea4990afa0670 (patch)
tree0263f50e8a566af4b8d081889316a05e1f048dab /src/gui/windows/skilldialog.h
parentc958cb619f667851b188b8c169d0fcb14500f6de (diff)
downloadplus-5f7a8dd28733fd460578e43c6b2ea4990afa0670.tar.gz
plus-5f7a8dd28733fd460578e43c6b2ea4990afa0670.tar.bz2
plus-5f7a8dd28733fd460578e43c6b2ea4990afa0670.tar.xz
plus-5f7a8dd28733fd460578e43c6b2ea4990afa0670.zip
Use skill owner field in most functions.
Diffstat (limited to 'src/gui/windows/skilldialog.h')
-rw-r--r--src/gui/windows/skilldialog.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/gui/windows/skilldialog.h b/src/gui/windows/skilldialog.h
index fd9bca7c2..ddeea2cc7 100644
--- a/src/gui/windows/skilldialog.h
+++ b/src/gui/windows/skilldialog.h
@@ -27,6 +27,7 @@
#include "listeners/actionlistener.h"
+#include "resources/skillowner.h"
#include "resources/skilltype.h"
class Button;
@@ -73,7 +74,7 @@ class SkillDialog final : public Window,
void clearSkills();
- void hideSkills();
+ void hideSkills(const SkillOwner::Type owner);
void loadSkills();
@@ -83,7 +84,8 @@ class SkillDialog final : public Window,
const SkillType::SkillType type,
const int sp);
- void addSkill(const int id,
+ void addSkill(const SkillOwner::Type owner,
+ const int id,
const std::string &name,
const int level,
const int range,
@@ -95,7 +97,9 @@ class SkillDialog final : public Window,
SkillInfo* getSkillByItem(const int itemId) const A_WARN_UNUSED;
- void setSkillDuration(const int id, const int duration);
+ void setSkillDuration(const SkillOwner::Type owner,
+ const int id,
+ const int duration);
bool hasSkills() const A_WARN_UNUSED
{ return !mSkills.empty(); }