Miscellaneous Stations - UQcsse3200/2024-studio-3 GitHub Wiki

This wiki page is to explain miscellaneous stations which don't fit under combining, ingredients or processing station wiki pages.

Fire Extinguisher Handler Component

The component allows for the player to interact with the station. If the player does not have a fire extinguisher, they are given it, and if they are already holding it, they put it back.

The handleFireExtinguisher() function (and the function it calls) are responsible for determining if the player is holding a fire extinguisher and modifying the players inventory to match.

If it is attached, it calls givePutExtinguisher() to return the fire extinguisher to the player. takeExtinguisher() & giveExtinguisher() removes and adds the fireExtinguisher from the player inventory by checking & modifying the item at the given element index. It is assumed that this index is correct and no checks are done on it.

There is also a system where flames are spawned (spawnFlame()) for the extinguisher to be used on. This hasn't seemed to fully be implemented by team 3 so won't be explained further.

Station Bin Component

Interacting with the Station Bin Component with handleInteraction() will remove the currently held item from the players inventory by calling disposeItem().

Dishwasher Component

Dispenses Plates for use in Meal Creation, in a similar way to Ingredient stations. Dishwasher Stations are denoted by the plate on top and allows interactions through the 'E' button to add a PlateComponent to the player's inventory.

Screenshot from 2024-10-17 14-21-09

Screenshot from 2024-10-17 14-21-16