ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/include/player.h
(Generate patch)

Comparing deliantra/server/include/player.h (file contents):
Revision 1.13 by root, Tue Sep 5 18:18:09 2006 UTC vs.
Revision 1.14 by root, Tue Sep 5 18:59:18 2006 UTC

128 sint8 last_level; /* Last level we sent to client */ 128 sint8 last_level; /* Last level we sent to client */
129 129
130 /* Try to put all the bitfields together - saves some small amount of memory */ 130 /* Try to put all the bitfields together - saves some small amount of memory */
131 uint32 braced:1; /* Will not move if braced, only attack */ 131 uint32 braced:1; /* Will not move if braced, only attack */
132 uint32 tmp_invis:1; /* Will invis go away when we attack ? */ 132 uint32 tmp_invis:1; /* Will invis go away when we attack ? */
133 shstr invis_race; /* What race invisible to? */
134 uint32 do_los:1; /* If true, need to call update_los() in draw(), and clear */ 133 uint32 do_los:1; /* If true, need to call update_los() in draw(), and clear */
135 uint32 fire_on:1; /* Player should fire object, not move */ 134 uint32 fire_on:1; /* Player should fire object, not move */
136 uint32 run_on:1; /* Player should keep moving in dir until run is off */ 135 uint32 run_on:1; /* Player should keep moving in dir until run is off */
137 uint32 has_hit:1; /* If set, weapon_sp instead of speed will count */ 136 uint32 has_hit:1; /* If set, weapon_sp instead of speed will count */
138 uint32 name_changed:1; /* If true, the player has set a name. */ 137 uint32 name_changed:1; /* If true, the player has set a name. */
208typedef struct pl : zero_initialised, attachable<struct pl>, player_pod 207typedef struct pl : zero_initialised, attachable<struct pl>, player_pod
209{ 208{
210 struct pl *next; /* Pointer to next player, NULL if this is last */ 209 struct pl *next; /* Pointer to next player, NULL if this is last */
211 NewSocket socket; /* Socket information for this player */ 210 NewSocket socket; /* Socket information for this player */
212 Output_Buf outputs[NUM_OUTPUT_BUFS]; /* holds output strings to client */ 211 Output_Buf outputs[NUM_OUTPUT_BUFS]; /* holds output strings to client */
212 shstr invis_race; /* What race invisible to? */
213 213
214 void clear () 214 void clear ()
215 { 215 {
216 memset (static_cast<player_pod *>(this), 0, sizeof (player_pod)); 216 memset (static_cast<player_pod *>(this), 0, sizeof (player_pod));
217 attachable_clear (); 217 attachable_clear ();
218 invis_race = 0;
218 219
219 for (int i = 0; i < NUM_OUTPUT_BUFS; i++) 220 for (int i = 0; i < NUM_OUTPUT_BUFS; i++)
220 outputs[i].buf = 0; 221 outputs[i].buf = 0;
221 } 222 }
222} player; 223} player;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines