zombie.behaviors.survivor.orders
Class FollowOrder

java.lang.Object
  extended by zombie.behaviors.survivor.orders.Order
      extended by zombie.behaviors.survivor.orders.FollowOrder

public class FollowOrder
extends Order

Author:
LEMMYLAP

Field Summary
 boolean bStrict
           
 float currentDist
           
 float lastDist
           
 int pathfindtimer
           
 int Range
           
 IsoGameCharacter target
           
 
Fields inherited from class zombie.behaviors.survivor.orders.Order
bInit, character, name, type
 
Constructor Summary
FollowOrder(IsoGameCharacter chr)
           
FollowOrder(IsoGameCharacter chr, IsoGameCharacter target, int range)
           
FollowOrder(IsoGameCharacter chr, IsoGameCharacter target, int range, boolean b)
           
 
Method Summary
 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
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

Range

public int Range

pathfindtimer

public int pathfindtimer

target

public IsoGameCharacter target

bStrict

public boolean bStrict

lastDist

public float lastDist

currentDist

public float currentDist
Constructor Detail

FollowOrder

public FollowOrder(IsoGameCharacter chr,
                   IsoGameCharacter target,
                   int range)

FollowOrder

public FollowOrder(IsoGameCharacter chr)

FollowOrder

public FollowOrder(IsoGameCharacter chr,
                   IsoGameCharacter target,
                   int range,
                   boolean b)
Method Detail

process

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

isCancelledOnAttack

public boolean isCancelledOnAttack()
Overrides:
isCancelledOnAttack in class Order

getPriority

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

getPathSpeed

public float getPathSpeed()
Overrides:
getPathSpeed in class Order

renderDebug

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

complete

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

update

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