-
Notifications
You must be signed in to change notification settings - Fork 9
Companion Powerup Activation Display
Maxwell Schroder edited this page Oct 19, 2023
·
2 revisions
The CompanionPowerupActivationDisplay
class is responsible for managing the activation of all powerups in the powerup inventory
-
Package:
com.csse3200.game.components.Companion
-
Inherits From:
UIComponent
-
Dependencies:
CompanionPowerupInventoryComponent
,Entity
Various PowerupConfig type variables to represent different types of powerups (e.g., deathPotion, healthPotion, etc.)
Other UI elements like leftButton, rightButton, displayedPowerupImage, and powerupActivationButtonTable.
create(): Called at the start of runtime. Creates the UI component for the powerup activation button and ensures it updates when the companion's powerup inventory is updated.
#addPowerupActivationButton(): Creates the powerup activation button in the center.
Escape Earth Game
Interaction Controller and Interactable Components
Game and Entity Configuration Files
Loading Game Configuration Files