Class ItemFactory
java.lang.Object
com.csse3200.game.entities.factories.ItemFactory
-
Method Summary
Modifier and TypeMethodDescriptionstatic EntitycreateAcai(String chopLevel) Create an Açaí item.static EntitycreateAcaiBowl(List<IngredientComponent> ingredients) Create an Açaí bowl meal item.static EntitycreateBanana(String chopLevel) Create a banana item.static EntitycreateBananaSplit(List<IngredientComponent> ingredients) Create a banana split meal item.static EntitycreateBaseItem(String itemName) Creates the specified base item if valid.static EntitycreateBeef(String cookedLevel) Create a beef item.static EntitycreateChocolate(String chopLevel) Create a chocolate item.static EntitycreateCucumber(String chopLevel) Create a cucumber item.static EntitycreateFish(String cookedLevel) Create a fish item.static EntitycreateFruitSalad(List<IngredientComponent> ingredients) Create a fruit salad meal item.static EntitycreateLettuce(String chopLevel) Create a lettuce item.static EntitycreateMeal(String recipeName, List<IngredientComponent> ingredients) Creates the specified meal item with the given ingredients if valid.static EntityCreate a plate item.static EntitycreateSalad(List<IngredientComponent> ingredients) Create a salad meal item.static EntitycreateSteakMeal(List<IngredientComponent> ingredients) Create a steak meal item.static EntitycreateStrawberry(String chopLevel) Create a strawberry item.static Entitystatic EntitycreateTomato(String chopLevel) Create a tomato item.
-
Method Details
-
createTemplateItem
-
createFish
Create a fish item.- Parameters:
cookedLevel- - The level the fish is cooked at, can be "raw", "cooked" or "burnt".- Returns:
- - A fish entity.
-
createBeef
Create a beef item.- Parameters:
cookedLevel- - The level the beef is cooked at, can be "raw", "cooked" or "burnt".- Returns:
- - A beef entity.
-
createBanana
Create a banana item.- Parameters:
chopLevel- - The level the banana is chopped at, can be "raw", "chopped".- Returns:
- - A banana entity.
-
createCucumber
Create a cucumber item.- Parameters:
chopLevel- - The level the cucumber is chopped at, can be "raw", "chopped".- Returns:
- - A cucumber entity.
-
createTomato
Create a tomato item.- Parameters:
chopLevel- - The level the tomato is chopped at, can be "raw", "chopped".- Returns:
- - A tomato entity.
-
createStrawberry
Create a strawberry item.- Parameters:
chopLevel- - The level the strawberry is chopped at, can be "raw", "chopped".- Returns:
- - A strawberry entity.
-
createLettuce
Create a lettuce item.- Parameters:
chopLevel- - The level the lettuce is chopped at, can be "raw", "chopped".- Returns:
- - A lettuce entity.
-
createChocolate
Create a chocolate item.- Parameters:
chopLevel- - The level the chocolate is chopped at, can be "raw", "chopped".- Returns:
- - A chocolate entity.
-
createAcai
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
Create a fruit salad meal item.- Returns:
- - A fruitSalad entity.
-
createAcaiBowl
Create an Açaí bowl meal item.- Returns:
- - An Açaí bowl entity.
-
createSalad
Create a salad meal item.- Returns:
- - An salad entity.
-
createSteakMeal
Create a steak meal item.- Returns:
- - A steak meal entity.
-
createBananaSplit
Create a banana split meal item.- Returns:
- - A banana split entity.
-
createBaseItem
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
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
Create a plate item.- Returns:
- - A Plate item entity.
-