zombie.behaviors.general
Class PathFindBehavior

java.lang.Object
  extended by zombie.behaviors.Behavior
      extended by zombie.behaviors.general.PathFindBehavior
All Implemented Interfaces:
IPathfinder

public class PathFindBehavior
extends Behavior
implements IPathfinder

Author:
LEMMY

Nested Class Summary
 
Nested classes/interfaces inherited from class zombie.behaviors.Behavior
Behavior.BehaviorResult
 
Field Summary
 boolean bDoClosest
           
 AStarPathFinderResult finder
           
 int lastCancel
           
 java.lang.String name
           
 int osx
           
 int osy
           
 int osz
           
 int otx
           
 int oty
           
 int otz
           
 Path path
           
 int pathIndex
           
 int sx
           
 int sy
           
 int sz
           
 int tx
           
 int ty
           
 int tz
           
 
Fields inherited from class zombie.behaviors.Behavior
last
 
Constructor Summary
PathFindBehavior()
           
PathFindBehavior(boolean useScriptXY)
           
PathFindBehavior(java.lang.String name)
           
 
Method Summary
 void Failed(Mover mover)
           
 java.lang.String getName()
           
 Behavior.BehaviorResult process(DecisionPath dpath, IsoGameCharacter character)
           
 int renderDebug(int y)
           
 void reset()
           
 boolean running(IsoGameCharacter character)
           
 void setData(IsoGameCharacter chr, int tx, int ty, int tz)
           
 void Succeeded(Path path, Mover mover)
           
 boolean valid()
           
 
Methods inherited from class zombie.behaviors.Behavior
addChild, getPathSpeed, onSwitch, processChild, update
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

path

public Path path

bDoClosest

public boolean bDoClosest

pathIndex

public int pathIndex

sx

public int sx

sy

public int sy

sz

public int sz

tx

public int tx

ty

public int ty

tz

public int tz

osx

public int osx

osy

public int osy

osz

public int osz

otx

public int otx

oty

public int oty

otz

public int otz

finder

public AStarPathFinderResult finder

name

public java.lang.String name

lastCancel

public int lastCancel
Constructor Detail

PathFindBehavior

public PathFindBehavior()

PathFindBehavior

public PathFindBehavior(java.lang.String name)

PathFindBehavior

public PathFindBehavior(boolean useScriptXY)
Method Detail

getName

public java.lang.String getName()
Specified by:
getName in interface IPathfinder

setData

public void setData(IsoGameCharacter chr,
                    int tx,
                    int ty,
                    int tz)

process

public Behavior.BehaviorResult process(DecisionPath dpath,
                                       IsoGameCharacter character)
Specified by:
process in class Behavior

reset

public void reset()
Specified by:
reset in class Behavior

running

public boolean running(IsoGameCharacter character)

valid

public boolean valid()
Specified by:
valid in class Behavior

renderDebug

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

Failed

public void Failed(Mover mover)
Specified by:
Failed in interface IPathfinder

Succeeded

public void Succeeded(Path path,
                      Mover mover)
Specified by:
Succeeded in interface IPathfinder