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 void
dispose()
Controller
getController()
EditorView
getEditorView()
lazy initGameView
getView()
Get the current active view.void
hide()
void
pause()
void
renderImpl(float delta)
Main method which get's called every frame.void
resize(int width, int height)
void
resume()
void
setController(Controller controller)
void
setView(GameView view)
Set the currently used active view.void
show()
-
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:WEScreen
Main method which get's called every frame. Should be split up in data managment and data displaying.- Specified by:
renderImpl
in 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:
-
-