UI > Systems > Board Path System

Manages the rexBoard pathfinder and path display for a moveable entity. Owns step label rendering directly on TerrainObjects — no diff, labels are cleared and rewritten from scratch on every path update.

activate

Activates the pathfinder for the given entity with the available move points. If the same entity is already active, only updates the distance. Otherwise destroys any existing pathfinder and creates a new one anchored to the entity's board object.

deactivate

Deactivates and destroys the current pathfinder, clearing any displayed path.

isActive

Returns true if a pathfinder is currently active.

update

Called on tile hover. Updates the ghost and path display based on whether the hovered tile is occupied or reachable. No-ops if no pathfinder is active.

setMoving

Marks the path as in motion so pointer events are suppressed during move animation.

#showPath

Highlights each tile in the path and sets step number labels. Clears all previous labels before rewriting from scratch so step numbers are always correct.

clear

Clears all MOVE_ENTITY highlights and step labels if a pathfinder is active.

#clearLabels

Clears step labels from all currently labeled tiles.




© Gamesanova 2026