|
||||||||||
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.WanderRandomlyBE
Field Summary | |
static int |
DEFAULT_MONSTER_INERTIA
If a monster is moving randomly, since there's nothing to do, we have them sit still this percentage of the time, to cut down on CPU load. |
static int |
DEFAULT_WANDER_RANGE
If a monster has a "stay-near" property but doesn't specify a "wander-range" property, this is the value that will be used. |
Method Summary | |
java.lang.String |
chooseRandomDir()
Chooses a random direction for the commandable. |
boolean |
getAction(Commandable monster,
Behavior behavior)
|
static BehaviorElement |
getImpl()
|
void |
moveRandomly(Commandable agent)
Moves the monster in a random direction, possibly pausing. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int DEFAULT_WANDER_RANGE
public static final int DEFAULT_MONSTER_INERTIA
Method Detail |
public static BehaviorElement getImpl()
public boolean getAction(Commandable monster, Behavior behavior)
getAction
in class BehaviorElement
public void moveRandomly(Commandable agent)
agent
- the monster to commandpublic java.lang.String chooseRandomDir()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |