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

public class MainMenuScreen extends BomberScreen
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

    Constructors
    Constructor
    Description
    MainMenuScreen(com.badlogic.gdx.Game game)
    Constructs a new MainMenuScreen associated with the given game.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the type of this screen.
    void
    The method where all the controller logic should be created (such as binding buttons, etc...).
    void
    The method where all the view components should be instantiated and placed.
    void
     

    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
  • 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: MVCComponent
      The method where all the view components should be instantiated and placed.
    • initController

      public void initController()
      Description copied from interface: MVCComponent
      The method where all the controller logic should be created (such as binding buttons, etc...).
    • show

      public void show()
      Specified by:
      show in interface com.badlogic.gdx.Screen
      Overrides:
      show in class BomberScreen
    • getScreenType

      public ScreenType getScreenType()
      Description copied from class: BomberScreen
      Returns the type of this screen. Used in ScreenManager to avoid multiple stacks.
      Specified by:
      getScreenType in class BomberScreen
      Returns:
      the screenType of the screen.