Class SoundEffectsCheckBoxOption


public class SoundEffectsCheckBoxOption extends CheckBoxOption
A CheckBoxOption that enables/disables sound effects.
  • Constructor Details

    • SoundEffectsCheckBoxOption

      public SoundEffectsCheckBoxOption(@NotNull @NotNull SoundManager soundManager)
      Creates a new instance.
      Parameters:
      soundManager - the sound manager instance to affect
  • Method Details

    • execute

      protected void execute(boolean checked)
      Description copied from class: CheckBoxOption
      Executes the action associated with this check box option. Must be implemented in subclasses.
      Specified by:
      execute in class CheckBoxOption
      Parameters:
      checked - whether the checkbox option is checked
    • isDefaultChecked

      public boolean isDefaultChecked()
      Description copied from class: CheckBoxOption
      Returns the default value of CheckBoxOption.isChecked().
      Specified by:
      isDefaultChecked in class CheckBoxOption
      Returns:
      the default value