public Accompaniment(string name, Taste foodTaste, float timeToCook, cookingType currentCookingType) { this.name = name; this.foodTaste = foodTaste; this.timeToCook = timeToCook; this.currentCookingMethod = currentCookingMethod; this.typeOfItem = itemType.food; }
void cook(cookingType typeOfCooking, float time) { switch (typeOfCooking) { case cookingType.fried: break; case cookingType.roasting: break; case cookingType.stewing: break; default: break; } }