summaryrefslogtreecommitdiff
path: root/src/main.h
diff options
context:
space:
mode:
authorKiyoshi Kyokai <kiyoshi.kyokai@gmail.com>2005-02-20 08:49:16 +0000
committerKiyoshi Kyokai <kiyoshi.kyokai@gmail.com>2005-02-20 08:49:16 +0000
commit3df76a3104320d7b15e5596cd0511be61c225c15 (patch)
treed7a09d61e7da50174fc6f2fcf0a8e9de8752c151 /src/main.h
parent4be5313a359b326f80ee6e5903123c2bc298a8e6 (diff)
downloadmana-client-3df76a3104320d7b15e5596cd0511be61c225c15.tar.gz
mana-client-3df76a3104320d7b15e5596cd0511be61c225c15.tar.bz2
mana-client-3df76a3104320d7b15e5596cd0511be61c225c15.tar.xz
mana-client-3df76a3104320d7b15e5596cd0511be61c225c15.zip
added skill functionality
Diffstat (limited to 'src/main.h')
-rw-r--r--src/main.h13
1 files changed, 11 insertions, 2 deletions
diff --git a/src/main.h b/src/main.h
index 578b14e7..3b02a45c 100644
--- a/src/main.h
+++ b/src/main.h
@@ -29,6 +29,7 @@
#include "configuration.h"
#include "graphic/spriteset.h"
#include "resources/image.h"
+#include "gui/skill.h"
#include "log.h"
#include "game.h"
#include "net/protocol.h"
@@ -58,6 +59,8 @@
#define LEN_USERNAME 25
#define LEN_PASSWORD 25
+#define N_SKILLS 100 // skill count constant value
+#define XP_CONSTANT 1.2 // the exponent which determines skill exp curve
typedef struct {
int address;
@@ -65,7 +68,7 @@ typedef struct {
char name[20];
short online_users;
} SERVER_INFO;
-
+
typedef struct {
int id;
char name[24];
@@ -74,9 +77,15 @@ typedef struct {
int xp, xpForNextLevel, gp, job_xp, jobXpForNextLevel, job_lv;
short statp, skill_point, hair_color, hair_style;
char STR, AGI, VIT, INT, DEX, LUK;
- short weapon;
+ short weapon;
+ // skill list declaration
+ std::vector<SKILL> m_Skill; // array of N_SKILLS skills
+ // gets the requested skills level from char_info
+ int GetSkill(int n_ID, int n_XP=2, int n_base = false); // implemented in the body (main.cpp)
} PLAYER_INFO;
+
+
extern Image *login_wallpaper;
extern Spriteset *hairset, *playerset;
extern Graphics* graphics;