Class Prefs


  • public class Prefs
    extends java.lang.Object
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  Prefs.Restore
      Static class sued to load data.
      static class  Prefs.Save
      Static class used to save data
      static class  Prefs.SaveDoesNotExist
      Exception thrown if a save file does nto exist
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static com.badlogic.gdx.utils.Json json
      Json object used for serialization
      private static com.badlogic.gdx.Preferences prefs
      The instance of Preferences used to save all data
    • Constructor Summary

      Constructors 
      Constructor Description
      Prefs()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static com.badlogic.gdx.Preferences getPrefs()  
      • Methods inherited from class java.lang.Object

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

      • prefs

        private static final com.badlogic.gdx.Preferences prefs
        The instance of Preferences used to save all data
      • json

        private static final com.badlogic.gdx.utils.Json json
        Json object used for serialization
    • Constructor Detail

      • Prefs

        public Prefs()
    • Method Detail

      • getPrefs

        public static com.badlogic.gdx.Preferences getPrefs()