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.172 by root, Sat May 3 11:14:50 2008 UTC vs.
Revision 1.175 by root, Sun May 4 18:46:01 2008 UTC

338 338
339 MTH int slottype () const; 339 MTH int slottype () const;
340 MTH static object *create (); 340 MTH static object *create ();
341 const mapxy &operator =(const mapxy &pos); 341 const mapxy &operator =(const mapxy &pos);
342 MTH void copy_to (object *dst); 342 MTH void copy_to (object *dst);
343 MTH object *clone (); // create + copy_to 343 MTH object *clone (); // create + copy_to a single object
344 MTH object *deep_clone (); // copy whole more chain and inventory
344 void do_destroy (); 345 void do_destroy ();
345 void gather_callbacks (AV *&callbacks, event_type event) const; 346 void gather_callbacks (AV *&callbacks, event_type event) const;
346 MTH void destroy (bool destroy_inventory = false); 347 MTH void destroy (bool destroy_inventory = false);
347 348
348 // recursively destroy all objects in inventory, optionally dropping them to the ground instead 349 // recursively destroy all objects in inventory, optionally dropping them to the ground instead
536 // set the given flag on all objects in the inventory recursively 537 // set the given flag on all objects in the inventory recursively
537 MTH void set_flag_inv (int flag, int value = 1); 538 MTH void set_flag_inv (int flag, int value = 1);
538 539
539 void enter_exit (object *exit);//Perl 540 void enter_exit (object *exit);//Perl
540 MTH void enter_map (maptile *newmap, int x, int y); 541 MTH void enter_map (maptile *newmap, int x, int y);
542 void player_goto (const char *path, int x, int y); // only for players
541 543
542 // returns the mapspace this object is in 544 // returns the mapspace this object is in
543 mapspace &ms () const; 545 mapspace &ms () const;
544 546
545 // fully recursive iterator 547 // fully recursive iterator
676 MTH static archetype *find (const_utf8_string name); 678 MTH static archetype *find (const_utf8_string name);
677 679
678 MTH void link (); 680 MTH void link ();
679 MTH void unlink (); 681 MTH void unlink ();
680 682
681 MTH static object *get (const char *name); // find()->instance() 683 MTH static object *get (const char *name); // (find() || singularity)->instance()
682 MTH object *instance (); 684 MTH object *instance ();
683 685
684 object_vector_index ACC (RW, archid); // index in archvector 686 object_vector_index ACC (RW, archid); // index in archvector
685 shstr ACC (RW, archname); /* More definite name, like "generate_kobold" */ 687 shstr ACC (RW, archname); /* More definite name, like "generate_kobold" */
686 688

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines