… | |
… | |
33 | //+GPL |
33 | //+GPL |
34 | |
34 | |
35 | typedef int tag_t; |
35 | typedef int tag_t; |
36 | |
36 | |
37 | // also see common/item.C |
37 | // also see common/item.C |
38 | enum { |
38 | enum |
|
|
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 | |
284 | const_utf8_string query_weight (const object *op); |
285 | const_utf8_string query_weight (const object *op); |
285 | const_utf8_string query_short_name (const object *op); |
286 | const_utf8_string query_short_name (const object *op); |
286 | const_utf8_string query_name (const object *op); |
287 | const_utf8_string query_name (const object *op); |
287 | const_utf8_string query_base_name (const object *op, int plural); |
288 | const_utf8_string query_base_name (const object *op, int plural); |
|
|
289 | sint64 query_cost (const object *tmp, object *who, int flag); |
|
|
290 | const char *query_cost_string (const object *tmp, object *who, int flag); |
|
|
291 | |
|
|
292 | int change_ability_duration (object *spell, object *caster); |
|
|
293 | int min_casting_level (object *caster, object *spell); |
|
|
294 | int casting_level (object *caster, object *spell); |
|
|
295 | sint16 SP_level_spellpoint_cost (object *caster, object *spell, int flags); |
|
|
296 | int SP_level_dam_adjust (object *caster, object *spob); |
|
|
297 | int SP_level_duration_adjust (object *caster, object *spob); |
|
|
298 | int SP_level_range_adjust (object *caster, object *spob); |
288 | |
299 | |
289 | struct object : zero_initialised, object_copy |
300 | struct 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 | } |