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.110 by root, Mon Apr 23 18:09:57 2007 UTC vs.
Revision 1.113 by root, Tue May 1 05:48:20 2007 UTC

295 MTH void drain_specific_stat (int deplete_stats); 295 MTH void drain_specific_stat (int deplete_stats);
296 MTH void change_luck (int value); 296 MTH void change_luck (int value);
297 297
298 // info must hold 256 * 3 bytes currently 298 // info must hold 256 * 3 bytes currently
299 const char *debug_desc (char *info) const; 299 const char *debug_desc (char *info) const;
300 MTH const char *debug_desc () const; 300 MTH const char *debug_desc () const; // uses at least 3 round-robin buffers
301 const char *debug_desc2 () const; // another debug_desc, pure convinience function
302 const char *flag_desc (char *desc, int len) const; 301 const char *flag_desc (char *desc, int len) const;
303 302
304 int number_of () const 303 int number_of () const
305 { 304 {
306 return nrof ? nrof : 1; 305 return nrof ? nrof : 1;
371 370
372 // If this object has no extra parts but should have them, 371 // If this object has no extra parts but should have them,
373 // add them, effectively expanding heads into multipart 372 // add them, effectively expanding heads into multipart
374 // objects. This method only works on objects not inserted 373 // objects. This method only works on objects not inserted
375 // anywhere. 374 // anywhere.
376 void expand_tail (); 375 MTH void expand_tail ();
376
377 MTH void create_treasure (treasurelist *tl, int flags = 0);
377 378
378 // insert object at same map position as 'where' 379 // insert object at same map position as 'where'
379 // handles both inventory and map "positions" 380 // handles both inventory and map "positions"
380 MTH object *insert_at (object *where, object *originator = 0, int flags = 0); 381 MTH object *insert_at (object *where, object *originator = 0, int flags = 0);
381 382
385 MTH void deactivate_recursive (); 386 MTH void deactivate_recursive ();
386 387
387 // set the givne flag on all objects in the inventory recursively 388 // set the givne flag on all objects in the inventory recursively
388 MTH void set_flag_inv (int flag, int value = 1); 389 MTH void set_flag_inv (int flag, int value = 1);
389 390
390 void enter_exit (object *exit);//PERL 391 void enter_exit (object *exit);//Perl
391 MTH void enter_map (maptile *newmap, int x, int y); 392 MTH void enter_map (maptile *newmap, int x, int y);
392 393
393 // returns the mapspace this object is in 394 // returns the mapspace this object is in
394 mapspace &ms () const; 395 mapspace &ms () const;
395 396

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines