Package com.mg105.use_cases.outputds
Class BattleCharacterDetails
java.lang.Object
com.mg105.use_cases.outputds.BattleCharacterDetails
A struct like class that represents a BattleCharacter
-
Constructor Summary
ConstructorDescriptionBattleCharacterDetails
(@NotNull String name, int maxHp, int dmg, int speed, boolean isOpponent, @NotNull MoveDetails[] moveDetails) Create new BattleCharacterDetails for a BattleCharacter. -
Method Summary
Modifier and TypeMethodDescriptionint
getDmg()
Returns damage statint
getMaxHp()
Returns Max HP stat@NotNull MoveDetails[]
Return an array of objects that each represent a usable move@NotNull String
getName()
Returns name of characterint
getSpeed()
Returns speed statboolean
Returns if this battle character is an opponent
-
Constructor Details
-
BattleCharacterDetails
public BattleCharacterDetails(@NotNull @NotNull String name, int maxHp, int dmg, int speed, boolean isOpponent, @NotNull @NotNull MoveDetails[] moveDetails) Create new BattleCharacterDetails for a BattleCharacter.- Parameters:
name
- the name of the character.maxHp
- the max HP of the character.dmg
- the damage output of the character.speed
- the character's speed.isOpponent
- whether the character is an opponent.moveDetails
- a list of the details for the character's moves.
-
-
Method Details
-
getName
Returns name of character- Returns:
- name of character
-
getDmg
public int getDmg()Returns damage stat- Returns:
- damage stat
-
getMaxHp
public int getMaxHp()Returns Max HP stat- Returns:
- Max HP stat
-
getSpeed
public int getSpeed()Returns speed stat- Returns:
- speed stat
-
isOpponent
public boolean isOpponent()Returns if this battle character is an opponent- Returns:
- false iff this battle character is a party member
-
getMoveDetails
Return an array of objects that each represent a usable move- Returns:
- first move details
- See Also:
-