Class CombatMove.StatsChange

java.lang.Object
com.csse3200.game.components.combat.move.CombatMove.StatsChange
Enclosing class:
CombatMove

public static class CombatMove.StatsChange extends Object
Represents changes to combat stats resulting from a move.
  • Constructor Details

    • StatsChange

      public StatsChange(int healthChange, int hungerChange)
      Constructor to initialize the health and hunger changes.
      Parameters:
      healthChange - the change in health resulting from the move.
      hungerChange - the change in hunger resulting from the move.
  • Method Details

    • getHealthChange

      public int getHealthChange()
      Gets the change in health.
      Returns:
      the health change.
    • getHungerChange

      public int getHungerChange()
      Gets the change in hunger.
      Returns:
      the hunger change.