Class SaveLoadService

java.lang.Object
com.csse3200.game.services.SaveLoadService

public class SaveLoadService extends Object
  • 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

      public String getSaveFile()
    • getEvents

      public EventHandler getEvents()
    • setSaveFile

      public void setSaveFile(String filename)