Exemplo n.º 1
0
        public static void TimePass()
        {
            List <Pet> pets = Pet.GetAll();

            foreach (Pet pet in pets)
            {
                int food = pet.GetFood();
                pet.SetFood(food - 10);
                int attention = pet.GetAttention();
                pet.SetAttention(attention - 10);
                int rest = pet.GetRest();
                pet.SetRest(rest - 10);
            }
        }