Package com.mg105.data_control.access
Class PartyDataAccess
java.lang.Object
com.mg105.data_control.access.PartyDataAccess
- All Implemented Interfaces:
PartyDataInterface
PartyDataAccess implements the data access layer.
-
Constructor Summary
ConstructorDescriptionPartyDataAccess
(MoveDataAccess moveDataAccess) Creates a new instance of PartyDataAccess -
Method Summary
Modifier and TypeMethodDescriptionvoid
changeCharacterStat
(@NotNull String name, @NotNull String stat, int value) Updates the given stat of the given party member to the value provided@NotNull BattleCharacterDetails[]
Returns an array of objects that each represent the battle attributes of a single party member
-
Constructor Details
-
PartyDataAccess
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 providedPrecondition(s): name is the name of some party member and stat is the name of a valid stat
- Specified by:
changeCharacterStat
in interfacePartyDataInterface
- Parameters:
name
- name of the character to change the stat ofstat
- the name of the stat to changevalue
- the value to change that stat to
-
getPartyBattleDetails
Returns an array of objects that each represent the battle attributes of a single party member- Specified by:
getPartyBattleDetails
in interfacePartyDataInterface
- Returns:
- an array of objects that each represent the battle attributes of a single party member
- See Also:
-