summaryrefslogtreecommitdiff
path: root/src/gui/skill.h
diff options
context:
space:
mode:
authorPhilipp Sehmisch <tmw@crushnet.org>2008-01-28 07:57:49 +0000
committerPhilipp Sehmisch <tmw@crushnet.org>2008-01-28 07:57:49 +0000
commit5ff0cd265460ef3fcc30f663094dc2c99b9926e9 (patch)
tree91db46420bfaa21694bd69df2e46f854ac14910f /src/gui/skill.h
parent0962fc8b567279a6e97e13e4b3f2f9f2ffe304c0 (diff)
downloadmana-client-5ff0cd265460ef3fcc30f663094dc2c99b9926e9.tar.gz
mana-client-5ff0cd265460ef3fcc30f663094dc2c99b9926e9.tar.bz2
mana-client-5ff0cd265460ef3fcc30f663094dc2c99b9926e9.tar.xz
mana-client-5ff0cd265460ef3fcc30f663094dc2c99b9926e9.zip
Added weapon skill system and leveling system.
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;