Package ruscz.game.gameOfProd.Save
Class SaveManager
- java.lang.Object
-
- ruscz.game.gameOfProd.Save.SaveManager
-
public class SaveManager extends java.lang.ObjectThis class manages saving current progress into text files
-
-
Field Summary
Fields Modifier and Type Field Description private MapManagermapManager
-
Constructor Summary
Constructors Constructor Description SaveManager(MapManager mapManager)
-
Method Summary
Modifier and Type Method Description private voidsaveEvents()Saves all TRIGGER, CHEST and DOOR cells with their position and activeness (+ other attributes)voidsaveGame()Saves game progressprivate voidsaveInventory()Saves current hero's invemtoryprivate voidsavePerson()Saves current hero's position and direction
-
-
-
Field Detail
-
mapManager
private final MapManager mapManager
-
-
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
-
-