Package mindustry.ai
Class Pathfinder
java.lang.Object
mindustry.ai.Pathfinder
- All Implemented Interfaces:
Runnable
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
Data for a flow field to some set of destinations.static interface
static class
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
static final int
static final int
static final Seq<Pathfinder.PathCost>
static final int
static final Seq<Prov<Pathfinder.Flowfield>>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
get
(int x, int y) getTargetTile
(Tile tile, Pathfinder.Flowfield path) Gets next tile to travel to.int
Packs a tile into its internal representation.void
run()
Thread implementation.void
updateTile
(Tile tile) Update a tile in the internal pathfinding grid.
-
Field Details
-
fieldCore
public static final int fieldCore- See Also:
-
fieldTypes
-
costGround
public static final int costGround- See Also:
-
costLegs
public static final int costLegs- See Also:
-
costTypes
-
-
Constructor Details
-
Pathfinder
public Pathfinder()
-
-
Method Details
-
packTile
Packs a tile into its internal representation. -
get
public int get(int x, int y) -
updateTile
Update a tile in the internal pathfinding grid. Causes a complete pathfinding recalculation. Main thread only. -
run
public void run()Thread implementation. -
getField
-
getTargetTile
Gets next tile to travel to. Main thread only.
-