Basics

Guides

API Reference

Menu

Basics

Guides

API Reference

class: AStarGridView

[15:7] extends: Parent

Wraps FXGL's AStarGridView (com.almasb.fxgl.pathfinding.astar.AStarGridView), a debug JavaFX Parent that draws every cell of an AStarGrid as a red / green rectangle plus the cell-coordinate labels. Add the AJO to the game scene to visualise the pathfinding grid.

Methods

  • AStarGridView (object GridObj = null, int CellWidth = 32, int CellHeight = 32)

    Creates a new grid view.

    • @p GridObj is an AStarGrid wrapper.
    • @p CellWidth is the per-cell pixel width.
    • @p CellHeight is the per-cell pixel height.
  • adopt (object Ajo)

    Wraps an existing AStarGridView AussomJavaObject.