Class PartyDataAccess

java.lang.Object
com.mg105.data_control.access.PartyDataAccess
All Implemented Interfaces:
PartyDataInterface

public class PartyDataAccess extends Object implements PartyDataInterface
PartyDataAccess implements the data access layer.
  • Constructor Details

    • PartyDataAccess

      public PartyDataAccess(MoveDataAccess moveDataAccess)
      Creates a new instance of PartyDataAccess
      Parameters:
      moveDataAccess - an object that can access data about usable moves
  • Method Details

    • changeCharacterStat

      public void changeCharacterStat(@NotNull @NotNull String name, @NotNull @NotNull String stat, int value)
      Updates the given stat of the given party member to the value provided

      Precondition(s): name is the name of some party member and stat is the name of a valid stat

      Specified by:
      changeCharacterStat in interface PartyDataInterface
      Parameters:
      name - name of the character to change the stat of
      stat - the name of the stat to change
      value - the value to change that stat to
    • getPartyBattleDetails

      @NotNull public @NotNull BattleCharacterDetails[] getPartyBattleDetails()
      Returns an array of objects that each represent the battle attributes of a single party member
      Specified by:
      getPartyBattleDetails in interface PartyDataInterface
      Returns:
      an array of objects that each represent the battle attributes of a single party member
      See Also: