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 class
PathFindBehavior2.BehaviorResult
class
PathFindBehavior2.NPCData
static class
PathFindBehavior2.PointOnPath
-
Field Summary
Fields Modifier and Type Field Description boolean
bStopping
java.util.ArrayList
Listeners
PathFindBehavior2.NPCData
NPCData
boolean
pathNextIsSet
float
pathNextX
float
pathNextY
WalkingOnTheSpot
walkingOnTheSpot
-
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)
boolean
getIsCancelled()
float
getPathLength()
IsoGameCharacter
getTargetChar()
float
getTargetX()
float
getTargetY()
float
getTargetZ()
boolean
isGoalCharacter()
boolean
isGoalLocation()
boolean
isGoalNone()
boolean
isGoalSound()
boolean
isGoalVehicleAdjacent()
boolean
isGoalVehicleArea()
boolean
isGoalVehicleSeat()
boolean
isMovingUsingPathFind()
boolean
isStrafing()
boolean
isTargetLocation(float float1, float float2, float float3)
void
moveToDir(IsoMovingObject movingObject, float float1)
void
moveToPoint(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
pathToNearest(gnu.trove.list.array.TFloatArrayList tFloatArrayList)
void
pathToNearestTable(KahluaTable kahluaTable)
void
pathToSound(int int1, int int2, int int3)
void
pathToVehicleAdjacent(BaseVehicle baseVehicle)
void
pathToVehicleArea(BaseVehicle baseVehicle, java.lang.String string)
void
pathToVehicleSeat(BaseVehicle baseVehicle, int int1)
void
render()
void
reset()
void
setData(float float1, float float2, float float3)
boolean
shouldGetUpFromCrawl()
void
Succeeded(PolygonalMap2.Path path, Mover mover)
PathFindBehavior2.BehaviorResult
update()
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:
Succeeded
in interfacePolygonalMap2.IPathfinder
-
Failed
- Specified by:
Failed
in interfacePolygonalMap2.IPathfinder
-
isMovingUsingPathFind
public boolean isMovingUsingPathFind()
-