Basics

Guides

API Reference

Menu

Basics

Guides

API Reference

class: DungeonGrid

[15:7] extends: TraversableGrid

Wraps FXGL's DungeonGrid (com.almasb.fxgl.pathfinding.dungeon.DungeonGrid), a procedurally generated dungeon expressed as a TraversableGrid. Pass it through AStarPathfinder (or AStarMoveComponent) to walk an entity through the map.

Methods

  • DungeonGrid (int Width = 0, int Height = 0, object ConfigObj = null)

    Creates a new DungeonGrid.

    • @p Width is the grid width in cells.
    • @p Height is the grid height in cells.
    • @p ConfigObj is an optional DungeonConfig wrapper.
  • adopt (object Ajo)

    Wraps an existing DungeonGrid AussomJavaObject.

  • getWidth ()

  • getHeight ()

  • get (int X, int Y)

  • getWalkableCells ()