Package com.csse3200.game.components
Class DeathOnTrapComponent
java.lang.Object
com.csse3200.game.components.Component
com.csse3200.game.components.DeathOnTrapComponent
Component that handles drone death when touching traps or death zones.
Plays an explosion animation and removes relevant components
instead of disposing the entity directly.
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcreate()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
-
DeathOnTrapComponent
public DeathOnTrapComponent()
-
-
Method Details