Package zombie.vehicles
Class PathFindBehavior2
java.lang.Object
zombie.vehicles.PathFindBehavior2
- All Implemented Interfaces:
PolygonalMap2.IPathfinder
public class PathFindBehavior2 extends java.lang.Object implements PolygonalMap2.IPathfinder
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPathFindBehavior2.PointOnPath -
Constructor Summary
Constructors Constructor Description PathFindBehavior2(IsoGameCharacter chr) -
Method Summary
Modifier and Type Method Description voidcancel()static voidclosestPointOnPath(float x3, float y3, float z, IsoMovingObject mover, PolygonalMap2.Path path, PathFindBehavior2.PointOnPath pop)voidFailed(Mover mover)IsoGameCharactergetTargetChar()floatgetTargetX()floatgetTargetY()floatgetTargetZ()booleanisTargetLocation(float x, float y, float z)voidpathToCharacter(IsoGameCharacter target)voidpathToLocation(int x, int y, int z)voidpathToLocationF(float x, float y, float z)voidpathToVehicleArea(BaseVehicle vehicle, java.lang.String areaId)voidpathToVehicleSeat(BaseVehicle vehicle, int seat)voidrender()voidSucceeded(PolygonalMap2.Path path, Mover mover)Behavior.BehaviorResultupdate()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
PathFindBehavior2
-
-
Method Details
-
pathToCharacter
-
pathToLocation
public void pathToLocation(int x, int y, int z) -
pathToLocationF
public void pathToLocationF(float x, float y, float z) -
pathToVehicleArea
-
pathToVehicleSeat
-
cancel
public void cancel() -
getTargetX
public float getTargetX() -
getTargetY
public float getTargetY() -
getTargetZ
public float getTargetZ() -
getTargetChar
-
isTargetLocation
public boolean isTargetLocation(float x, float y, float z) -
update
-
closestPointOnPath
public static void closestPointOnPath(float x3, float y3, float z, IsoMovingObject mover, PolygonalMap2.Path path, PathFindBehavior2.PointOnPath pop) -
render
public void render() -
Succeeded
- Specified by:
Succeededin interfacePolygonalMap2.IPathfinder
-
Failed
- Specified by:
Failedin interfacePolygonalMap2.IPathfinder
-