public Modifier.ModType[] GetModifiers()
 {
     Modifier.ModType[] array = new Modifier.ModType[3];
     array[0] = cut.Type();
     array[1] = temp.Type();
     array[2] = cook.Type();
     return(array);
 }
    /// <summary>
    /// Check to see if the food has a specific modifier
    /// </summary>
    /// <param name="type">The modifier to check for</param>
    /// <returns>True on having the modifier, false on not</returns>
    public bool HasModifier(Modifier.ModType type)
    {
        if ((int)type != 0)
        {
            if ((int)type < 4)
            {
                return(cut.Type() == type);
            }
            else if ((int)type < 7)
            {
                return(temp.Type() == type);
            }
            else
            {
                return(cook.Type() == type);
            }
        }

        return(true);
    }
 /// <summary>
 /// Attempts to add a modifier to the food item
 /// </summary>
 /// <param name="type">The modifier type to be added</param>
 public void AddModifier(Modifier.ModType type)
 {
     // We are making an assumption.
     // Only when you want to remove a temperature modifier would you pass a type of None
     if ((int)type == 0)
     {
         temp = new Modifier(type);
     }
     // This means the modifier is a cut type modifier
     else if ((int)type < 4)
     {
         if ((int)cut.Type() < (int)type)
         {
             cut = new Modifier(type);
         }
     }
     // This means the modifier is a temperature modifier
     else if ((int)type < 7)
     {
         temp = new Modifier(type);
     }
     // This means the modifier is cooked
     else
     {
         // If the food isn't cooked yet make it cooked
         if (cook.Type() == Modifier.ModType.None)
         {
             cook = new Modifier(type);
         }
         // Else burn the food
         else
         {
             cook = new Modifier(Modifier.ModType.Burnt);
         }
     }
 }