Package mindustry.ai
Class Pathfinder.PositionTarget
java.lang.Object
mindustry.ai.Pathfinder.Flowfield
mindustry.ai.Pathfinder.PositionTarget
- Enclosing class:
- Pathfinder
-
Field Summary
FieldsFields inherited from class mindustry.ai.Pathfinder.Flowfield
completeWeights, cost, dirty, hasComplete, height, refreshRate, resolution, searches, team, weights, width
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
getPositions
(arc.struct.IntSeq out) Gets targets to pathfind towards.Methods inherited from class mindustry.ai.Pathfinder.Flowfield
getCost, getNextTile, getNextTile, hasCompleteWeights, hasTargets, needsRefresh, passable, updateTargetPositions
-
Field Details
-
position
public final arc.math.geom.Position position
-
-
Constructor Details
-
PositionTarget
public PositionTarget(arc.math.geom.Position position)
-
-
Method Details
-
getPositions
public void getPositions(arc.struct.IntSeq out) Description copied from class:Pathfinder.Flowfield
Gets targets to pathfind towards. This must run on the main thread.- Specified by:
getPositions
in classPathfinder.Flowfield
-