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

Comparing deliantra/server/include/object.h (file contents):
Revision 1.141 by root, Wed Aug 1 19:15:50 2007 UTC vs.
Revision 1.145 by root, Sat Aug 25 22:19:26 2007 UTC

250 UUID ACC (RW, uuid); // Unique Identifier, survives saves etc. 250 UUID ACC (RW, uuid); // Unique Identifier, survives saves etc.
251 int ACC (RO, count); 251 int ACC (RO, count);
252 object_vector_index ACC (RO, index); // index into objects 252 object_vector_index ACC (RO, index); // index into objects
253 object_vector_index ACC (RO, active); // index into actives 253 object_vector_index ACC (RO, active); // index into actives
254 254
255 player_ptr ACC (RW, contr); /* Pointer to the player which control this object */ 255 player_ptr ACC (RW, contr); /* Pointer to the player which control this object, ALWAYS set *iff* type == PLAYER */
256 256
257 object *ACC (RW, below); /* Pointer to the object stacked below this one */ 257 object *ACC (RW, below); /* Pointer to the object stacked below this one */
258 object *ACC (RW, above); /* Pointer to the object stacked above this one */ 258 object *ACC (RW, above); /* Pointer to the object stacked above this one */
259 /* Note: stacked in the *same* environment */ 259 /* Note: stacked in the *same* environment */
260 object *inv; /* Pointer to the first object in the inventory */ 260 object *inv; /* Pointer to the first object in the inventory */
383 383
384 // temporary: wether the object can be saved in a map file 384 // temporary: wether the object can be saved in a map file
385 // contr => is a player 385 // contr => is a player
386 // head => only save head of a multitile object 386 // head => only save head of a multitile object
387 // owner => can not reference owner yet 387 // owner => can not reference owner yet
388 MTH bool can_map_save () const { return !contr && !head && !owner && !flag [FLAG_NO_MAP_SAVE]; } 388 MTH bool can_map_save () const { return !head && (!owner || owner->contr) && !contr && !flag [FLAG_NO_MAP_SAVE]; }
389 389
390 /* This return true if object has still randomitems which 390 /* This return true if object has still randomitems which
391 * could be expanded. 391 * could be expanded.
392 */ 392 */
393 MTH bool has_random_items () const { return randomitems && !flag [FLAG_IS_A_TEMPLATE]; } 393 MTH bool has_random_items () const { return randomitems && !flag [FLAG_IS_A_TEMPLATE]; }
492 { 492 {
493 return !invisible && type != PLAYER; 493 return !invisible && type != PLAYER;
494 } 494 }
495 495
496 MTH struct region *region () const; 496 MTH struct region *region () const;
497
498 void statusmsg (const char *msg, int color = NDI_BLACK);
499 void failmsg (const char *msg, int color = NDI_RED);
497 500
498protected: 501protected:
499 void link (); 502 void link ();
500 void unlink (); 503 void unlink ();
501 504

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines