Package com.bomber7.core.screens
Class MainMenuScreen
java.lang.Object
com.badlogic.gdx.InputAdapter
com.badlogic.gdx.scenes.scene2d.Stage
com.bomber7.core.screens.BomberScreen
com.bomber7.core.screens.MainMenuScreen
- All Implemented Interfaces:
com.badlogic.gdx.InputProcessor,com.badlogic.gdx.Screen,com.badlogic.gdx.utils.Disposable,MVCComponent
The main menu of the game.
-
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
ConstructorsConstructorDescriptionMainMenuScreen(com.badlogic.gdx.Game game) Constructs a new MainMenuScreen 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, unfocusAll
-
Constructor Details
-
MainMenuScreen
public MainMenuScreen(com.badlogic.gdx.Game game) Constructs a new MainMenuScreen associated with the given game.- Parameters:
game- the Game instance this screen belongs to
-
-
Method Details
-
initView
public void initView()Description copied from interface:MVCComponentThe method where all the view components should be instantiated and placed. -
initController
public void initController()Description copied from interface:MVCComponentThe method where all the controller logic should be created (such as binding buttons, etc...). -
show
public void show()- Specified by:
showin interfacecom.badlogic.gdx.Screen- Overrides:
showin classBomberScreen
-
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.
-