Class SaveLoad

  • public class SaveLoad
    extends java.lang.Object
    • Field Summary

      Modifier and Type Field Description
      private static org.json.JSONObject currentData  
      private static int currentID  
    • Constructor Summary

      Constructor Description
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static org.json.JSONObject get​(java.lang.String key)  
      private static SaveFile getSaveFile​(int id)  
      private static java.lang.String getSaveFilePath​(int id)  
      static void load()  
      static void load​(int id)  
      static void save()  
      static void save​(int id)  
      static void set​(java.lang.String key, java.lang.Object value)  
      static void setCurrentID​(int id)  
      • Methods inherited from class java.lang.Object

        clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • currentID

        private static int currentID
      • currentData

        private static org.json.JSONObject currentData
    • Constructor Detail

      • SaveLoad

        public SaveLoad()
    • Method Detail

      • setCurrentID

        public static void setCurrentID​(int id)
      • save

        public static void save()
      • save

        public static void save​(int id)
      • load

        public static void load()
      • load

        public static void load​(int id)
      • get

        public static org.json.JSONObject get​(java.lang.String key)
      • set

        public static void set​(java.lang.String key,
                               java.lang.Object value)
      • getSaveFilePath

        private static java.lang.String getSaveFilePath​(int id)
      • getSaveFile

        private static SaveFile getSaveFile​(int id)