Class PathFindBehavior2
java.lang.Object
zombie.pathfind.PathFindBehavior2
- All Implemented Interfaces:
IPathfinder
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumstatic enumclassstatic final class -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanvoidcancel()static voidclosestPointOnPath(float x3, float y3, float z, IsoMovingObject mover, Path path, PathFindBehavior2.PointOnPath pop) voidbooleanfloatfloatfloatfloatbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanisTargetLocation(float x, float y, float z) booleanvoidmoveToDir(IsoMovingObject target, float speedMul) voidmoveToPoint(float x, float y, float speedMul) voidpathToCharacter(IsoGameCharacter target) voidpathToLocation(int x, int y, int z) voidpathToLocationF(float x, float y, float z) voidpathToNearest(gnu.trove.list.array.TFloatArrayList locations) voidpathToNearestTable(se.krka.kahlua.vm.KahluaTable locationsTable) voidpathToSitOnFurniture(IsoObject furniture, boolean bAnySpriteGridObject) voidpathToSound(int x, int y, int z) voidpathToVehicleAdjacent(BaseVehicle vehicle) voidpathToVehicleArea(BaseVehicle vehicle, String areaId) voidpathToVehicleSeat(BaseVehicle vehicle, int seat) voidrender()voidreset()voidsetData(float targetX, float targetY, float targetZ) booleanbooleanbooleanvoidupdate()
-
Field Details
-
pathNextIsSet
public boolean pathNextIsSet -
pathNextX
public float pathNextX -
pathNextY
public float pathNextY -
listeners
-
npcData
-
stopping
public boolean stopping -
walkingOnTheSpot
-
-
Constructor Details
-
PathFindBehavior2
-
-
Method Details
-
isGoalNone
public boolean isGoalNone() -
isGoalCharacter
public boolean isGoalCharacter() -
isGoalLocation
public boolean isGoalLocation() -
isGoalSound
public boolean isGoalSound() -
isGoalSitOnFurniture
public boolean isGoalSitOnFurniture() -
getGoalSitOnFurnitureObject
-
isGoalVehicleAdjacent
public boolean isGoalVehicleAdjacent() -
isGoalVehicleArea
public boolean isGoalVehicleArea() -
isGoalVehicleSeat
public boolean isGoalVehicleSeat() -
reset
public void reset() -
pathToCharacter
-
pathToLocation
public void pathToLocation(int x, int y, int z) -
pathToLocationF
public void pathToLocationF(float x, float y, float z) -
pathToSound
public void pathToSound(int x, int y, int z) -
pathToNearest
public void pathToNearest(gnu.trove.list.array.TFloatArrayList locations) -
pathToNearestTable
public void pathToNearestTable(se.krka.kahlua.vm.KahluaTable locationsTable) -
pathToSitOnFurniture
-
shouldIgnoreCollisionWithSquare
-
pathToVehicleAdjacent
-
pathToVehicleArea
-
pathToVehicleSeat
-
cancel
public void cancel() -
getIsCancelled
public boolean getIsCancelled() -
setData
public void setData(float targetX, float targetY, float targetZ) -
getTargetX
public float getTargetX() -
getTargetY
public float getTargetY() -
getTargetZ
public float getTargetZ() -
getPathLength
public float getPathLength() -
getTargetChar
-
isTargetLocation
public boolean isTargetLocation(float x, float y, float z) -
update
-
moveToPoint
public void moveToPoint(float x, float y, float speedMul) -
moveToDir
-
shouldGetUpFromCrawl
public boolean shouldGetUpFromCrawl() -
shouldBeMoving
public boolean shouldBeMoving() -
hasStartedMoving
public boolean hasStartedMoving() -
allowTurnAnimation
public boolean allowTurnAnimation() -
isTurningToObstacle
public boolean isTurningToObstacle() -
isStrafing
public boolean isStrafing() -
closestPointOnPath
public static void closestPointOnPath(float x3, float y3, float z, IsoMovingObject mover, Path path, PathFindBehavior2.PointOnPath pop) -
render
public void render() -
Succeeded
- Specified by:
Succeededin interfaceIPathfinder
-
Failed
- Specified by:
Failedin interfaceIPathfinder
-
isMovingUsingPathFind
public boolean isMovingUsingPathFind()
-