Class 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 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 class WEScreen
        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: