Class: SubmarineDebug

SubmarineDebug(simulator)

SubmarineDebug class is responsible for setting up and managing the debugging GUI for submarines in the simulator. It allows users to switch between submarines and adjust their attributes and controls in real-time.

Constructor

new SubmarineDebug(simulator)

Constructor for the SubmarineDebug class. Sets up submarine related debug controls.
Parameters:
Name Type Description
simulator Simulator The simulator instance.
Source:

Methods

initDebugGUI()

Initializes the debug GUI with submarine attributes and controls.
Source:

initSelectSubmarineControl()

Initializes the GUI control for selecting the submarine type. Adds a dropdown menu to the debug GUI allowing users to switch between different submarine types.
Source: