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 class
PathFindBehavior2.PointOnPath
-
Constructor Summary
Constructors Constructor Description PathFindBehavior2(IsoGameCharacter chr)
-
Method Summary
Modifier and Type Method Description void
cancel()
static void
closestPointOnPath(float x3, float y3, float z, IsoMovingObject mover, PolygonalMap2.Path path, PathFindBehavior2.PointOnPath pop)
void
Failed(Mover mover)
IsoGameCharacter
getTargetChar()
float
getTargetX()
float
getTargetY()
float
getTargetZ()
boolean
isTargetLocation(float x, float y, float z)
void
pathToCharacter(IsoGameCharacter target)
void
pathToLocation(int x, int y, int z)
void
pathToLocationF(float x, float y, float z)
void
pathToVehicleArea(BaseVehicle vehicle, java.lang.String areaId)
void
pathToVehicleSeat(BaseVehicle vehicle, int seat)
void
render()
void
Succeeded(PolygonalMap2.Path path, Mover mover)
Behavior.BehaviorResult
update()
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:
Succeeded
in interfacePolygonalMap2.IPathfinder
-
Failed
- Specified by:
Failed
in interfacePolygonalMap2.IPathfinder
-