version 1.4 | | version 1.5 |
---|
| | |
/* | | /* |
* static char *rcsid_player_h = | | * static char *rcsid_player_h = |
* "$Id: player.h,v 1.4 1999/09/17 19:27:50 damn Exp $"; | | * "$Id: player.h,v 1.5 1999/09/18 07:39:02 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_skill = 7, range_size = 8 | | 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 */ |