Class StationBinComponent
java.lang.Object
com.csse3200.game.components.Component
com.csse3200.game.components.station.StationBinComponent
StationBinComponent.java
StationBinComponent throughs away an item
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
create()
On creation a listener for Submit Meal will be added to the station.void
disposeItem
(ItemComponent item) Function which calls to identify the current ticket info, as well as the item in the inventory Calls another function which grades the submissionvoid
handleInteraction
(InventoryComponent playerInventoryComponent, InventoryDisplay inventoryDisplay, String type) Handles any interaction with station, using current state of player and station inventory to determine intended interactionMethods inherited from class com.csse3200.game.components.Component
dispose, earlyUpdate, getEntity, setEnabled, setEntity, toString, triggerEarlyUpdate, triggerUpdate, update
-
Constructor Details
-
StationBinComponent
public StationBinComponent()
-
-
Method Details
-
create
public void create()On creation a listener for Submit Meal will be added to the station. -
handleInteraction
public void handleInteraction(InventoryComponent playerInventoryComponent, InventoryDisplay inventoryDisplay, String type) Handles any interaction with station, using current state of player and station inventory to determine intended interaction- Parameters:
playerInventoryComponent
- reference to player inventory componentinventoryDisplay
- reference to individual inventory displaytype
- the type of interaction attempt
-
disposeItem
Function which calls to identify the current ticket info, as well as the item in the inventory Calls another function which grades the submission- Parameters:
item
- reference to the item being submitted by the user
-