Class WEScreen

  • All Implemented Interfaces:
    com.badlogic.gdx.Screen
    Direct Known Subclasses:
    AbstractMainMenu, GameplayScreen, LoadingScreen


    public abstract class WEScreen
    extends java.lang.Object
    implements com.badlogic.gdx.Screen
    A WEScreen is a Screen which supports Wurfel Engine features like the Console.
    • Constructor Summary

      Constructors 
      Constructor Description
      WEScreen​()  
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      void addButton​(com.badlogic.gdx.scenes.scene2d.Actor button)  
      void enterSelection​()  
      int getButtonAmount​()  
      int getSelection​()  
      void render​(float delta)  
      abstract void renderImpl​(float dt)
      Main method which get's called every frame.
      void select​(int i)  
      • 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.Screen

        dispose, hide, pause, resize, resume, show
    • Constructor Detail

      • WEScreen

        public WEScreen​()
    • Method Detail

      • render

        public final void render​(float delta)
        Specified by:
        render in interface com.badlogic.gdx.Screen
      • renderImpl

        public abstract void renderImpl​(float dt)
        Main method which get's called every frame. Should be split up in data managment and data displaying.
        Parameters:
        dt - time in ms
      • addButton

        public void addButton​(com.badlogic.gdx.scenes.scene2d.Actor button)
        Parameters:
        button -
      • select

        public void select​(int i)
        Parameters:
        i -
      • enterSelection

        public void enterSelection​()
      • getSelection

        public int getSelection​()
        Returns:
      • getButtonAmount

        public int getButtonAmount​()
        Returns: