summaryrefslogtreecommitdiff
path: root/src/gui/windows/skilldialog.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-07-21 03:08:30 +0300
committerAndrei Karas <akaras@inbox.ru>2016-07-21 03:08:30 +0300
commitfdd6a8ff123f32090d5c417803fd909558530a15 (patch)
tree1166617e9ed39c05e1d74e45865d917c5a2d702e /src/gui/windows/skilldialog.h
parent646abbe93193cc2c3cf0903df0a25a6dcc752ccc (diff)
downloadmanaplus-fdd6a8ff123f32090d5c417803fd909558530a15.tar.gz
manaplus-fdd6a8ff123f32090d5c417803fd909558530a15.tar.bz2
manaplus-fdd6a8ff123f32090d5c417803fd909558530a15.tar.xz
manaplus-fdd6a8ff123f32090d5c417803fd909558530a15.zip
Move skill data loading into separate function.
Diffstat (limited to 'src/gui/windows/skilldialog.h')
-rw-r--r--src/gui/windows/skilldialog.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/gui/windows/skilldialog.h b/src/gui/windows/skilldialog.h
index fe3e31c80..2b5e4f070 100644
--- a/src/gui/windows/skilldialog.h
+++ b/src/gui/windows/skilldialog.h
@@ -34,6 +34,8 @@
#include "listeners/actionlistener.h"
+#include "utils/xml.h"
+
class Being;
class Button;
class Label;
@@ -165,6 +167,11 @@ class SkillDialog final : public Window,
private:
void addSkillDuration(SkillInfo *const skill);
+ void loadSkillData(XmlNodePtr node,
+ const std::string &name,
+ SkillInfo *const skill,
+ const int level);
+
typedef std::map<int, SkillInfo*> SkillMap;
SkillMap mSkills;
std::vector<SkillInfo*> mDurations;