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 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
childNodes, last
-
Constructor Summary
Constructors Constructor Description PathFindBehavior()
PathFindBehavior(boolean useScriptXY)
PathFindBehavior(java.lang.String name)
-
Method Summary
Modifier and Type Method Description 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
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:
getName
in interfaceIPathfinder
-
setData
-
process
-
reset
public void reset() -
running
-
valid
public boolean valid() -
renderDebug
public int renderDebug(int y)- Overrides:
renderDebug
in classBehavior
-
Failed
- Specified by:
Failed
in interfaceIPathfinder
-
Succeeded
- Specified by:
Succeeded
in interfaceIPathfinder
-