Class WEScreen
- java.lang.Object
-
- com.bombinggames.wurfelengine.core.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.ScreenA WEScreen is aScreenwhich supports Wurfel Engine features like theConsole.
-
-
Constructor Summary
Constructors Constructor Description WEScreen()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidaddButton(com.badlogic.gdx.scenes.scene2d.Actor button)voidenterSelection()intgetButtonAmount()intgetSelection()voidrender(float delta)abstract voidrenderImpl(float dt)Main method which get's called every frame.voidselect(int i)
-
-
-
Method Detail
-
render
public final void render(float delta)
- Specified by:
renderin interfacecom.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:
-
-