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 gameCharacter) -
Method Summary
Modifier and Type Method Description voidcancel()static voidclosestPointOnPath(float float1, float float2, float float3, IsoMovingObject movingObject, PolygonalMap2.Path path, PathFindBehavior2.PointOnPath pointOnPath)voidFailed(Mover mover)IsoGameCharactergetTargetChar()floatgetTargetX()floatgetTargetY()floatgetTargetZ()booleanisGoal2Location()booleanisTargetLocation(float float1, float float2, float float3)voidpathToCharacter(IsoGameCharacter gameCharacter)voidpathToLocation(int int1, int int2, int int3)voidpathToLocationF(float float1, float float2, float float3)voidpathToVehicleArea(BaseVehicle baseVehicle, java.lang.String string)voidpathToVehicleSeat(BaseVehicle baseVehicle, int int1)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
-
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:
Succeededin interfacePolygonalMap2.IPathfinder
-
Failed
- Specified by:
Failedin interfacePolygonalMap2.IPathfinder
-