Basics
Guides
API Reference
Basics
Guides
API Reference
[16:7] extends: Component
Wraps FXGL's RandomAStarMoveComponent (com.almasb.fxgl.dsl.components.RandomAStarMoveComponent), which pseudo-randomly walks the entity over an A* grid using the entity's AStarMoveComponent. Requires an AStarMoveComponent on the same entity.
RandomAStarMoveComponent (int MinDistance = 0, int MaxDistance = 2147483647, double MinDelaySeconds = 1.0, double MaxDelaySeconds = 1.0)
Creates a new RandomAStarMoveComponent.
MinDistance is the minimum cell distance to move (default 0; possible to not move at all).MaxDistance is the maximum cell distance to move (default unlimited).MinDelaySeconds is the minimum delay between moves.MaxDelaySeconds is the maximum delay between moves.adopt (object Ajo)
Wraps an existing RandomAStarMoveComponent AussomJavaObject.
getMinDistance ()
setMinDistance (int V)
getMaxDistance ()
setMaxDistance (int V)
getMinDelay ()
Returns the min-delay Duration AJO.
setMinDelay (double Seconds)
Sets the minimum delay between moves.
Seconds is the delay in seconds.this objectgetMaxDelay ()
Returns the max-delay Duration AJO.
setMaxDelay (double Seconds)
Sets the maximum delay between moves.
Seconds is the delay in seconds.this objectgetCellFilter ()
Returns the cell-filter Predicate AJO. Defaults to an always-true predicate; setCellFilter replaces it.
An AussomJavaObject around a PredicatesetCellFilter (callback Cb)
Sets a Predicate filter over AStarCells. Only cells that pass the predicate are eligible move targets.
Cb is a callback (cell) -> bool.this object
Aussom
Write once. Embed everywhere.
Copyright 2026 Austin Lehman. All rights reserved.