Class BoolSetting


public final class BoolSetting extends MenuItem
This class defines a menu to modify setting (boolean) of GameConf.
  • Constructor Details

    • BoolSetting

      public BoolSetting(IScene scene, String text, String gameConfVal)
      Create entry.
      Parameters:
      scene - the scene (menu)
      text - the text
      gameConfVal - the name of the value in GameConf
  • Method Details

    • right

      public void right()
      Description copied from class: MenuItem
      This method will be invoked to indicate an RIGHT request.
      Overrides:
      right in class MenuItem
    • left

      public void left()
      Description copied from class: MenuItem
      This method will be invoked to indicate an LEFT request.
      Overrides:
      left in class MenuItem
    • getText

      protected String getText()
      Description copied from class: MenuItem
      Get the text of the item.
      Overrides:
      getText in class MenuItem
      Returns:
      the text
    • renderItem

      protected void renderItem(GameGrid f)
      Description copied from class: MenuItem
      Render the Item itself.
      Overrides:
      renderItem in class MenuItem
      Parameters:
      f - the field
    • hasChildren

      public boolean hasChildren()
      Description copied from class: MenuItem
      Indicates whether has children.
      Specified by:
      hasChildren in class MenuItem
      Returns:
      true if children are available false otherwise