Package com.dragonboat.game
Class MenuScreen
- java.lang.Object
-
- com.dragonboat.game.MenuScreen
-
- All Implemented Interfaces:
com.badlogic.gdx.Screen
public class MenuScreen extends java.lang.Object implements com.badlogic.gdx.ScreenScreen class for the Menu Screen. Allows the user to select a Boat, and shows the controls of the game. Once the user clicks within set boundaries, the game starts within GameScreen.- See Also:
GameScreen,Screen
-
-
Constructor Summary
Constructors Constructor Description MenuScreen(DragonBoatGame Game)Creates an Input Processor to listen for a mouse click within set boundaries.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddispose()Disposes of the screen when it is no longer needed.voidhide()voidpause()voidrender(float delta)Rendering function for the menu screen.voidresize(int width, int height)voidresume()voidshow()
-
-
-
Constructor Detail
-
MenuScreen
public MenuScreen(DragonBoatGame Game)
Creates an Input Processor to listen for a mouse click within set boundaries.- Parameters:
Game- represents the initial state of DragonBoatGame.- See Also:
InputProcessor
-
-
Method Detail
-
render
public void render(float delta)
Rendering function for the menu screen.- Specified by:
renderin interfacecom.badlogic.gdx.Screen
-
resize
public void resize(int width, int height)- Specified by:
resizein interfacecom.badlogic.gdx.Screen
-
pause
public void pause()
- Specified by:
pausein interfacecom.badlogic.gdx.Screen
-
resume
public void resume()
- Specified by:
resumein interfacecom.badlogic.gdx.Screen
-
hide
public void hide()
- Specified by:
hidein interfacecom.badlogic.gdx.Screen
-
show
public void show()
- Specified by:
showin interfacecom.badlogic.gdx.Screen
-
dispose
public void dispose()
Disposes of the screen when it is no longer needed.- Specified by:
disposein interfacecom.badlogic.gdx.Screen
-
-