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, resumeMethods 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, unfocusAllMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:MVCComponentThe method where all the view components should be instantiated and placed.- Specified by:
initViewin interfaceMVCComponent
-
initController
public void initController()Description copied from interface:MVCComponentThe method where all the controller logic should be created (such as binding buttons, etc...).- Specified by:
initControllerin interfaceMVCComponent
-
getScreenType
Description copied from class:BomberScreenReturns the type of this screen. Used in ScreenManager to avoid multiple stacks.- Specified by:
getScreenTypein classBomberScreen- Returns:
- the screenType of the screen.
-
show
public void show()- Specified by:
showin interfacecom.badlogic.gdx.Screen- Overrides:
showin classBomberScreen
-