zombie.behaviors.survivor.orders
Class GotoOrder

java.lang.Object
  extended by zombie.behaviors.survivor.orders.Order
      extended by zombie.behaviors.survivor.orders.GotoOrder
Direct Known Subclasses:
GotoBuildingOrder, GotoRoomOrder, GotoSafehouseOrder

public class GotoOrder
extends Order

Author:
LEMMYLAP

Nested Class Summary
static class GotoOrder.Waypoint
           
 
Field Summary
 IsoGameCharacter chr
           
 int currentwaypoint
           
 int failedcount
           
 java.util.Stack<GotoOrder.Waypoint> Waypoints
           
 
Fields inherited from class zombie.behaviors.survivor.orders.Order
bInit, character, name, type
 
Constructor Summary
GotoOrder(IsoGameCharacter chr)
           
GotoOrder(IsoGameCharacter chr, int x, int y, int z)
           
 
Method Summary
 boolean complete()
           
 int getAttackIfEnemiesAroundBias()
           
 float getPriority(IsoGameCharacter character)
           
 void init(int x, int y, int z)
           
 Behavior.BehaviorResult process()
           
 int renderDebug(int y)
           
 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
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

failedcount

public int failedcount

Waypoints

public java.util.Stack<GotoOrder.Waypoint> Waypoints

currentwaypoint

public int currentwaypoint

chr

public IsoGameCharacter chr
Constructor Detail

GotoOrder

public GotoOrder(IsoGameCharacter chr,
                 int x,
                 int y,
                 int z)

GotoOrder

public GotoOrder(IsoGameCharacter chr)
Method Detail

getAttackIfEnemiesAroundBias

public int getAttackIfEnemiesAroundBias()
Overrides:
getAttackIfEnemiesAroundBias in class Order

init

public void init(int x,
                 int y,
                 int z)

complete

public boolean complete()
Specified by:
complete in class Order

update

public void update()
Specified by:
update in class Order

process

public Behavior.BehaviorResult process()
Specified by:
process in class Order

renderDebug

public int renderDebug(int y)
Overrides:
renderDebug in class Order

getPriority

public float getPriority(IsoGameCharacter character)
Overrides:
getPriority in class Order