Class OpenKeyBinds
java.lang.Object
com.deco2800.game.components.Component
com.deco2800.game.components.maingame.OpenKeyBinds
- 
Nested Class Summary
Nested Classes - 
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final int - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptiongetKeyBinds(int page) Gets the KeyBinds associated with the keybinding pause menu page number.intgetKeyPos(int index, int level) intGet the number of keys initialised.voidUnload the keybinding key image assets.Methods inherited from class com.deco2800.game.components.Component
create, dispose, earlyUpdate, getEntity, setEnabled, setEntity, toString, triggerEarlyUpdate, triggerUpdate, update 
- 
Field Details
- 
KEYS_PER_PAGE
public static final int KEYS_PER_PAGE- See Also:
 
 - 
KEY_OFFSET_X
public static final int KEY_OFFSET_X- See Also:
 
 - 
KEY_OFFSET_Y
public static final int KEY_OFFSET_Y- See Also:
 
 
 - 
 - 
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
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
 
 
 -