… | |
… | |
331 | || (flag [FLAG_ALIVE] && !flag [FLAG_GENERATOR] && type != DOOR)) |
331 | || (flag [FLAG_ALIVE] && !flag [FLAG_GENERATOR] && type != DOOR)) |
332 | && !flag [FLAG_IS_A_TEMPLATE]; } |
332 | && !flag [FLAG_IS_A_TEMPLATE]; } |
333 | MTH bool is_arrow () const { return type == ARROW |
333 | MTH bool is_arrow () const { return type == ARROW |
334 | || (type == SPELL_EFFECT |
334 | || (type == SPELL_EFFECT |
335 | && (subtype == SP_BULLET || subtype == SP_MAGIC_MISSILE)); } |
335 | && (subtype == SP_BULLET || subtype == SP_MAGIC_MISSILE)); } |
|
|
336 | MTH bool is_range () const { return type == BOW || type == ROD || type == WAND || type == HORN; } |
336 | |
337 | |
337 | MTH bool has_active_speed () const { return FABS(speed) >= MIN_ACTIVE_SPEED; } |
338 | MTH bool has_active_speed () const { return FABS(speed) >= MIN_ACTIVE_SPEED; } |
338 | |
339 | |
339 | // temporary: wether the object can be saved in a map file |
340 | // temporary: wether the object can be saved in a map file |
340 | // contr => is a player |
341 | // contr => is a player |