Class MenuScreen

java.lang.Object
fr.formiko.kokcinelo.tools.KScreen
fr.formiko.kokcinelo.view.MenuScreen
All Implemented Interfaces:
com.badlogic.gdx.Screen

public class MenuScreen extends KScreen implements com.badlogic.gdx.Screen
The main menu screen.
Since:
0.2
Version:
2.3
See Also:
  • Screen
  • Constructor Details

    • MenuScreen

      public MenuScreen()
      Main constructor.
  • Method Details

    • getController

      public Controller getController()
    • getStage

      public com.badlogic.gdx.scenes.scene2d.Stage getStage()
    • addProcessor

      public void addProcessor(com.badlogic.gdx.InputProcessor ip)
    • getLevelId

      public String getLevelId()
    • getLevel

      public Level getLevel()
    • render

      public void render(float delta)
      Render the screen.
      Specified by:
      render in interface com.badlogic.gdx.Screen
    • dispose

      public void dispose()
      Dispose all variable that need to be dispose to save memory.
      Specified by:
      dispose in interface com.badlogic.gdx.Screen
      See Also:
      • Game.dispose()
    • show

      public void show()
      Specified by:
      show in interface com.badlogic.gdx.Screen
    • resize

      public void resize(int width, int height)
      Specified by:
      resize in interface com.badlogic.gdx.Screen
    • playButtonClick

      public void playButtonClick()
    • pause

      public void pause()
      Specified by:
      pause in interface com.badlogic.gdx.Screen
    • resume

      public void resume()
      Specified by:
      resume in interface com.badlogic.gdx.Screen
    • hide

      public void hide()
      Specified by:
      hide in interface com.badlogic.gdx.Screen
    • updateSelectedLevel

      public void updateSelectedLevel(String levelId)
      Update the labels that depend of selected level.
      Parameters:
      levelId - the selected level
    • updateOveredLevel

      public void updateOveredLevel(String levelId)
      Update the labels that depend of overed level.
      Parameters:
      levelId - the selected level
    • startPlayingVideo

      public void startPlayingVideo()
    • setLanguage

      public void setLanguage(String languageCode)
      Change language of the game