v0.2.3: reworked ring of evasion, again

This commit is contained in:
Evan Debenham
2014-12-03 16:49:27 -05:00
parent a3cb4a2542
commit 23bfbfd3e7
3 changed files with 31 additions and 19 deletions
@@ -431,6 +431,11 @@ public abstract class Mob extends Char {
GLog.n( "%s: \"%s\" ", name, str );
}
//returns true when a mob sees the hero, and is currently targeting them.
public boolean focusingHero() {
return enemySeen && (target == Dungeon.hero.pos);
}
public interface AiState {
public boolean act( boolean enemyInFOV, boolean justAlerted );
public String status();