Package com.csse3200.game.services
Class PlanetTravel
java.lang.Object
com.csse3200.game.services.PlanetTravel
Responsible for travel between planets and stored the number of planets remaining
-
Constructor Summary
ConstructorsConstructorDescriptionPlanetTravel(GdxGame game) Constructor to set the current game state for using -
Method Summary
Modifier and TypeMethodDescriptionvoidBegin transitioning to the next planet from the current one.voidTravel from the current planet to the next planet instantly.voidmoveToNextPlanet(Object planet) Move to the next planet and spawn the minigame screenReturn the current planet where player are invoidTravel back to the currently loaded planet.
-
Constructor Details
-
PlanetTravel
Constructor to set the current game state for using
-
-
Method Details
-
beginFullTravel
public void beginFullTravel()Begin transitioning to the next planet from the current one. Displaying all intermediate gameplay in between -
beginInstantTravel
public void beginInstantTravel()Travel from the current planet to the next planet instantly. -
returnToCurrent
public void returnToCurrent()Travel back to the currently loaded planet. -
moveToNextPlanet
Move to the next planet and spawn the minigame screen- Parameters:
planet- - the destination planet
-
returnCurrent
Return the current planet where player are in- Returns:
- current planet
-