Package zombie.behaviors.survivor.orders
Class GotoOrder
java.lang.Object
zombie.behaviors.survivor.orders.Order
zombie.behaviors.survivor.orders.GotoOrder
- Direct Known Subclasses:
GotoBuildingOrder
,GotoRoomOrder
,GotoSafehouseOrder
public class GotoOrder extends Order
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
GotoOrder.Waypoint
-
Field Summary
Fields Modifier and Type Field Description IsoGameCharacter
chr
int
currentwaypoint
int
failedcount
java.util.Stack
Waypoints
-
Constructor Summary
Constructors Constructor Description GotoOrder(IsoGameCharacter gameCharacter)
GotoOrder(IsoGameCharacter gameCharacter, int int1, int int2, int int3)
-
Method Summary
Modifier and Type Method Description boolean
complete()
int
getAttackIfEnemiesAroundBias()
float
getPriority(IsoGameCharacter gameCharacter)
void
init(int int1, int int2, int int3)
Behavior.BehaviorResult
process()
int
renderDebug(int int1)
void
update()
Methods inherited from class zombie.behaviors.survivor.orders.Order
ActedThisFrame, getPathSpeed, initOrder, isCancelledOnAttack, isCritical, processNext, updatenext
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
failedcount
public int failedcount -
Waypoints
public java.util.Stack Waypoints -
currentwaypoint
public int currentwaypoint -
chr
-
-
Constructor Details
-
GotoOrder
-
GotoOrder
-
-
Method Details
-
getAttackIfEnemiesAroundBias
public int getAttackIfEnemiesAroundBias()- Overrides:
getAttackIfEnemiesAroundBias
in classOrder
-
init
public void init(int int1, int int2, int int3) -
complete
public boolean complete() -
update
public void update() -
process
-
renderDebug
public int renderDebug(int int1)- Overrides:
renderDebug
in classOrder
-
getPriority
- Overrides:
getPriority
in classOrder
-