Class ItemFactory
java.lang.Object
com.csse3200.game.entities.factories.ItemFactory
-
Method Summary
Modifier and TypeMethodDescriptionstatic Entity
createAcai
(String chopLevel) Create an Açaí item.static Entity
createAcaiBowl
(List<IngredientComponent> ingredients) Create an Açaí bowl meal item.static Entity
createBanana
(String chopLevel) Create a banana item.static Entity
createBananaSplit
(List<IngredientComponent> ingredients) Create a banana split meal item.static Entity
createBaseItem
(String itemName) Creates the specified base item if valid.static Entity
createBeef
(String cookedLevel) Create a beef item.static Entity
createChocolate
(String chopLevel) Create a chocolate item.static Entity
createCucumber
(String chopLevel) Create a cucumber item.static Entity
createFish
(String cookedLevel) Create a fish item.static Entity
createFruitSalad
(List<IngredientComponent> ingredients) Create a fruit salad meal item.static Entity
createLettuce
(String chopLevel) Create a lettuce item.static Entity
createMeal
(String recipeName, List<IngredientComponent> ingredients) Creates the specified meal item with the given ingredients if valid.static Entity
Create a plate item.static Entity
createSalad
(List<IngredientComponent> ingredients) Create a salad meal item.static Entity
createSteakMeal
(List<IngredientComponent> ingredients) Create a steak meal item.static Entity
createStrawberry
(String chopLevel) Create a strawberry item.static Entity
static Entity
createTomato
(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.
-