Package com.mg105.use_cases.save
Class PartySaver
java.lang.Object
com.mg105.use_cases.save.PartySaver
- All Implemented Interfaces:
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 Summary
ConstructorDescriptionPartySaver
(@NotNull GameState state, @NotNull PartyDataInterface partyAccess) Creates a new instance of party saver -
Method Summary
Modifier and TypeMethodDescriptionvoid
save()
Save the current stats of the party members to a "database"
-
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 gamepartyAccess
- an object that represents how to access and edit party member information
-
-
Method Details