Class PartyCreator

java.lang.Object
com.mg105.use_cases.set_up.state_setter.PartyCreator
All Implemented Interfaces:
StateSetter

public class PartyCreator extends Object implements StateSetter
This class should be called once when the game is first starting. Its only job is to create the party members for the game
  • Constructor Details

    • PartyCreator

      public PartyCreator(@NotNull @NotNull PartyDataInterface partyAccess)
      Creates a new instance of PartyCreator
      Parameters:
      partyAccess - an object that is used to access information of the party from the data storage system
  • Method Details

    • setState

      public void setState(GameState state)
      Sets the correct party with the correct members and attributes in the state based on the values in a "database"
      Specified by:
      setState in interface StateSetter
      Parameters:
      state - the game state to act on.