Class SpecialKangaMove
java.lang.Object
com.csse3200.game.components.combat.move.CombatMove
com.csse3200.game.components.combat.move.SpecialMove
com.csse3200.game.components.combat.move.SpecialKangaMove
The SpecialKangaMove class represents Kanga's special combat move, which inflicts debuffs
on the player and buffs Kanga's own stats. This move is unique to Kanga and impacts both
the target and the attacker.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.csse3200.game.components.combat.move.CombatMove
CombatMove.StatsChange
-
Field Summary
Fields inherited from class com.csse3200.game.components.combat.move.CombatMove
hungerCost, moveName
-
Constructor Summary
ConstructorsConstructorDescriptionSpecialKangaMove
(String moveName, int hungerCost) Constructs the SpecialKangaMove with the given move name and hunger cost. -
Method Summary
Modifier and TypeMethodDescriptionprotected void
applyBuffs
(CombatStatsComponent attackerStats) Buffs Kanga's strength and defense stats after the special move.protected void
applyDebuffs
(CombatStatsComponent targetStats) Applies a random status effect to the target player after the move is executed Also apply debuff which decreases Player's strength by 15 and defense by 10.Methods inherited from class com.csse3200.game.components.combat.move.SpecialMove
execute, execute, execute, execute
Methods inherited from class com.csse3200.game.components.combat.move.CombatMove
getHungerCost, getMoveName
-
Constructor Details
-
SpecialKangaMove
Constructs the SpecialKangaMove with the given move name and hunger cost.- Parameters:
moveName
- the name of the special Kanga move.hungerCost
- the hunger cost required to perform the special Kanga move.
-
-
Method Details
-
applyDebuffs
Applies a random status effect to the target player after the move is executed Also apply debuff which decreases Player's strength by 15 and defense by 10.- Specified by:
applyDebuffs
in classSpecialMove
- Parameters:
targetStats
- combat stats of the target (player) that will be affected by the debuffs.
-
applyBuffs
Buffs Kanga's strength and defense stats after the special move. This method increases Kanga's strength by 15 and defense by 10.- Specified by:
applyBuffs
in classSpecialMove
- Parameters:
attackerStats
- combat stats of Kanga, who is performing the special move.
-