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.99 by root, Sat Feb 10 01:52:27 2007 UTC vs.
Revision 1.100 by root, Fri Feb 16 19:43:41 2007 UTC

239 */ 239 */
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
245 static object *read (object_thawer &f);
246 bool write (object_freezer &f);
247
244 MTH static object *create (); 248 MTH static object *create ();
245 MTH void copy_to (object *dst); 249 MTH void copy_to (object *dst);
246 MTH object *clone (); // create + copy_to 250 MTH object *clone (); // create + copy_to
247 void do_destroy (); 251 void do_destroy ();
248 void gather_callbacks (AV *&callbacks, event_type event) const; 252 void gather_callbacks (AV *&callbacks, event_type event) const;
275 MTH void close_container () 279 MTH void close_container ()
276 { 280 {
277 open_container (0); 281 open_container (0);
278 } 282 }
279 283
280 MTH void instantiate () 284 MTH void instantiate ();
281 {
282 if (!uuid.seq) // HACK
283 uuid = gen_uuid ();
284
285 attachable::instantiate ();
286 }
287 285
288 // recalculate all stats 286 // recalculate all stats
289 MTH void update_stats (); 287 MTH void update_stats ();
290 MTH void roll_stats (); 288 MTH void roll_stats ();
291 MTH void swap_stats (int a, int b); 289 MTH void swap_stats (int a, int b);
483{ 481{
484 archetype (); 482 archetype ();
485 ~archetype (); 483 ~archetype ();
486 void gather_callbacks (AV *&callbacks, event_type event) const; 484 void gather_callbacks (AV *&callbacks, event_type event) const;
487 485
486 static archetype *read (object_thawer &f);
488 static archetype *find (const char *name); 487 static archetype *find (const char *name);
489 488
490 void hash_add (); // add to hashtable 489 void hash_add (); // add to hashtable
491 void hash_del (); // remove from hashtable 490 void hash_del (); // remove from hashtable
492 491

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines