Class AttackProtectionComponent
java.lang.Object
com.csse3200.game.components.Component
com.csse3200.game.components.boss.AttackProtectionComponent
AttackProtectionCounterComponent
Listens to "updateHealth" from CombatStatsComponent. - Each time health decreases, count one hit. - When hit count reaches limit, start no-damage via DamageReductionComponent.start(1f, seconds).
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
create()
Called when the entity is created and registered.Methods inherited from class com.csse3200.game.components.Component
dispose, earlyUpdate, getEntity, getPrio, setEnabled, setEntity, toString, triggerEarlyUpdate, triggerUpdate, update
-
Constructor Details
-
AttackProtectionComponent
public AttackProtectionComponent() -
AttackProtectionComponent
public AttackProtectionComponent(int limit, float seconds)
-
-
Method Details