Package com.deco2800.game.components
Class TimerComponent
java.lang.Object
com.deco2800.game.components.Component
com.deco2800.game.components.TimerComponent
When this entity touches a valid enemy's hitbox, deal damage to them and
apply a knockback.
Requires CombatStatsComponent, HitboxComponent on this entity.
Damage is only applied if target entity has a CombatStatsComponent. Knockback is only applied if target entity has a PhysicsComponent.
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
update()
Called once per frame of the game, and should be used for most component logic.Methods inherited from class com.deco2800.game.components.Component
create, dispose, earlyUpdate, getEntity, setEnabled, setEntity, toString, triggerEarlyUpdate, triggerUpdate