… | |
… | |
518 | MTH bool is_arrow () const { return type == ARROW |
518 | MTH bool is_arrow () const { return type == ARROW |
519 | || (type == SPELL_EFFECT |
519 | || (type == SPELL_EFFECT |
520 | && (subtype == SP_BULLET || subtype == SP_MAGIC_MISSILE)); } |
520 | && (subtype == SP_BULLET || subtype == SP_MAGIC_MISSILE)); } |
521 | MTH bool is_range () const { return type == BOW || type == ROD || type == WAND || type == HORN; } |
521 | MTH bool is_range () const { return type == BOW || type == ROD || type == WAND || type == HORN; } |
522 | |
522 | |
523 | MTH bool has_active_speed () const { return fabs (speed) >= MIN_ACTIVE_SPEED; } |
523 | MTH bool has_active_speed () const { return speed >= MIN_ACTIVE_SPEED; } |
524 | |
524 | |
525 | // temporary: wether the object can be saved in a map file |
525 | // temporary: wether the object can be saved in a map file |
526 | // contr => is a player |
526 | // contr => is a player |
527 | // head => only save head of a multitile object |
527 | // head => only save head of a multitile object |
528 | // owner => can not reference owner yet |
528 | // owner => can not reference owner yet |