summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/actor.h
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/actor.h')
-rw-r--r--crawl-ref/source/actor.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/crawl-ref/source/actor.h b/crawl-ref/source/actor.h
index b93046d727..6d98fb2245 100644
--- a/crawl-ref/source/actor.h
+++ b/crawl-ref/source/actor.h
@@ -3,6 +3,13 @@
#include "los_def.h"
+enum ev_ignore_type
+{
+ EV_IGNORE_NONE = 0,
+ EV_IGNORE_HELPLESS = 1,
+ EV_IGNORE_PHASESHIFT = 2
+};
+
class actor
{
public:
@@ -167,7 +174,8 @@ public:
virtual bool can_throw_large_rocks() const = 0;
virtual int armour_class() const = 0;
- virtual int melee_evasion(const actor *attacker) const = 0;
+ virtual int melee_evasion(const actor *attacker,
+ ev_ignore_type ign = EV_IGNORE_NONE) const = 0;
virtual int shield_bonus() const = 0;
virtual int shield_block_penalty() const = 0;
virtual int shield_bypass_ability(int tohit) const = 0;