Class Recipe

  • Direct Known Subclasses:
    Burger, Salad

    public class Recipe
    extends java.lang.Object
    The Recipe class is the parent class of the food classes that dictates what ingredients are needed to make them
    • Constructor Detail

      • Recipe

        public Recipe​(java.lang.String type,
                      FoodTextureManager textureManager)
        The constructor method for the class
        Parameters:
        type - The food object that inherits the class
        textureManager - The controller from which we can get information on what texture each food object should have
    • Method Detail

      • getTexture

        public com.badlogic.gdx.graphics.Texture getTexture()
      • getType

        public java.lang.String getType()
      • getRecipeIngredients

        public java.util.List<java.lang.String> getRecipeIngredients()
        Gets what ingredients are needed to make the food item
        Returns:
        The list of ingredients that are needed