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 boolean1)
PathFindBehavior(java.lang.String string)
-
Method Summary
Modifier and Type Method Description void
Failed(Mover mover)
java.lang.String
getName()
Behavior.BehaviorResult
process(DecisionPath decisionPath, IsoGameCharacter gameCharacter)
int
renderDebug(int int1)
void
reset()
boolean
running(IsoGameCharacter gameCharacter)
void
setData(IsoGameCharacter gameCharacter, int int1, int int2, int int3)
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 string) -
PathFindBehavior
public PathFindBehavior(boolean boolean1)
-
-
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 int1)- Overrides:
renderDebug
in classBehavior
-
Failed
- Specified by:
Failed
in interfaceIPathfinder
-
Succeeded
- Specified by:
Succeeded
in interfaceIPathfinder
-