Class GameplayScreen
- java.lang.Object
-
- com.bombinggames.wurfelengine.core.WEScreen
-
- com.bombinggames.wurfelengine.core.GameplayScreen
-
public class GameplayScreen extends WEScreen
The GameplayScreen State. This is state where the Wurfel Engine magic happens. A controller and view is needed.
-
-
Constructor Summary
Constructors Constructor Description GameplayScreen(Controller controller, GameView view)Create the gameplay state.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddispose()ControllergetController()EditorViewgetEditorView()lazy initGameViewgetView()Get the current active view.voidhide()voidpause()voidrenderImpl(float delta)Main method which get's called every frame.voidresize(int width, int height)voidresume()voidsetController(Controller controller)voidsetView(GameView view)Set the currently used active view.voidshow()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from class com.bombinggames.wurfelengine.core.WEScreen
addButton, enterSelection, getButtonAmount, getSelection, render, select
-
-
-
-
Constructor Detail
-
GameplayScreen
public GameplayScreen(Controller controller, GameView view)
Create the gameplay state. This shows the loading screen.- Parameters:
controller- The controller of this screen.view- The user view of this screen.
-
-
Method Detail
-
getView
public GameView getView()
Get the current active view.- Returns:
-
getController
public Controller getController()
- Returns:
-
setView
public void setView(GameView view)
Set the currently used active view.- Parameters:
view-
-
setController
public void setController(Controller controller)
- Parameters:
controller-
-
renderImpl
public void renderImpl(float delta)
Description copied from class:WEScreenMain method which get's called every frame. Should be split up in data managment and data displaying.- Specified by:
renderImplin classWEScreen- Parameters:
delta- time in ms
-
resize
public void resize(int width, int height)
-
show
public void show()
-
hide
public void hide()
-
pause
public void pause()
-
resume
public void resume()
-
dispose
public void dispose()
-
getEditorView
public EditorView getEditorView()
lazy init- Returns:
-
-