summaryrefslogtreecommitdiff
path: root/src/gui/skill.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/skill.h')
-rw-r--r--src/gui/skill.h21
1 files changed, 6 insertions, 15 deletions
diff --git a/src/gui/skill.h b/src/gui/skill.h
index f1a14d50..55d94d82 100644
--- a/src/gui/skill.h
+++ b/src/gui/skill.h
@@ -33,18 +33,13 @@
#include "../guichanfwd.h"
-struct SKILL {
- short id; /**< Index into "skill_db" array */
- short lv, sp;
-};
/**
* The skill dialog.
*
* \ingroup Interface
*/
-class SkillDialog : public Window, public gcn::ActionListener,
- public gcn::ListModel
+class SkillDialog : public Window, public gcn::ActionListener
{
public:
/**
@@ -61,18 +56,14 @@ class SkillDialog : public Window, public gcn::ActionListener,
void update();
- int getNumberOfElements();
- std::string getElementAt(int);
+ void setExp(int id, int exp);
- bool hasSkill(int id);
- void addSkill(int id, int lv, int sp);
- void setSkill(int id, int lv, int sp);
- void cleanList();
+ void draw(gcn::Graphics *g);
private:
- gcn::ListBox *mSkillListBox;
-
- std::vector<SKILL*> mSkillList;
+ std::vector<gcn::Label *> mSkillNameLabels;
+ std::vector<gcn::Label *> mSkillLevelLabels;
+ std::vector<gcn::Label *> mSkillExpLabels;
};
extern SkillDialog *skillDialog;