… | |
… | |
240 | object *ACC (RW, more); /* Pointer to the rest of a large body of objects */ |
240 | object *ACC (RW, more); /* Pointer to the rest of a large body of objects */ |
241 | object *head; /* Points to the main object of a large body */ // NO ACC, perl semantics are different |
241 | object *head; /* Points to the main object of a large body */ // NO ACC, perl semantics are different |
242 | client_container *seen_by; // seen by which player/container currently? |
242 | client_container *seen_by; // seen by which player/container currently? |
243 | |
243 | |
244 | bool parse_kv (object_thawer &f); // parse kv pairs, (ab-)used by archetypes, which should not exist at all |
244 | bool parse_kv (object_thawer &f); // parse kv pairs, (ab-)used by archetypes, which should not exist at all |
245 | static object *read (object_thawer &f); |
245 | static object *read (object_thawer &f, maptile *map = 0); // map argument due to toal design bogosity, must go. |
246 | bool write (object_freezer &f); |
246 | bool write (object_freezer &f); |
247 | |
247 | |
248 | MTH static object *create (); |
248 | MTH static object *create (); |
249 | MTH void copy_to (object *dst); |
249 | MTH void copy_to (object *dst); |
250 | MTH object *clone (); // create + copy_to |
250 | MTH object *clone (); // create + copy_to |
… | |
… | |
445 | |
445 | |
446 | extern objectvec objects; |
446 | extern objectvec objects; |
447 | extern activevec actives; |
447 | extern activevec actives; |
448 | |
448 | |
449 | #define for_all_objects(var) \ |
449 | #define for_all_objects(var) \ |
450 | for (int _i = 0; _i < objects.size (); ++_i) \ |
450 | for (unsigned _i = 0; _i < objects.size (); ++_i) \ |
451 | declvar (object *, var, objects [_i]) |
451 | declvar (object *, var, objects [_i]) |
452 | |
452 | |
453 | #define for_all_actives(var) \ |
453 | #define for_all_actives(var) \ |
454 | for (int _i = 0; _i < actives.size (); ++_i) \ |
454 | for (unsigned _i = 0; _i < actives.size (); ++_i) \ |
455 | declvar (object *, var, actives [_i]) |
455 | declvar (object *, var, actives [_i]) |
456 | |
456 | |
457 | typedef struct oblnk |
457 | typedef struct oblnk |
458 | { /* Used to link together several objects */ |
458 | { /* Used to link together several objects */ |
459 | object_ptr ob; |
459 | object_ptr ob; |