﻿namespace _05.Mordor_s_Cruelty_Plan.Factories
{
    using Foods;

    public class FoodFactory
    {
        public static Food GetFood(string name)
        {
            switch (name.ToLower())
            {
                case "cram":
                    return new Cram();
                case "lembas":
                    return new Lembas();
                case "apple":
                    return new Apple();
                case "melon":
                    return new Melon();
                case "honeycake":
                    return new HoneyCake();
                case "mushrooms":
                    return new Mushrooms();
                default:
                    return new Other();
            }
        }
    }
}
