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.234 by root, Sun Apr 4 20:00:05 2010 UTC

33//+GPL 33//+GPL
34 34
35typedef int tag_t; 35typedef int tag_t;
36 36
37// also see common/item.C 37// also see common/item.C
38enum { 38enum
39{
39 body_skill, 40 body_skill,
40 body_combat, 41 body_combat,
41 body_range, 42 body_range,
42 body_shield, 43 body_shield,
43 body_arm, 44 body_arm,
283 284
284const_utf8_string query_weight (const object *op); 285const_utf8_string query_weight (const object *op);
285const_utf8_string query_short_name (const object *op); 286const_utf8_string query_short_name (const object *op);
286const_utf8_string query_name (const object *op); 287const_utf8_string query_name (const object *op);
287const_utf8_string query_base_name (const object *op, int plural); 288const_utf8_string query_base_name (const object *op, int plural);
289sint64 query_cost (const object *tmp, object *who, int flag);
290const char *query_cost_string (const object *tmp, object *who, int flag);
291
292int change_ability_duration (object *spell, object *caster);
293int min_casting_level (object *caster, object *spell);
294int casting_level (object *caster, object *spell);
295sint16 SP_level_spellpoint_cost (object *caster, object *spell, int flags);
296int SP_level_dam_adjust (object *caster, object *spob);
297int SP_level_duration_adjust (object *caster, object *spob);
298int SP_level_range_adjust (object *caster, object *spob);
288 299
289struct object : zero_initialised, object_copy 300struct object : zero_initialised, object_copy
290{ 301{
291 // These variables are not changed by ->copy_to 302 // These variables are not changed by ->copy_to
292 maptile *ACC (RW, map); /* Pointer to the map in which this object is present */ 303 maptile *ACC (RW, map); /* Pointer to the map in which this object is present */
602 613
603 MTH bool is_player () const 614 MTH bool is_player () const
604 { 615 {
605 return !!contr; 616 return !!contr;
606 } 617 }
618
619 /* elmex: this method checks whether the object is in a shop */
620 MTH bool is_in_shop () const;
607 621
608 MTH bool affects_los () const 622 MTH bool affects_los () const
609 { 623 {
610 return glow_radius || flag [FLAG_BLOCKSVIEW]; 624 return glow_radius || flag [FLAG_BLOCKSVIEW];
611 } 625 }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines