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 booleanbFollowFleebooleanbPickedFleeStylebooleanStartedFields inherited from class zombie.behaviors.Behavior
childNodes, last -
Constructor Summary
Constructors Constructor Description FleeBehaviour() -
Method Summary
Modifier and Type Method Description floatgetPathSpeed()floatgetPriority(IsoGameCharacter character)voidonSwitch()Behavior.BehaviorResultprocess(DecisionPath path, IsoGameCharacter character)intrenderDebug(int y)voidreset()booleanvalid()Methods inherited from class zombie.behaviors.Behavior
addChild, processChild, updateMethods 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:
getPathSpeedin classBehavior
-
renderDebug
public int renderDebug(int y)- Overrides:
renderDebugin classBehavior
-