Package zombie.behaviors.survivor
Class FleeBehaviour
java.lang.Object
zombie.behaviors.Behavior
zombie.behaviors.survivor.FleeBehaviour
public class FleeBehaviour extends Behavior
-
Nested Class Summary
Nested classes/interfaces inherited from class zombie.behaviors.Behavior
Behavior.BehaviorResult
-
Field Summary
Fields Modifier and Type Field Description boolean
bFollowFlee
boolean
bPickedFleeStyle
boolean
Started
Fields inherited from class zombie.behaviors.Behavior
childNodes, last
-
Constructor Summary
Constructors Constructor Description FleeBehaviour()
-
Method Summary
Modifier and Type Method Description float
getPathSpeed()
float
getPriority(IsoGameCharacter character)
void
onSwitch()
Behavior.BehaviorResult
process(DecisionPath path, IsoGameCharacter character)
int
renderDebug(int y)
void
reset()
boolean
valid()
Methods inherited from class zombie.behaviors.Behavior
addChild, processChild, update
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
Started
public boolean Started -
bFollowFlee
public boolean bFollowFlee -
bPickedFleeStyle
public boolean bPickedFleeStyle
-
-
Constructor Details
-
FleeBehaviour
public FleeBehaviour()
-
-
Method Details
-
onSwitch
public void onSwitch() -
process
-
reset
public void reset() -
valid
public boolean valid() -
getPriority
-
getPathSpeed
public float getPathSpeed()- Overrides:
getPathSpeed
in classBehavior
-
renderDebug
public int renderDebug(int y)- Overrides:
renderDebug
in classBehavior
-