Class CompanionDeathScreenActions
java.lang.Object
com.csse3200.game.components.Component
com.csse3200.game.components.Companion.CompanionDeathScreenActions
This class defines the actions to be taken when the companion character dies in the game.
It handles transitions to different screens upon death and respawn.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic GdxGameThe main game instance used for screen transitions. -
Constructor Summary
ConstructorsConstructorDescriptionConstructs a CompanionDeathScreenActions instance. -
Method Summary
Modifier and TypeMethodDescriptionvoidcreate()Initializes the component and sets up event listeners for exit and respawn events.Methods inherited from class com.csse3200.game.components.Component
dispose, earlyUpdate, getEntity, setEnabled, setEntity, toString, triggerEarlyUpdate, triggerUpdate, update
-
Field Details
-
game
The main game instance used for screen transitions.
-
-
Constructor Details
-
CompanionDeathScreenActions
Constructs a CompanionDeathScreenActions instance.- Parameters:
game- The GdxGame instance to use for screen transitions.
-
-
Method Details