Package zombie.vehicles
Class PathFindBehavior2
java.lang.Object
zombie.vehicles.PathFindBehavior2
- All Implemented Interfaces:
PolygonalMap2.IPathfinder
public final class PathFindBehavior2 extends java.lang.Object implements PolygonalMap2.IPathfinder
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPathFindBehavior2.BehaviorResultclassPathFindBehavior2.NPCDatastatic classPathFindBehavior2.PointOnPath -
Field Summary
Fields Modifier and Type Field Description booleanbStoppingjava.util.ArrayListListenersPathFindBehavior2.NPCDataNPCDatabooleanpathNextIsSetfloatpathNextXfloatpathNextYWalkingOnTheSpotwalkingOnTheSpot -
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)booleangetIsCancelled()floatgetPathLength()IsoGameCharactergetTargetChar()floatgetTargetX()floatgetTargetY()floatgetTargetZ()booleanisGoalCharacter()booleanisGoalLocation()booleanisGoalNone()booleanisGoalSound()booleanisGoalVehicleAdjacent()booleanisGoalVehicleArea()booleanisGoalVehicleSeat()booleanisMovingUsingPathFind()booleanisStrafing()booleanisTargetLocation(float float1, float float2, float float3)voidmoveToDir(IsoMovingObject movingObject, float float1)voidmoveToPoint(float float1, float float2, float float3)voidpathToCharacter(IsoGameCharacter gameCharacter)voidpathToLocation(int int1, int int2, int int3)voidpathToLocationF(float float1, float float2, float float3)voidpathToNearest(gnu.trove.list.array.TFloatArrayList tFloatArrayList)voidpathToNearestTable(KahluaTable kahluaTable)voidpathToSound(int int1, int int2, int int3)voidpathToVehicleAdjacent(BaseVehicle baseVehicle)voidpathToVehicleArea(BaseVehicle baseVehicle, java.lang.String string)voidpathToVehicleSeat(BaseVehicle baseVehicle, int int1)voidrender()voidreset()voidsetData(float float1, float float2, float float3)booleanshouldGetUpFromCrawl()voidSucceeded(PolygonalMap2.Path path, Mover mover)PathFindBehavior2.BehaviorResultupdate()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
pathNextIsSet
public boolean pathNextIsSet -
pathNextX
public float pathNextX -
pathNextY
public float pathNextY -
Listeners
public java.util.ArrayList Listeners -
NPCData
-
bStopping
public boolean bStopping -
walkingOnTheSpot
-
-
Constructor Details
-
PathFindBehavior2
-
-
Method Details
-
isGoalNone
public boolean isGoalNone() -
isGoalCharacter
public boolean isGoalCharacter() -
isGoalLocation
public boolean isGoalLocation() -
isGoalSound
public boolean isGoalSound() -
isGoalVehicleAdjacent
public boolean isGoalVehicleAdjacent() -
isGoalVehicleArea
public boolean isGoalVehicleArea() -
isGoalVehicleSeat
public boolean isGoalVehicleSeat() -
reset
public void reset() -
pathToCharacter
-
pathToLocation
public void pathToLocation(int int1, int int2, int int3) -
pathToLocationF
public void pathToLocationF(float float1, float float2, float float3) -
pathToSound
public void pathToSound(int int1, int int2, int int3) -
pathToNearest
public void pathToNearest(gnu.trove.list.array.TFloatArrayList tFloatArrayList) -
pathToNearestTable
-
pathToVehicleAdjacent
-
pathToVehicleArea
-
pathToVehicleSeat
-
cancel
public void cancel() -
getIsCancelled
public boolean getIsCancelled() -
setData
public void setData(float float1, float float2, float float3) -
getTargetX
public float getTargetX() -
getTargetY
public float getTargetY() -
getTargetZ
public float getTargetZ() -
getPathLength
public float getPathLength() -
getTargetChar
-
isTargetLocation
public boolean isTargetLocation(float float1, float float2, float float3) -
update
-
moveToPoint
public void moveToPoint(float float1, float float2, float float3) -
moveToDir
-
shouldGetUpFromCrawl
public boolean shouldGetUpFromCrawl() -
isStrafing
public boolean isStrafing() -
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
-
isMovingUsingPathFind
public boolean isMovingUsingPathFind()
-