Class BattleCharacterDetails

java.lang.Object
com.mg105.use_cases.outputds.BattleCharacterDetails

public class BattleCharacterDetails extends Object
A struct like class that represents a BattleCharacter
  • 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

      @NotNull public @NotNull String 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

      @NotNull public @NotNull MoveDetails[] getMoveDetails()
      Return an array of objects that each represent a usable move
      Returns:
      first move details
      See Also: