summaryrefslogtreecommitdiff
path: root/src/gui/skilldialog.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-03-10 18:04:32 +0300
committerAndrei Karas <akaras@inbox.ru>2012-03-10 19:05:04 +0300
commit307818fecbd1f258c668a1667e76e950e9d22622 (patch)
tree6a4b82e23895a5f73b648aefafc8d77247661392 /src/gui/skilldialog.h
parent46cc993b30fe9a4da9175beb2795de91162c39fa (diff)
downloadmv-307818fecbd1f258c668a1667e76e950e9d22622.tar.gz
mv-307818fecbd1f258c668a1667e76e950e9d22622.tar.bz2
mv-307818fecbd1f258c668a1667e76e950e9d22622.tar.xz
mv-307818fecbd1f258c668a1667e76e950e9d22622.zip
Add to skills missile particle effect and hit/miss sounds.
Add to skills use effect 100000 + skillid on target.
Diffstat (limited to 'src/gui/skilldialog.h')
-rw-r--r--src/gui/skilldialog.h37
1 files changed, 36 insertions, 1 deletions
diff --git a/src/gui/skilldialog.h b/src/gui/skilldialog.h
index 56858ef5e..1cb832906 100644
--- a/src/gui/skilldialog.h
+++ b/src/gui/skilldialog.h
@@ -40,7 +40,42 @@ class SkillModel;
class Tab;
class TabbedArea;
-struct SkillInfo;
+struct SkillInfo
+{
+ unsigned short id;
+ std::string name;
+ std::string dispName;
+ Image *icon;
+ bool modifiable;
+ bool visible;
+ SkillModel *model;
+
+ int level;
+ std::string skillLevel;
+ int skillLevelWidth;
+
+ std::string skillExp;
+ float progress;
+ gcn::Color color;
+ int range;
+ std::string particle;
+ std::string soundHit;
+ std::string soundMiss;
+
+ SkillInfo();
+
+ ~SkillInfo();
+
+ void setIcon(const std::string &iconPath);
+
+ void update();
+
+ void draw(Graphics *graphics, int y, int width);
+};
+
+
+typedef std::vector<SkillInfo*> SkillList;
+
/**
* The skill dialog.