Package zombie.behaviors.survivor.orders
Class FollowOrder
java.lang.Object
zombie.behaviors.survivor.orders.Order
zombie.behaviors.survivor.orders.FollowOrder
public class FollowOrder extends Order
-
Field Summary
Fields Modifier and Type Field Description boolean
bStrict
float
currentDist
float
lastDist
int
pathfindtimer
int
Range
IsoGameCharacter
target
-
Constructor Summary
Constructors Constructor Description FollowOrder(IsoGameCharacter chr)
FollowOrder(IsoGameCharacter chr, IsoGameCharacter target, int range)
FollowOrder(IsoGameCharacter chr, IsoGameCharacter target, int range, boolean b)
-
Method Summary
Modifier and Type Method Description boolean
complete()
float
getPathSpeed()
float
getPriority(IsoGameCharacter character)
boolean
isCancelledOnAttack()
Behavior.BehaviorResult
process()
int
renderDebug(int y)
void
update()
Methods inherited from class zombie.behaviors.survivor.orders.Order
ActedThisFrame, getAttackIfEnemiesAroundBias, initOrder, isCritical, processNext, updatenext
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
Range
public int Range -
pathfindtimer
public int pathfindtimer -
target
-
bStrict
public boolean bStrict -
lastDist
public float lastDist -
currentDist
public float currentDist
-
-
Constructor Details
-
FollowOrder
-
FollowOrder
-
FollowOrder
-
-
Method Details
-
process
-
isCancelledOnAttack
public boolean isCancelledOnAttack()- Overrides:
isCancelledOnAttack
in classOrder
-
getPriority
- Overrides:
getPriority
in classOrder
-
getPathSpeed
public float getPathSpeed()- Overrides:
getPathSpeed
in classOrder
-
renderDebug
public int renderDebug(int y)- Overrides:
renderDebug
in classOrder
-
complete
public boolean complete() -
update
public void update()
-