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.164 by root, Mon Apr 21 06:16:02 2008 UTC vs.
Revision 1.166 by root, Mon Apr 21 23:35:24 2008 UTC

377 // info must hold 256 * 3 bytes currently 377 // info must hold 256 * 3 bytes currently
378 const char *debug_desc (char *info) const; 378 const char *debug_desc (char *info) const;
379 MTH const char *debug_desc () const; // uses at least 3 round-robin buffers 379 MTH const char *debug_desc () const; // uses at least 3 round-robin buffers
380 const char *flag_desc (char *desc, int len) const; 380 const char *flag_desc (char *desc, int len) const;
381 381
382 MTH bool decrease_nr (sint32 nr); 382 MTH bool decrease (sint32 nr = 1); // returns true if anything is left
383 MTH object *split_nr (sint32 nr); 383 MTH object *split (sint32 nr = 1); // return 0 on failure
384 384
385 MTH int number_of () const 385 MTH int number_of () const
386 { 386 {
387 return nrof ? nrof : 1; 387 return nrof ? nrof : 1;
388 } 388 }
462 462
463 MTH bool is_on_map () const 463 MTH bool is_on_map () const
464 { 464 {
465 return !env && !flag [FLAG_REMOVED]; 465 return !env && !flag [FLAG_REMOVED];
466 } 466 }
467
468 // returns the player that cna see this object, if any
469 MTH object *visible_to () const;
467 470
468 MTH std::string long_desc (object *who = 0); 471 MTH std::string long_desc (object *who = 0);
469 MTH std::string describe_monster (object *who = 0); 472 MTH std::string describe_monster (object *who = 0);
470 MTH std::string describe_item (object *who = 0); 473 MTH std::string describe_item (object *who = 0);
471 MTH std::string describe (object *who = 0); 474 MTH std::string describe (object *who = 0);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines