--- deliantra/server/include/player.h 2006/02/22 18:01:58 1.1.1.2 +++ deliantra/server/include/player.h 2006/04/19 08:25:25 1.3 @@ -106,15 +106,14 @@ uint32 kills; } partylist; +// the layout of this structure cnanot be changed unless adjusting the inialisation code +// in server/player.c:get_player has been verified. typedef struct pl { struct pl *next; /* Pointer to next player, NULL if this is last */ NewSocket socket; /* Socket information for this player */ - char maplevel[MAX_BUF]; /* On which level is the player? */ + object *ob; /* The object representing the player */ struct mapdef *loading; /* When entering a map in progress of loading, not really used */ - char savebed_map[MAX_BUF]; /* map where player will respawn after death */ - sint16 bed_x, bed_y; /* x,y - coordinates of respawn (savebed) */ rangetype shoottype; /* Which range-attack is being used by player */ - char spellparam[MAX_BUF]; /* What param to add to spells */ bowtype_t bowtype; /* which firemode? */ petmode_t petmode; /* which petmode? */ object *ranges[range_size];/* object for each range. Set up in fix player. Note */ @@ -166,13 +165,17 @@ float last_speed; /* Last speed as sent to client */ sint16 last_resist[NROFATTACKS]; /* last resist values sent to client */ int Swap_First; /* First stat player has selected to swap */ - object *ob; /* The object representing the player */ object *last_used; /* Pointer to object last picked or applied */ uint32 last_used_id; /* Safety measures to be sure it's the same */ sint8 blocked_los[MAP_CLIENT_X][MAP_CLIENT_Y]; /* array showing what spaces */ /* the player can see. For maps smaller than */ /* MAP_CLIENT_.., the upper left is used */ + sint16 bed_x, bed_y; /* x,y - coordinates of respawn (savebed) */ + char savebed_map[MAX_BUF]; /* map where player will respawn after death */ + char maplevel[MAX_BUF]; /* On which level is the player? */ + char spellparam[MAX_BUF]; /* What param to add to spells */ + char own_title[MAX_NAME]; /* Title the player has chosen for themself */ /* Note that for dragon players, this is filled in for them */ char title[BIG_NAME]; /* Default title, like fighter, wizard, etc */