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.231 by root, Sat Apr 3 02:27:24 2010 UTC vs.
Revision 1.232 by root, Sat Apr 3 02:29:40 2010 UTC

51 body_wrist, 51 body_wrist,
52 body_waist, 52 body_waist,
53 NUM_BODY_LOCATIONS 53 NUM_BODY_LOCATIONS
54}; 54};
55 55
56enum slottype_t
57{
58 slot_none,
59 slot_combat,
60 slot_ranged,
61};
62
63/* See common/item.c */ 56/* See common/item.c */
64 57
65typedef struct Body_Locations 58typedef struct Body_Locations
66{ 59{
67 keyword save_name; /* Name used to load/save it to disk */ 60 keyword save_name; /* Name used to load/save it to disk */
361 bool parse_kv (object_thawer &f); // parse kv pairs, (ab-)used by archetypes, which should not exist at all 354 bool parse_kv (object_thawer &f); // parse kv pairs, (ab-)used by archetypes, which should not exist at all
362 MTH void post_load_check (); // do some adjustments after parsing 355 MTH void post_load_check (); // do some adjustments after parsing
363 static object *read (object_thawer &f, maptile *map = 0); // map argument due to toal design bogosity, must go. 356 static object *read (object_thawer &f, maptile *map = 0); // map argument due to toal design bogosity, must go.
364 bool write (object_freezer &f); 357 bool write (object_freezer &f);
365 358
366 MTH int slottype () const;
367 MTH static object *create (); 359 MTH static object *create ();
368 const mapxy &operator =(const mapxy &pos); 360 const mapxy &operator =(const mapxy &pos);
369 MTH void copy_to (object *dst); 361 MTH void copy_to (object *dst);
370 MTH object *clone (); // create + copy_to a single object 362 MTH object *clone (); // create + copy_to a single object
371 MTH object *deep_clone (); // copy whole more chain and inventory 363 MTH object *deep_clone (); // copy whole more chain and inventory

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines