Package 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
-
Nested Class Summary
Nested classes/interfaces inherited from class zombie.behaviors.Behavior
Behavior.BehaviorResult -
Field Summary
Fields Modifier and Type Field Description booleanbDoClosestAStarPathFinderResultfinderintlastCanceljava.lang.StringnameintosxintosyintoszintotxintotyintotzPathpathintpathIndexintsxintsyintszinttxinttyinttzFields inherited from class zombie.behaviors.Behavior
childNodes, last -
Constructor Summary
Constructors Constructor Description PathFindBehavior()PathFindBehavior(boolean useScriptXY)PathFindBehavior(java.lang.String name) -
Method Summary
Modifier and Type Method Description voidFailed(Mover mover)java.lang.StringgetName()Behavior.BehaviorResultprocess(DecisionPath dpath, IsoGameCharacter character)intrenderDebug(int y)voidreset()booleanrunning(IsoGameCharacter character)voidsetData(IsoGameCharacter chr, int tx, int ty, int tz)voidSucceeded(Path path, Mover mover)booleanvalid()Methods inherited from class zombie.behaviors.Behavior
addChild, getPathSpeed, onSwitch, processChild, updateMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
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
-
name
public java.lang.String name -
lastCancel
public int lastCancel
-
-
Constructor Details
-
PathFindBehavior
public PathFindBehavior() -
PathFindBehavior
public PathFindBehavior(java.lang.String name) -
PathFindBehavior
public PathFindBehavior(boolean useScriptXY)
-
-
Method Details
-
getName
public java.lang.String getName()- Specified by:
getNamein interfaceIPathfinder
-
setData
-
process
-
reset
public void reset() -
running
-
valid
public boolean valid() -
renderDebug
public int renderDebug(int y)- Overrides:
renderDebugin classBehavior
-
Failed
- Specified by:
Failedin interfaceIPathfinder
-
Succeeded
- Specified by:
Succeededin interfaceIPathfinder
-