Package com.csse3200.game.components
Class ItemPickupComponent
java.lang.Object
com.csse3200.game.components.Component
com.csse3200.game.components.ItemPickupComponent
A component responsible for handling item pickups in the game.
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionItemPickupComponent(short targetLayer) Constructs an ItemPickupComponent with the specified target layer for item collisions. -
Method Summary
Modifier and TypeMethodDescriptionvoidcreate()Initializes the ItemPickupComponent and sets up collision event listeners for item pickups.Methods inherited from class com.csse3200.game.components.Component
dispose, earlyUpdate, getEntity, setEnabled, setEntity, toString, triggerEarlyUpdate, triggerUpdate, update
-
Constructor Details
-
ItemPickupComponent
public ItemPickupComponent(short targetLayer) Constructs an ItemPickupComponent with the specified target layer for item collisions.- Parameters:
targetLayer- The layer to target for item collisions.
-
-
Method Details