Basics

Guides

API Reference

Menu

Basics

Guides

API Reference

class: DungeonConfig

[13:7] extends: FxObj

Wraps FXGL's DungeonConfig record (com.almasb.fxgl.pathfinding.dungeon.DungeonConfig), the tunables for DungeonGrid generation. Holds the random source, the number of rooms, and the min/max room dimensions.

Methods

  • DungeonConfig (object RandomAjo = null, int NumRooms = 6, int MinRoomWidth = 4, int MaxRoomWidth = 9, int MinRoomHeight = 4, int MaxRoomHeight = 9)

    Creates a new DungeonConfig.

    • @p RandomAjo is a java.util.Random AJO.
    • @p NumRooms is the room count to generate.
    • @p MinRoomWidth, MaxRoomWidth, MinRoomHeight, MaxRoomHeight are room size bounds (each at least 2).
  • adopt (object Ajo)

    Wraps an existing DungeonConfig AussomJavaObject.

  • numRooms ()

  • minRoomWidth ()

  • maxRoomWidth ()

  • minRoomHeight ()

  • maxRoomHeight ()

  • random ()