Package com.csse3200.game.components.boss
package com.csse3200.game.components.boss
-
ClassesClassDescriptionAttackProtectionCounterComponentAttackProtectionDisplay (always gray) - listens to "updateHealth" - each health drop: bar -= 1/6 - after 6 hits: wait 2s then restore to full - positioned directly under BossStatusDisplay with the same width visual onlySwitch boss animation by HP ratio (3 stages: idle / phase2 / angry).A component that switches Boss-3's rendering from a static PNGTrigger for the boss's defense phase (one-time).Cocoon Spawner Component - Spawns white cocoons when Boss health drops to 30% Works together with existing BossDefenseComponent for invulnerability Only handles cocoon spawning and tracking, not Boss defense stateAdds a damage reduction component while activated, reduces the "determined damage" by a certain percentage (1 = complete immunity) over a specified duration.Individual Cocoon Component - Handles behavior for individual cocoon entities Cocoons are regular enemies that can be damaged and destroyed normally When destroyed, they notify the Boss defense system via death eventslet the missle down by the y directionSpawns random ground warnings at a fixed cooldown; after a short warning time, a missile is spawned above that position and falls straight down.