Basics

Guides

API Reference

Menu

Basics

Guides

API Reference

class: TraversableGrid

[15:7] extends: Grid

Wraps FXGL's TraversableGrid abstract base (com.almasb.fxgl.pathfinding.astar.TraversableGrid), the parent of AStarGrid, DungeonGrid, and MazeGrid. Cannot be instantiated directly; use one of the concrete grids and adopt the returned AJO when the API hands one back.

Methods

  • TraversableGrid ()

    Empty default constructor; populated by adopt.

  • adopt (object Ajo)

    Wraps an existing TraversableGrid AussomJavaObject.

  • getWidth ()

  • getHeight ()

  • get (int X, int Y)

  • getWalkableCells ()