Class OpenKeyBinds

java.lang.Object
com.deco2800.game.components.Component
com.deco2800.game.components.maingame.OpenKeyBinds

public class OpenKeyBinds extends Component
  • Field Details

  • Constructor Details

    • OpenKeyBinds

      public OpenKeyBinds()
  • Method Details

    • getKeyPos

      public int getKeyPos(int index, int level)
    • unloadKeyBindAssets

      public void unloadKeyBindAssets()
      Unload the keybinding key image assets.
    • getKeyBinds

      public OpenKeyBinds.KeyBind[] getKeyBinds(int page)
      Gets the KeyBinds associated with the keybinding pause menu page number. Returns up to a maximum of 8 KeyBind types.
      Parameters:
      page - Page number of the keybinding menu
      Returns:
      KeyBind[] Array of keybindings to display
    • getNumKeys

      public int getNumKeys()
      Get the number of keys initialised.
      Returns:
      int Number of initialised keys