Class MinimapDrawer

java.lang.Object
com.mg105.user_interface.MinimapDrawer
All Implemented Interfaces:
Toggleable

public class MinimapDrawer extends Object implements Toggleable
Draw the Minimap.
  • Constructor Details

    • MinimapDrawer

      public MinimapDrawer(@NotNull @NotNull MinimapInterpreterInterface interpreter)
      Create a new MinimapDrawer.
      Parameters:
      interpreter - the MinimapInterpreter that will process room change data.
  • Method Details

    • getScene

      @NotNull public @NotNull javafx.scene.Scene getScene()
      Get the minimap scene.
      Specified by:
      getScene in interface Toggleable
      Returns:
      the minimap scene.
    • toggle

      public void toggle(boolean isVisible)
      Toggle the minimap.
      Specified by:
      toggle in interface Toggleable
      Parameters:
      isVisible - true if the Toggleable is now visible, false otherwise. If false the Toggleable is expected to do nothing on ANY user inputs.