Class ItemFactory

java.lang.Object
com.csse3200.game.entities.factories.ItemFactory

public class ItemFactory extends Object
  • Method Details

    • createTemplateItem

      public static Entity createTemplateItem()
    • createFish

      public static Entity createFish(String cookedLevel)
      Create a fish item.
      Parameters:
      cookedLevel - - The level the fish is cooked at, can be "raw", "cooked" or "burnt".
      Returns:
      - A fish entity.
    • createBeef

      public static Entity createBeef(String cookedLevel)
      Create a beef item.
      Parameters:
      cookedLevel - - The level the beef is cooked at, can be "raw", "cooked" or "burnt".
      Returns:
      - A beef entity.
    • createBanana

      public static Entity createBanana(String chopLevel)
      Create a banana item.
      Parameters:
      chopLevel - - The level the banana is chopped at, can be "raw", "chopped".
      Returns:
      - A banana entity.
    • createCucumber

      public static Entity createCucumber(String chopLevel)
      Create a cucumber item.
      Parameters:
      chopLevel - - The level the cucumber is chopped at, can be "raw", "chopped".
      Returns:
      - A cucumber entity.
    • createTomato

      public static Entity createTomato(String chopLevel)
      Create a tomato item.
      Parameters:
      chopLevel - - The level the tomato is chopped at, can be "raw", "chopped".
      Returns:
      - A tomato entity.
    • createStrawberry

      public static Entity createStrawberry(String chopLevel)
      Create a strawberry item.
      Parameters:
      chopLevel - - The level the strawberry is chopped at, can be "raw", "chopped".
      Returns:
      - A strawberry entity.
    • createLettuce

      public static Entity createLettuce(String chopLevel)
      Create a lettuce item.
      Parameters:
      chopLevel - - The level the lettuce is chopped at, can be "raw", "chopped".
      Returns:
      - A lettuce entity.
    • createChocolate

      public static Entity createChocolate(String chopLevel)
      Create a chocolate item.
      Parameters:
      chopLevel - - The level the chocolate is chopped at, can be "raw", "chopped".
      Returns:
      - A chocolate entity.
    • createAcai

      public static Entity createAcai(String chopLevel)
      Create an Açaí item.
      Parameters:
      chopLevel - - The level the Açaí is chopped at, can be "raw", "chopped".
      Returns:
      - An Açaí entity.
    • createFruitSalad

      public static Entity createFruitSalad(List<IngredientComponent> ingredients)
      Create a fruit salad meal item.
      Returns:
      - A fruitSalad entity.
    • createAcaiBowl

      public static Entity createAcaiBowl(List<IngredientComponent> ingredients)
      Create an Açaí bowl meal item.
      Returns:
      - An Açaí bowl entity.
    • createSalad

      public static Entity createSalad(List<IngredientComponent> ingredients)
      Create a salad meal item.
      Returns:
      - An salad entity.
    • createSteakMeal

      public static Entity createSteakMeal(List<IngredientComponent> ingredients)
      Create a steak meal item.
      Returns:
      - A steak meal entity.
    • createBananaSplit

      public static Entity createBananaSplit(List<IngredientComponent> ingredients)
      Create a banana split meal item.
      Returns:
      - A banana split entity.
    • createBaseItem

      public static Entity createBaseItem(String itemName)
      Creates the specified base item if valid.
      Parameters:
      itemName - - the name of the item to be created.
      Returns:
      - the specified item entity, null if invalid.
    • createMeal

      public static Entity createMeal(String recipeName, List<IngredientComponent> ingredients)
      Creates the specified meal item with the given ingredients if valid.
      Parameters:
      recipeName - - the type of meal to be created.
      ingredients - - the ingredients to be included in the meal.
      Returns:
      - the specified meal entity, null if invalid.
    • createPlate

      public static Entity createPlate()
      Create a plate item.
      Returns:
      - A Plate item entity.