… | |
… | |
30 | #include "cfperl.h" |
30 | #include "cfperl.h" |
31 | #include "shstr.h" |
31 | #include "shstr.h" |
32 | |
32 | |
33 | typedef int tag_t; |
33 | typedef int tag_t; |
34 | |
34 | |
35 | #define NUM_BODY_LOCATIONS 14 |
35 | enum { |
36 | #define BODY_ARMS 1 |
36 | body_range, |
|
|
37 | body_shield, |
|
|
38 | body_combat, |
|
|
39 | body_arm, |
|
|
40 | body_torso, |
|
|
41 | body_head, |
|
|
42 | body_neck, |
|
|
43 | body_skill, |
|
|
44 | body_finger, |
|
|
45 | body_shoulder, |
|
|
46 | body_foot, |
|
|
47 | body_hand, |
|
|
48 | body_wrist, |
|
|
49 | body_waist, |
|
|
50 | NUM_BODY_LOCATIONS |
|
|
51 | }; |
37 | |
52 | |
38 | /* See common/item.c */ |
53 | /* See common/item.c */ |
39 | |
54 | |
40 | typedef struct Body_Locations |
55 | typedef struct Body_Locations |
41 | { |
56 | { |
… | |
… | |
252 | object *head; /* Points to the main object of a large body */ // NO ACC, perl semantics are different |
267 | object *head; /* Points to the main object of a large body */ // NO ACC, perl semantics are different |
253 | client_container *seen_by; // seen by which player/container currently? |
268 | client_container *seen_by; // seen by which player/container currently? |
254 | key_value *key_values; /* Fields not explictly known by the loader. */ |
269 | key_value *key_values; /* Fields not explictly known by the loader. */ |
255 | |
270 | |
256 | bool parse_kv (object_thawer &f); // parse kv pairs, (ab-)used by archetypes, which should not exist at all |
271 | bool parse_kv (object_thawer &f); // parse kv pairs, (ab-)used by archetypes, which should not exist at all |
|
|
272 | void post_load_check (); // do some adjustments after parsing |
257 | static object *read (object_thawer &f, maptile *map = 0); // map argument due to toal design bogosity, must go. |
273 | static object *read (object_thawer &f, maptile *map = 0); // map argument due to toal design bogosity, must go. |
258 | bool write (object_freezer &f); |
274 | bool write (object_freezer &f); |
259 | |
275 | |
260 | MTH static object *create (); |
276 | MTH static object *create (); |
261 | object &operator =(const object &src); |
277 | object &operator =(const object &src); |