Class PartySaver

java.lang.Object
com.mg105.use_cases.save.PartySaver
All Implemented Interfaces:
Save

public class PartySaver extends Object implements Save
This classes only job is to save data about the party in some sort of "database"

Most likely this class will be used as composition in other use_case classes

  • Constructor Details

    • PartySaver

      public PartySaver(@NotNull @NotNull GameState state, @NotNull @NotNull PartyDataInterface partyAccess)
      Creates a new instance of party saver
      Parameters:
      state - the current state of the game
      partyAccess - an object that represents how to access and edit party member information
  • Method Details

    • save

      public void save()
      Save the current stats of the party members to a "database"
      Specified by:
      save in interface Save