1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980 |
- #ifndef __OSKILL_H
- #define __OSKILL_H
- enum { CITIZEN_COMBAT_LEVEL = 10,
- CITIZEN_SKILL_LEVEL = 10,
- CITIZEN_HIT_POINTS = 20 };
- enum { MAX_SKILL=7,
- MAX_TRAINABLE_SKILL=MAX_SKILL-1 };
- enum { SKILL_CONSTRUCTION=1,
- SKILL_LEADING,
- SKILL_MINING,
- SKILL_MFT,
- SKILL_RESEARCH,
- SKILL_SPYING,
- SKILL_PRAYING,
- };
- #pragma pack(1)
- class Skill
- {
- public:
- char combat_level;
- char skill_id;
- char skill_level;
- unsigned char combat_level_minor;
- unsigned char skill_level_minor;
- unsigned char skill_potential;
- static char* skill_str_array[MAX_SKILL];
- static char* skill_code_array[MAX_SKILL];
- static char skilled_race_id_array[MAX_SKILL];
- static char skill_train_cost_array[MAX_SKILL];
- public:
- Skill();
- char* skill_des(int shortWord=0);
- int get_skill(int skillId);
- void set_skill(int skillId) { skill_id = skillId; }
- };
- #pragma pack()
- #endif
|