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.20 by root, Sat Dec 9 16:11:09 2006 UTC vs.
Revision 1.27 by root, Fri Dec 15 20:08:45 2006 UTC

17 17
18 You should have received a copy of the GNU General Public License 18 You should have received a copy of the GNU General Public License
19 along with this program; if not, write to the Free Software 19 along with this program; if not, write to the Free Software
20 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 20 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
21 21
22 The authors can be reached via e-mail at crossfire-devel@real-time.com 22 The authors can be reached via e-mail at crossfire@schmorp.de
23*/ 23*/
24 24
25#define NUM_OUTPUT_BUFS 5 25#define NUM_OUTPUT_BUFS 5
26struct Output_Buf 26struct Output_Buf
27{ 27{
165 living ACC (RO, last_stats); /* Last stats as sent to client */ 165 living ACC (RO, last_stats); /* Last stats as sent to client */
166 float ACC (RW, last_speed); /* Last speed as sent to client */ 166 float ACC (RW, last_speed); /* Last speed as sent to client */
167 sint16 last_resist[NROFATTACKS]; /* last resist values sent to client */ 167 sint16 last_resist[NROFATTACKS]; /* last resist values sent to client */
168 int Swap_First; /* First stat player has selected to swap */ 168 int Swap_First; /* First stat player has selected to swap */
169 object_ptr ACC (RW, last_used); /* Pointer to object last picked or applied */ 169 object_ptr ACC (RW, last_used); /* Pointer to object last picked or applied */
170 uint32 last_used_id; /* Safety measures to be sure it's the same */
171 170
172 sint16 ACC (RW, bed_x), ACC (RW, bed_y); /* x,y - coordinates of respawn (savebed) */ 171 sint16 ACC (RW, bed_x), ACC (RW, bed_y); /* x,y - coordinates of respawn (savebed) */
173 char ACC (RW, savebed_map)[MAX_BUF]; /* map where player will respawn after death */ 172 char ACC (RW, savebed_map)[MAX_BUF]; /* map where player will respawn after death */
174 char ACC (RW, maplevel)[MAX_BUF]; /* On which level is the player? */ 173 char ACC (RW, maplevel)[MAX_BUF]; /* On which level is the player? */
175 char ACC (RW, spellparam)[MAX_BUF]; /* What param to add to spells */ 174 char ACC (RW, spellparam)[MAX_BUF]; /* What param to add to spells */
209}; 208};
210 209
211struct player : zero_initialised, attachable<player>, player_pod 210struct player : zero_initialised, attachable<player>, player_pod
212{ 211{
213 player *next; /* Pointer to next player, NULL if this is last */ 212 player *next; /* Pointer to next player, NULL if this is last */
214 NewSocket socket; /* Socket information for this player */ 213 client *ACC (RO, socket); /* Socket information for this player */
215 Output_Buf outputs[NUM_OUTPUT_BUFS]; /* holds output strings to client */ 214 Output_Buf outputs[NUM_OUTPUT_BUFS]; /* holds output strings to client */
216 shstr invis_race; /* What race invisible to? */ 215 shstr invis_race; /* What race invisible to? */
217 216
218 void clear () 217 void clear ()
219 { 218 {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines