Package com.mg105.user_interface
Class MinimapDrawer
java.lang.Object
com.mg105.user_interface.MinimapDrawer
- All Implemented Interfaces:
Toggleable
Draw the Minimap.
-
Constructor Summary
ConstructorsConstructorDescriptionMinimapDrawer(@NotNull MinimapInterpreterInterface interpreter) Create a new MinimapDrawer. -
Method Summary
-
Constructor Details
-
MinimapDrawer
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:
getScenein interfaceToggleable- Returns:
- the minimap scene.
-
toggle
public void toggle(boolean isVisible) Toggle the minimap.- Specified by:
togglein interfaceToggleable- Parameters:
isVisible- true if the Toggleable is now visible, false otherwise. If false the Toggleable is expected to do nothing on ANY user inputs.
-