コード例 #1
0
        public void InteractWithAnimal(int interactionSelection)
        {
            if (interactionSelection == 1)
            {
                AnimalInteraction.PetAnimal(SelectAnimalType(), SelectAnimalName());
            }

            if (interactionSelection == 2)
            {
                AnimalInteraction.FeedAnimal(SelectAnimalType(), SelectAnimalName());
            }

            if (interactionSelection == 3)
            {
                AnimalInteraction.ListenToAnimals(SelectAnimalType(), SelectAnimalName());
            }
            if (interactionSelection == 4)
            {
                AnimalInteraction.StareAtAnimal(SelectAnimalType(), SelectAnimalName());
            }
        }
コード例 #2
0
 public void Test()
 {
     AnimalInteraction.PetAnimal(myHorses, "Mitch");
 }