Package com.csse3200.game.screens
Class SpaceNavigationScreen
java.lang.Object
com.csse3200.game.screens.SpaceNavigationScreen
- All Implemented Interfaces:
com.badlogic.gdx.Screen
Represents the navigation screen for the game, allowing the user to navigate
between various planets and options.
-
Constructor Summary
ConstructorsConstructorDescriptionSpaceNavigationScreen(GdxGame game) Constructs a new SpaceNavigationScreen with a reference to the main game. -
Method Summary
Modifier and TypeMethodDescriptionvoiddispose()Frees up resources used by this screen.voidhide()Method called when this screen is no longer the current screen for the game.voidpause()Method called when the game is paused.voidrender(float delta) Renders the screen.voidresize(int width, int height) Resizes the viewport dimensions based on the given width and height.voidresume()Method called when the game is resumed after pausing.voidshow()Invoked when this screen becomes the current screen.
-
Constructor Details
-
SpaceNavigationScreen
Constructs a new SpaceNavigationScreen with a reference to the main game.- Parameters:
game- The main game instance.
-
-
Method Details
-
show
public void show()Invoked when this screen becomes the current screen.- Specified by:
showin interfacecom.badlogic.gdx.Screen
-
render
public void render(float delta) Renders the screen.- Specified by:
renderin interfacecom.badlogic.gdx.Screen- Parameters:
delta- The time in seconds since the last render.
-
resize
public void resize(int width, int height) Resizes the viewport dimensions based on the given width and height.- Specified by:
resizein interfacecom.badlogic.gdx.Screen- Parameters:
width- The new width.height- The new height.
-
pause
public void pause()Method called when the game is paused. Currently empty to prevent pausing on the space map.- Specified by:
pausein interfacecom.badlogic.gdx.Screen
-
resume
public void resume()Method called when the game is resumed after pausing. Currently empty as there is no pausing on the space map.- Specified by:
resumein interfacecom.badlogic.gdx.Screen
-
hide
public void hide()Method called when this screen is no longer the current screen for the game. Currently left blank to avoid any unwanted behavior.- Specified by:
hidein interfacecom.badlogic.gdx.Screen
-
dispose
public void dispose()Frees up resources used by this screen.- Specified by:
disposein interfacecom.badlogic.gdx.Screen
-