Basics
Guides
API Reference
Basics
Guides
API Reference
[15:7] extends: Component
Wraps FXGL's AStarMoveComponent (com.almasb.fxgl.pathfinding.astar.AStarMoveComponent), the high-level mover that consumes an AStarPathfinder + a TraversableGrid and walks the entity to the target cell. Requires a CellMoveComponent on the same entity.
AStarMoveComponent (object Source = null)
Creates a new AStarMoveComponent over the given grid. Pass either an AStarGrid (or TraversableGrid) wrapper, or a pre-built AStarPathfinder wrapper.
Source is the grid or pathfinder wrapper.adopt (object Ajo)
Wraps an existing AStarMoveComponent AussomJavaObject.
isMoving ()
isAtDestination ()
isPathEmpty ()
getGrid ()
Returns the underlying TraversableGrid AJO.
getCurrentCell ()
Returns the current cell as an Optional AJO.
atDestinationProperty ()
Returns the ReadOnlyBooleanProperty for at-destination signal.
moveToCell (int X, int Y)
Moves to cell (X, Y) using A* pathfinding.
moveToCellFromTo (int StartX, int StartY, int TargetX, int TargetY)
Variant with explicit start coords.
moveToRightCell ()
moveToLeftCell ()
moveToUpCell ()
moveToDownCell ()
moveToRandomCell ()
stopMovement ()
stopMovementAt (int X, int Y)

Aussom
Write once. Embed everywhere.
Copyright 2026 Austin Lehman. All rights reserved.