Class StationAcceptableItemsGetter

java.lang.Object
com.csse3200.game.components.station.loader.StationAcceptableItemsGetter

public class StationAcceptableItemsGetter extends Object
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 Details

    • StationAcceptableItemsGetter

      public StationAcceptableItemsGetter()
  • Method Details

    • getAcceptableItems

      public static ArrayList<String> getAcceptableItems(String type)
      Function to read the acceptable items file and calculate acceptable items using that