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 gameCharacter)
-
Method Summary
Modifier and Type Method Description void
cancel()
static void
closestPointOnPath(float float1, float float2, float float3, IsoMovingObject movingObject, PolygonalMap2.Path path, PathFindBehavior2.PointOnPath pointOnPath)
void
Failed(Mover mover)
IsoGameCharacter
getTargetChar()
float
getTargetX()
float
getTargetY()
float
getTargetZ()
boolean
isGoal2Location()
boolean
isTargetLocation(float float1, float float2, float float3)
void
pathToCharacter(IsoGameCharacter gameCharacter)
void
pathToLocation(int int1, int int2, int int3)
void
pathToLocationF(float float1, float float2, float float3)
void
pathToVehicleArea(BaseVehicle baseVehicle, java.lang.String string)
void
pathToVehicleSeat(BaseVehicle baseVehicle, int int1)
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
-
isGoal2Location
public boolean isGoal2Location() -
pathToCharacter
-
pathToLocation
public void pathToLocation(int int1, int int2, int int3) -
pathToLocationF
public void pathToLocationF(float float1, float float2, float float3) -
pathToVehicleArea
-
pathToVehicleSeat
-
cancel
public void cancel() -
getTargetX
public float getTargetX() -
getTargetY
public float getTargetY() -
getTargetZ
public float getTargetZ() -
getTargetChar
-
isTargetLocation
public boolean isTargetLocation(float float1, float float2, float float3) -
update
-
closestPointOnPath
public static void closestPointOnPath(float float1, float float2, float float3, IsoMovingObject movingObject, PolygonalMap2.Path path, PathFindBehavior2.PointOnPath pointOnPath) -
render
public void render() -
Succeeded
- Specified by:
Succeeded
in interfacePolygonalMap2.IPathfinder
-
Failed
- Specified by:
Failed
in interfacePolygonalMap2.IPathfinder
-