Пример #1
0
        private Eat AddItem(string name, int cost, int satiety)
        {
            Eat eat = new Eat();

            eat.Name    = name;
            eat.Cost    = cost;
            eat.Satiety = satiety;
            return(eat);
        }
Пример #2
0
 public void addItem(Eat e)
 {
     eat.Add(e);
 }