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.Screen
A WEScreen is aScreen
which 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 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)
-
-
-
Method Detail
-
render
public final void render(float delta)
- Specified by:
render
in 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:
-
-