Class StationAcceptableItemsGetter
java.lang.Object
com.csse3200.game.components.station.loader.StationAcceptableItemsGetter
StationAcceptableItems is a class used to both load and retrieve items from
recipie.json to determine if an item is allowed within a station or not.
This class contains static variables so the items will only need to be loaded
once and the class tracks this.
When asking for the accepted items this class will return a hashset of the
items as when creating the collection of items this is the easier way to
do it.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAcceptableItems
(String type) Function to read the acceptable items file and calculate acceptable items using that
-
Constructor Details
-
StationAcceptableItemsGetter
public StationAcceptableItemsGetter()
-
-
Method Details
-
getAcceptableItems
Function to read the acceptable items file and calculate acceptable items using that
-