summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/gui/skill.h30
1 files changed, 13 insertions, 17 deletions
diff --git a/src/gui/skill.h b/src/gui/skill.h
index 5db90f04..b0c9b901 100644
--- a/src/gui/skill.h
+++ b/src/gui/skill.h
@@ -24,19 +24,26 @@
#ifndef _TMW_SKILL_H
#define _TMW_SKILL_H
+
#include <guichan.hpp>
#include "window.h"
-
-struct SKILL {
- short id; /**< Index into "skill_db" array */
- short lv, sp;
-};
-
+#include <vector>
/**
* The skill dialog.
*
* \ingroup GUI
*/
+
+// skill struct, by Kyokai
+// skill names are stored in a table elsewhere. (SkillDialog.cpp)
+typedef struct {
+ short level; // level of the skill
+ short exp; // exp value
+ double mod; // value of the modifier (0,0.5,1,2,4)
+ // next value can be calculated when needed by the function:
+ // 20 * level^1.2
+ } SKILL;
+
class SkillDialog : public Window, public gcn::ActionListener,
public gcn::ListModel
{
@@ -47,8 +54,6 @@ class SkillDialog : public Window, public gcn::ActionListener,
gcn::Button *incButton;
gcn::Button *closeButton;
- std::vector<SKILL*> skillList;
-
public:
/**
* Constructor.
@@ -61,15 +66,6 @@ class SkillDialog : public Window, public gcn::ActionListener,
~SkillDialog();
void action(const std::string&);
-
- void setPoints(int i);
-
- int getNumberOfElements();
- std::string getElementAt(int);
-
- bool hasSkill(int id);
- void addSkill(int id, int lv, int sp);
- void setSkill(int id, int lv, int sp);
};
#endif