version 1.3 | | version 1.4 |
---|
| | |
/* | | /* |
* static char *rcsid_player_h = | | * static char *rcsid_player_h = |
* "$Id: player.h,v 1.3 1999/07/13 06:02:52 cvs Exp $"; | | * "$Id: player.h,v 1.4 1999/09/17 19:27:50 damn Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
| | |
#define MAX_NAME 16 /* Max length of character name */ | | #define MAX_NAME 16 /* Max length of character name */ |
| | |
| | /* |
| | * Use of the state-variable in player objects: |
| | */ |
| | |
| | #define ST_PLAYING 0 |
| | #define ST_PLAY_AGAIN 1 |
| | #define ST_ROLL_STAT 2 |
| | #define ST_CHANGE_CLASS 3 |
| | #define ST_CONFIRM_QUIT 4 |
| | #define ST_CONFIGURE 5 |
| | #define ST_GET_NAME 6 |
| | #define ST_GET_PASSWORD 7 |
| | #define ST_CONFIRM_PASSWORD 8 |
| | #define ST_GET_PARTY_PASSWORD 10 |
| | |
typedef enum rangetype { | | typedef enum rangetype { |
range_bottom = -1, range_none = 0, range_bow = 1, range_magic = 2, | | range_bottom = -1, range_none = 0, range_bow = 1, range_magic = 2, |
range_wand = 3, range_rod = 4, range_scroll = 5, range_horn = 6, | | range_wand = 3, range_rod = 4, range_scroll = 5, range_horn = 6, |
range_skill = 7, | | |
#ifdef ALLOW_SKILLS | | #ifdef ALLOW_SKILLS |
range_size = 8 | | range_skill = 7, range_size = 8 |
#else | | #else |
range_size = 7 | | range_size = 7 |
#endif | | #endif |
} rangetype; | | } rangetype; |
| | extern char *range_name[range_size]; |
| | |
typedef struct pl { | | typedef struct pl { |
struct pl *next; /* Pointer to next player, NULL if this is last */ | | struct pl *next; /* Pointer to next player, NULL if this is last */ |
| | |
signed char digestion; /* Any bonuses/penalties to digestion */ | | signed char digestion; /* Any bonuses/penalties to digestion */ |
signed char gen_hp; /* Bonuses to regeneration speed of hp */ | | signed char gen_hp; /* Bonuses to regeneration speed of hp */ |
signed char gen_sp; /* Bonuses to regeneration speed of sp */ | | signed char gen_sp; /* Bonuses to regeneration speed of sp */ |
| | signed char gen_sp_armour; /* Penalty to sp regen from armour */ |
signed char gen_grace; /* Bonuses to regeneration speed of grace */ | | signed char gen_grace; /* Bonuses to regeneration speed of grace */ |
uint32 braced:1; /* Will not move if braced, only attack */ | | uint32 braced:1; /* Will not move if braced, only attack */ |
uint32 tmp_invis:1; /* Will invis go away when we attack ? */ | | uint32 tmp_invis:1; /* Will invis go away when we attack ? */ |