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(String path)
      Saves the current state of the game into a GameState
    • save

      public void save()
    • load

      public void load(String path)
      Load function which based on contents in saveFile.json Makes the game state match saveFile.json
    • load

      public void load()
    • validSaveFile

      public boolean validSaveFile()
      Check to see if there is a valid save file stored if not return false
      Returns:
      true if there exists a valid save file, false otherwise
    • validSaveFile

      public boolean validSaveFile(String path)