Package com.csse3200.game.services
Class SaveLoadService
java.lang.Object
com.csse3200.game.services.SaveLoadService
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
load()
Loads a gamestate given the file for said gamestatevoid
save()
Saves the current state of the game into a GameState and writes to the path givenvoid
setSaveFile
(String filename)
-
Constructor Details
-
SaveLoadService
public SaveLoadService()
-
-
Method Details
-
save
public void save()Saves the current state of the game into a GameState and writes to the path given -
load
public void load()Loads a gamestate given the file for said gamestate -
getSaveFile
-
getEvents
-
setSaveFile
-