Package cs.eng1.piazzapanic.food
Class CustomerManager
- java.lang.Object
-
- cs.eng1.piazzapanic.food.CustomerManager
-
public class CustomerManager extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description CustomerManager(UIOverlay overlay)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addRecipeStation(RecipeStation station)
boolean
checkRecipe(Recipe recipe)
Check to see if the recipe matches the currently requested order.void
init(FoodTextureManager textureManager)
Reset the scenario to the default scenario.void
nextRecipe()
Complete the current order nad move on to the next one.
-
-
-
Constructor Detail
-
CustomerManager
public CustomerManager(UIOverlay overlay)
-
-
Method Detail
-
init
public void init(FoodTextureManager textureManager)
Reset the scenario to the default scenario.- Parameters:
textureManager
- The manager of food textures that can be passed to the recipes
-
checkRecipe
public boolean checkRecipe(Recipe recipe)
Check to see if the recipe matches the currently requested order.- Parameters:
recipe
- The recipe to check against the current order.- Returns:
- a boolean signifying if the recipe is correct.
-
nextRecipe
public void nextRecipe()
Complete the current order nad move on to the next one. Then update the UI. If all the recipes are completed, then show the winning UI.
-
addRecipeStation
public void addRecipeStation(RecipeStation station)
-
-