… | |
… | |
51 | body_wrist, |
51 | body_wrist, |
52 | body_waist, |
52 | body_waist, |
53 | NUM_BODY_LOCATIONS |
53 | NUM_BODY_LOCATIONS |
54 | }; |
54 | }; |
55 | |
55 | |
56 | enum 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 | |
65 | typedef struct Body_Locations |
58 | typedef 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 |