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 boolean1)PathFindBehavior(java.lang.String string) -
Method Summary
Modifier and Type Method Description voidFailed(Mover mover)java.lang.StringgetName()Behavior.BehaviorResultprocess(DecisionPath decisionPath, IsoGameCharacter gameCharacter)intrenderDebug(int int1)voidreset()booleanrunning(IsoGameCharacter gameCharacter)voidsetData(IsoGameCharacter gameCharacter, int int1, int int2, int int3)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 string) -
PathFindBehavior
public PathFindBehavior(boolean boolean1)
-
-
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 int1)- Overrides:
renderDebugin classBehavior
-
Failed
- Specified by:
Failedin interfaceIPathfinder
-
Succeeded
- Specified by:
Succeededin interfaceIPathfinder
-