Class Saver

All Implemented Interfaces:

public class Saver extends Object implements Save
This classes only job is to save data about the state of the game in some sort of "database" This class is the Facade class that uses others savers to save info about the game
  • Constructor Details

    • Saver

      public Saver(@NotNull @NotNull Save[] savers)
      Creates a new instance of saver
      savers - a group of object that can be used to save piece of the game state's data
  • Method Details

    • save

      public void save()
      Save the current state of the game to a "database"
      Specified by:
      save in interface Save