zombie.behaviors.general
Class PathFindBehavior
java.lang.Object
zombie.behaviors.Behavior
zombie.behaviors.general.PathFindBehavior
- All Implemented Interfaces:
- IPathfinder
public class PathFindBehavior
- extends Behavior
- implements IPathfinder
- Author:
- LEMMY
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
PathFindBehavior
public PathFindBehavior()
PathFindBehavior
public PathFindBehavior(java.lang.String name)
PathFindBehavior
public PathFindBehavior(boolean useScriptXY)
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