|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object wyvern.lib.ai.behaviors.BehaviorElement wyvern.lib.ai.behaviors.RangedAttackBE
Method Summary | |
boolean |
getAction(Commandable monster,
Behavior behavior)
|
static BehaviorElement |
getImpl()
|
boolean |
tryRangeWeapon(Commandable monster,
Commandable target)
Attempts to fire a range weapon, throw something, use a wand or scroll, etc. instead of chasing a player. |
boolean |
tryStepBack(Commandable monster,
Commandable target)
In the specific case of a range-weapon-user or spellcaster that's adjacent to their target, we try to step away from the target. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static BehaviorElement getImpl()
public boolean getAction(Commandable monster, Behavior behavior)
getAction
in class BehaviorElement
public boolean tryRangeWeapon(Commandable monster, Commandable target)
monster
- the monster that's looking
public boolean tryStepBack(Commandable monster, Commandable target)
monster
- the monstertarget
- the target
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |