diff options
author | Kiyoshi Kyokai <kiyoshi.kyokai@gmail.com> | 2005-02-20 08:49:16 +0000 |
---|---|---|
committer | Kiyoshi Kyokai <kiyoshi.kyokai@gmail.com> | 2005-02-20 08:49:16 +0000 |
commit | 3df76a3104320d7b15e5596cd0511be61c225c15 (patch) | |
tree | d7a09d61e7da50174fc6f2fcf0a8e9de8752c151 /src/main.h | |
parent | 4be5313a359b326f80ee6e5903123c2bc298a8e6 (diff) | |
download | mana-3df76a3104320d7b15e5596cd0511be61c225c15.tar.gz mana-3df76a3104320d7b15e5596cd0511be61c225c15.tar.bz2 mana-3df76a3104320d7b15e5596cd0511be61c225c15.tar.xz mana-3df76a3104320d7b15e5596cd0511be61c225c15.zip |
added skill functionality
Diffstat (limited to 'src/main.h')
-rw-r--r-- | src/main.h | 13 |
1 files changed, 11 insertions, 2 deletions
@@ -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; |