Package com.bomber7.core.screens
Class KeyBindingScreen
java.lang.Object
com.badlogic.gdx.InputAdapter
com.badlogic.gdx.scenes.scene2d.Stage
com.bomber7.core.screens.BomberScreen
com.bomber7.core.screens.KeyBindingScreen
- All Implemented Interfaces:
com.badlogic.gdx.InputProcessor
,com.badlogic.gdx.Screen
,com.badlogic.gdx.utils.Disposable
,MVCComponent
A screen where a player can bind its input controls.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.badlogic.gdx.scenes.scene2d.Stage
com.badlogic.gdx.scenes.scene2d.Stage.TouchFocus
-
Field Summary
Fields inherited from class com.bomber7.core.screens.BomberScreen
game, resources
-
Constructor Summary
ConstructorsConstructorDescriptionKeyBindingScreen
(com.badlogic.gdx.Game game, int playerIndex) Constructs a new KeyBindingScreen associated with the given game. -
Method Summary
Methods inherited from class com.bomber7.core.screens.BomberScreen
dispose, hide, pause, render, resize, resume
Methods inherited from class com.badlogic.gdx.scenes.scene2d.Stage
act, act, actorRemoved, addAction, addActor, addCaptureListener, addListener, addTouchFocus, calculateScissors, cancelTouchFocus, cancelTouchFocus, cancelTouchFocusExcept, clear, draw, getActionsRequestRendering, getActors, getBatch, getCamera, getDebugColor, getHeight, getKeyboardFocus, getRoot, getScrollFocus, getViewport, getWidth, hit, isDebugAll, isInsideViewport, keyDown, keyTyped, keyUp, mouseMoved, removeCaptureListener, removeListener, removeTouchFocus, screenToStageCoordinates, scrolled, setActionsRequestRendering, setDebugAll, setDebugInvisible, setDebugParentUnderMouse, setDebugTableUnderMouse, setDebugTableUnderMouse, setDebugUnderMouse, setKeyboardFocus, setRoot, setScrollFocus, setViewport, stageToScreenCoordinates, toScreenCoordinates, touchCancelled, touchDown, touchDragged, touchUp, unfocus, unfocusAll
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.badlogic.gdx.InputProcessor
keyDown, keyTyped, keyUp, mouseMoved, scrolled, touchCancelled, touchDown, touchDragged, touchUp
-
Constructor Details
-
KeyBindingScreen
public KeyBindingScreen(com.badlogic.gdx.Game game, int playerIndex) Constructs a new KeyBindingScreen associated with the given game.- Parameters:
game
- the Game instance this screen belongs toplayerIndex
- the index of the player this screen is supposed to modify
-
-
Method Details
-
initView
public void initView()Description copied from interface:MVCComponent
The method where all the view components should be instantiated and placed.- Specified by:
initView
in interfaceMVCComponent
-
initController
public void initController()Description copied from interface:MVCComponent
The method where all the controller logic should be created (such as binding buttons, etc...).- Specified by:
initController
in interfaceMVCComponent
-
getScreenType
Description copied from class:BomberScreen
Returns the type of this screen. Used in ScreenManager to avoid multiple stacks.- Specified by:
getScreenType
in classBomberScreen
- Returns:
- the screenType of the screen.
-
show
public void show()- Specified by:
show
in interfacecom.badlogic.gdx.Screen
- Overrides:
show
in classBomberScreen
-