… | |
… | |
283 | |
283 | |
284 | const_utf8_string query_weight (const object *op); |
284 | const_utf8_string query_weight (const object *op); |
285 | const_utf8_string query_short_name (const object *op); |
285 | const_utf8_string query_short_name (const object *op); |
286 | const_utf8_string query_name (const object *op); |
286 | const_utf8_string query_name (const object *op); |
287 | const_utf8_string query_base_name (const object *op, int plural); |
287 | const_utf8_string query_base_name (const object *op, int plural); |
|
|
288 | sint64 query_cost (const object *tmp, object *who, int flag); |
|
|
289 | const char *query_cost_string (const object *tmp, object *who, int flag); |
|
|
290 | |
|
|
291 | int change_ability_duration (object *spell, object *caster); |
|
|
292 | int min_casting_level (object *caster, object *spell); |
|
|
293 | int casting_level (object *caster, object *spell); |
|
|
294 | sint16 SP_level_spellpoint_cost (object *caster, object *spell, int flags); |
|
|
295 | int SP_level_dam_adjust (object *caster, object *spob); |
|
|
296 | int SP_level_duration_adjust (object *caster, object *spob); |
|
|
297 | int SP_level_range_adjust (object *caster, object *spob); |
288 | |
298 | |
289 | struct object : zero_initialised, object_copy |
299 | struct 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 | } |