Class CombatMove.StatsChange
java.lang.Object
com.csse3200.game.components.combat.move.CombatMove.StatsChange
- Enclosing class:
CombatMove
Represents changes to combat stats resulting from a move.
-
Constructor Summary
ConstructorsConstructorDescriptionStatsChange
(int healthChange, int hungerChange) Constructor to initialize the health and hunger changes. -
Method Summary
Modifier and TypeMethodDescriptionint
Gets the change in health.int
Gets the change in hunger.
-
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.
-