version 1.39 | | version 1.40 |
---|
| | |
/* | | /* |
* static char *rcsid_player_h = | | * static char *rcsid_player_h = |
* "$Id: player.h,v 1.39 2005/08/12 13:46:34 ryo_saeba Exp $"; | | * "$Id: player.h,v 1.40 2005/09/24 09:28:05 ryo_saeba Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
/* to control which of these will be unapplied. */ | | /* to control which of these will be unapplied. */ |
} unapplymode; | | } unapplymode; |
| | |
| | /* not really the player, but tied pretty closely */ |
| | typedef struct party_struct { |
| | sint16 partyid; |
| | char * partyleader; |
| | char passwd[9]; |
| | struct party_struct *next; |
| | char *partyname; |
| | |
| | #ifdef PARTY_KILL_LOG |
| | struct party_kill { |
| | char killer[MAX_NAME+1],dead[MAX_NAME+1]; |
| | sint64 exp; |
| | } party_kills[PARTY_KILL_LOG]; |
| | #endif |
| | sint64 total_exp; |
| | uint32 kills; |
| | } partylist; |
| | |
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 */ |
NewSocket socket; /* Socket information for this player */ | | NewSocket socket; /* Socket information for this player */ |
| | |
#ifdef AUTOSAVE | | #ifdef AUTOSAVE |
uint32 last_save_tick; | | uint32 last_save_tick; |
#endif | | #endif |
sint16 party_number; /* Party number this player is part of */ | | partylist *party; /* Party this player is part of */ |
sint16 party_number_to_join; /* used when player wants to join a party */ | | partylist *party_to_join; /* used when player wants to join a party */ |
/* but we will have to get password first */ | | /* but we will have to get password first */ |
/* so we have to remember which party to */ | | /* so we have to remember which party to */ |
/* join */ | | /* join */ |
| | |
tag_t* stack_items; /* Item stack for patch/dump/... commands */ | | tag_t* stack_items; /* Item stack for patch/dump/... commands */ |
int stack_position; /* Current stack position, 0 for no item */ | | int stack_position; /* Current stack position, 0 for no item */ |
} player; | | } player; |
| | |
| | |
/* not really the player, but tied pretty closely */ | | |
typedef struct party_struct { | | |
sint16 partyid; | | |
char * partyleader; | | |
char passwd[9]; | | |
struct party_struct *next; | | |
char *partyname; | | |
| | |
#ifdef PARTY_KILL_LOG | | |
struct party_kill { | | |
char killer[MAX_NAME+1],dead[MAX_NAME+1]; | | |
sint64 exp; | | |
} party_kills[PARTY_KILL_LOG]; | | |
#endif | | |
sint64 total_exp; | | |
uint32 kills; | | |
} partylist; | | |