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.232 by root, Sat Apr 3 02:29:40 2010 UTC vs.
Revision 1.233 by root, Sun Apr 4 02:51:56 2010 UTC

283 283
284const_utf8_string query_weight (const object *op); 284const_utf8_string query_weight (const object *op);
285const_utf8_string query_short_name (const object *op); 285const_utf8_string query_short_name (const object *op);
286const_utf8_string query_name (const object *op); 286const_utf8_string query_name (const object *op);
287const_utf8_string query_base_name (const object *op, int plural); 287const_utf8_string query_base_name (const object *op, int plural);
288sint64 query_cost (const object *tmp, object *who, int flag);
289const char *query_cost_string (const object *tmp, object *who, int flag);
290
291int change_ability_duration (object *spell, object *caster);
292int min_casting_level (object *caster, object *spell);
293int casting_level (object *caster, object *spell);
294sint16 SP_level_spellpoint_cost (object *caster, object *spell, int flags);
295int SP_level_dam_adjust (object *caster, object *spob);
296int SP_level_duration_adjust (object *caster, object *spob);
297int SP_level_range_adjust (object *caster, object *spob);
288 298
289struct object : zero_initialised, object_copy 299struct object : zero_initialised, object_copy
290{ 300{
291 // These variables are not changed by ->copy_to 301 // These variables are not changed by ->copy_to
292 maptile *ACC (RW, map); /* Pointer to the map in which this object is present */ 302 maptile *ACC (RW, map); /* Pointer to the map in which this object is present */
602 612
603 MTH bool is_player () const 613 MTH bool is_player () const
604 { 614 {
605 return !!contr; 615 return !!contr;
606 } 616 }
617
618 /* elmex: this method checks whether the object is in a shop */
619 MTH bool is_in_shop () const;
607 620
608 MTH bool affects_los () const 621 MTH bool affects_los () const
609 { 622 {
610 return glow_radius || flag [FLAG_BLOCKSVIEW]; 623 return glow_radius || flag [FLAG_BLOCKSVIEW];
611 } 624 }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines