Basics

Guides

API Reference

Menu

Basics

Guides

API Reference

class: MinimapView

[24:7] extends: Parent, EntityWorldListener

Wraps FXGL's MinimapView (com.almasb.fxgl.dsl.views.MinimapView), a JavaFX Parent node that renders a top-down mini-map of every Entity in a GameWorld. The map auto-updates as entities enter and leave the world. Java inherits javafx.scene.Parent and implements EntityWorldListener; the Aussom wrapper mirrors that with multi-inheritance so callers get the JavaFX Parent / Node surface alongside the EntityWorldListener contract. Add the view to the UI with fxgl.addUINodeAt(view.obj, x, y).

Methods

  • MinimapView (object GameWorldObj = null, double WorldWidth = 0.0, double WorldHeight = 0.0, double Width = 200.0, double Height = 200.0)

    Creates a new MinimapView.

    • @p GameWorldObj is a GameWorld wrapper.
    • @p WorldWidth is the in-game world width in pixels.
    • @p WorldHeight is the in-game world height in pixels.
    • @p Width is the minimap render width in pixels.
    • @p Height is the minimap render height in pixels.
  • adopt (object Ajo)

    Wraps an existing MinimapView AussomJavaObject.

  • getBackgroundColor ()

    Returns the background Color AJO.

  • setBackgroundColor (object ColorObj)

  • getEntityColor ()

    Returns the entity-dot Color AJO.

  • setEntityColor (object ColorObj)

  • getEntitySize ()

  • setEntitySize (double V)

  • getWorldWidth ()

  • setWorldWidth (double V)

  • getWorldHeight ()

  • setWorldHeight (double V)