Class LoadManager


  • public class LoadManager
    extends java.lang.Object
    This class manages loading all saved data into current game
    • Method Summary

      Modifier and Type Method Description
      void clearSave()
      Clears all save files
      private java.lang.String getValue​(java.lang.String line)  
      static boolean isSaveEmpty()
      Checks if save files are empty (if there is no saved progress)
      private void loadEvents()
      Loads all events(triggers, chests and doors) from file and sets them corresponding attributes
      private void loadInventory()
      Loads hero's inventory from file
      private void loadMaps()
      Loads maps in current chapter
      void loadNewGame()
      Loads new game
      private void loadNpcs()
      Loads all NPCs
      private void loadPerson()
      Loads hero's position from file
      void loadSavedGame()
      Loads new game and aplicates current progress
      • Methods inherited from class java.lang.Object

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

      • LOG

        private static final java.util.logging.Logger LOG
    • Constructor Detail

      • LoadManager

        public LoadManager​(MapManager mapManager)
    • Method Detail

      • isSaveEmpty

        public static boolean isSaveEmpty()
        Checks if save files are empty (if there is no saved progress)
        Returns:
        are save files empty
      • loadNewGame

        public void loadNewGame()
        Loads new game
      • loadSavedGame

        public void loadSavedGame()
        Loads new game and aplicates current progress
      • clearSave

        public void clearSave()
        Clears all save files
      • loadMaps

        private void loadMaps()
        Loads maps in current chapter
      • loadNpcs

        private void loadNpcs()
        Loads all NPCs
      • loadPerson

        private void loadPerson()
        Loads hero's position from file
      • loadEvents

        private void loadEvents()
        Loads all events(triggers, chests and doors) from file and sets them corresponding attributes
      • loadInventory

        private void loadInventory()
        Loads hero's inventory from file
      • getValue

        private java.lang.String getValue​(java.lang.String line)