Class SaveManager


  • public class SaveManager
    extends java.lang.Object
    This class manages saving current progress into text files
    • Method Summary

      Modifier and Type Method Description
      private void saveEvents()
      Saves all TRIGGER, CHEST and DOOR cells with their position and activeness (+ other attributes)
      void saveGame()
      Saves game progress
      private void saveInventory()
      Saves current hero's invemtory
      private void savePerson()
      Saves current hero's position and direction
      • Methods inherited from class java.lang.Object

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

    • Constructor Detail

      • SaveManager

        public SaveManager​(MapManager mapManager)
    • Method Detail

      • saveGame

        public void saveGame()
        Saves game progress
      • savePerson

        private void savePerson()
        Saves current hero's position and direction
      • saveEvents

        private void saveEvents()
        Saves all TRIGGER, CHEST and DOOR cells with their position and activeness (+ other attributes)
      • saveInventory

        private void saveInventory()
        Saves current hero's invemtory