summaryrefslogtreecommitdiff
path: root/src/gui/skilldialog.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-12-16 18:50:20 +0300
committerAndrei Karas <akaras@inbox.ru>2012-12-16 22:33:53 +0300
commit0fa3de24e2e6931a07cbc1fb3dadfff9091250cf (patch)
treecf8829ca7d273b2464f724308c2fd419f407cc61 /src/gui/skilldialog.h
parentade168344165534061b8f184866e2808af7f5d48 (diff)
downloadplus-0fa3de24e2e6931a07cbc1fb3dadfff9091250cf.tar.gz
plus-0fa3de24e2e6931a07cbc1fb3dadfff9091250cf.tar.bz2
plus-0fa3de24e2e6931a07cbc1fb3dadfff9091250cf.tar.xz
plus-0fa3de24e2e6931a07cbc1fb3dadfff9091250cf.zip
Separate in skills skill info and skill data for future usage.
Diffstat (limited to 'src/gui/skilldialog.h')
-rw-r--r--src/gui/skilldialog.h36
1 files changed, 22 insertions, 14 deletions
diff --git a/src/gui/skilldialog.h b/src/gui/skilldialog.h
index 945ae318d..45a5a8a43 100644
--- a/src/gui/skilldialog.h
+++ b/src/gui/skilldialog.h
@@ -40,41 +40,49 @@ class SkillModel;
class Tab;
class TabbedArea;
-struct SkillInfo final
+struct SkillData final
{
- unsigned short id;
std::string name;
std::string shortName;
std::string dispName;
Image *icon;
- bool modifiable;
- bool visible;
- SkillModel *model;
+
+ std::string particle;
+ std::string soundHit;
+ std::string soundMiss;
+
+ SkillData();
+ A_DELETE_COPY(SkillData)
+ ~SkillData();
+};
+
+struct SkillInfo final
+{
int level;
std::string skillLevel;
int skillLevelWidth;
-
+ unsigned short id;
+ bool modifiable;
+ bool visible;
+ SkillModel *model;
std::string skillExp;
float progress;
- gcn::Color color;
int range;
- std::string particle;
- std::string soundHit;
- std::string soundMiss;
+ gcn::Color color;
- SkillInfo();
+ SkillData data;
+ SkillInfo();
A_DELETE_COPY(SkillInfo)
-
~SkillInfo();
- void setIcon(const std::string &iconPath);
-
void update();
void draw(Graphics *const graphics, const int padding,
const int paddingText, const int y, const int width);
+
+ void setIcon(const std::string &iconPath);
};
typedef std::vector<SkillInfo*> SkillList;