… | |
… | |
270 | object *head; /* Points to the main object of a large body */ // NO ACC, perl semantics are different |
270 | object *head; /* Points to the main object of a large body */ // NO ACC, perl semantics are different |
271 | client_container *seen_by; // seen by which player/container currently? |
271 | client_container *seen_by; // seen by which player/container currently? |
272 | key_value *key_values; /* Fields not explictly known by the loader. */ |
272 | key_value *key_values; /* Fields not explictly known by the loader. */ |
273 | |
273 | |
274 | bool parse_kv (object_thawer &f); // parse kv pairs, (ab-)used by archetypes, which should not exist at all |
274 | bool parse_kv (object_thawer &f); // parse kv pairs, (ab-)used by archetypes, which should not exist at all |
275 | void post_load_check (); // do some adjustments after parsing |
275 | MTH void post_load_check (); // do some adjustments after parsing |
276 | static object *read (object_thawer &f, maptile *map = 0); // map argument due to toal design bogosity, must go. |
276 | static object *read (object_thawer &f, maptile *map = 0); // map argument due to toal design bogosity, must go. |
277 | bool write (object_freezer &f); |
277 | bool write (object_freezer &f); |
278 | |
278 | |
279 | MTH int slottype () const; |
279 | MTH int slottype () const; |
280 | MTH static object *create (); |
280 | MTH static object *create (); |
… | |
… | |
504 | MTH struct region *region () const; |
504 | MTH struct region *region () const; |
505 | |
505 | |
506 | void statusmsg (const char *msg, int color = NDI_BLACK); |
506 | void statusmsg (const char *msg, int color = NDI_BLACK); |
507 | void failmsg (const char *msg, int color = NDI_RED); |
507 | void failmsg (const char *msg, int color = NDI_RED); |
508 | |
508 | |
|
|
509 | MTH const_octet_string ref () const; // creates and returns a consistent persistent object reference |
|
|
510 | static object *deref (const_octet_string ref); // returns the object from the generated refreence, if possible |
|
|
511 | |
509 | protected: |
512 | protected: |
510 | void link (); |
513 | void link (); |
511 | void unlink (); |
514 | void unlink (); |
512 | |
515 | |
513 | object (); |
516 | object (); |
… | |
… | |
565 | archetype (const char *name); |
568 | archetype (const char *name); |
566 | ~archetype (); |
569 | ~archetype (); |
567 | void gather_callbacks (AV *&callbacks, event_type event) const; |
570 | void gather_callbacks (AV *&callbacks, event_type event) const; |
568 | |
571 | |
569 | static archetype *read (object_thawer &f); |
572 | static archetype *read (object_thawer &f); |
|
|
573 | |
570 | static archetype *get (const char *name); // find or create |
574 | MTH static archetype *get (const_utf8_string name); // find or create |
571 | static archetype *find (const char *name); |
575 | MTH static archetype *find (const_utf8_string name); |
572 | |
576 | |
573 | void link (); |
577 | MTH void link (); |
574 | void unlink (); |
578 | MTH void unlink (); |
575 | |
579 | |
576 | object_vector_index ACC (RW, archid); // index in archvector |
580 | object_vector_index ACC (RW, archid); // index in archvector |
577 | shstr ACC (RW, archname); /* More definite name, like "generate_kobold" */ |
581 | shstr ACC (RW, archname); /* More definite name, like "generate_kobold" */ |
578 | bool ACC (RW, stub); // if true, this is an invalid archetype |
582 | bool ACC (RW, stub); // if true, this is an invalid archetype |
579 | |
583 | |