Package com.deco2800.game.files
Class SaveGame
java.lang.Object
com.deco2800.game.files.SaveGame
Class that handles all save game mechanics
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic List<Achievement>
loadAchievements
(com.badlogic.gdx.files.FileHandle otherFileHandle) Loads achievements from save filestatic void
Load all game assets from the save game folderstatic void
saveAchievements
(List<Achievement> achievements) Saves achievements to the games saves directory using a custom JSON formatstatic void
Save all game assets to the save game folder
-
Constructor Details
-
SaveGame
public SaveGame()
-
-
Method Details
-
saveAchievements
Saves achievements to the games saves directory using a custom JSON format -
loadAchievements
Loads achievements from save file- Parameters:
otherFileHandle
- optional file handle to read from- Returns:
- list of achievements loaded
-
saveGameState
public static void saveGameState()Save all game assets to the save game folder -
loadGameState
public static void loadGameState()Load all game assets from the save game folder
-