Ejemplo n.º 1
0
        //other constructor where they've got to give me everything about each animal object

        public Animals(String species_name, animalTypes animalType, habitats habitat, Eaters typeOfEater, bool filmed, active whenActive)
        {
            this.species_name = species_name;
            this.animalType   = animalType;
            //this.name = name;
            this.habitat     = habitat;
            this.typeOfEater = typeOfEater;
            this.filmed      = filmed;
            this.whenActive  = whenActive;
        }
Ejemplo n.º 2
0
        //default constructor

        public Animals()
        {
            this.species_name = "";
            this.animalType   = animalTypes.unknown;
            //this.name = "";
            this.habitat     = 0;
            this.typeOfEater = 0;
            this.filmed      = false;
            this.whenActive  = 0;
        }
Ejemplo n.º 3
0
        public bool filmAnimal(Animals animal)
        {
            //we want to film animals and the stuff they do, so we find them first in order to do so

            /*bool found = true;
             *
             * if(!found)
             * {
             * //look for animal
             * Console.WriteLine("Searching for animal to film...");
             *
             * }*/

            //Animals animal = new Animals();

            Video video;

            Console.WriteLine("What will be the title of this video (type rough draft if uncertain): ");
            video.title = Convert.ToString(Console.ReadLine());

            Console.WriteLine();

            Console.WriteLine("Who is(are) the filmmaker(s)? : ");
            video.filmmakers = Convert.ToString(Console.ReadLine());

            Console.WriteLine();

            Console.Write("What one animal by species name would you like to film? (Type something like gazelle, giraffe, etc. : ");
            String speciesName;

            speciesName         = Convert.ToString(Console.ReadLine());
            animal.species_name = speciesName;
            video.animalsFilmed = animal.species_name;

            Console.WriteLine();

            //Console.WriteLine("Okay, let's search for {0}...", animal.species_name);

            //I wonder if I need to ask for the type of the animal and everything else...I guess I could ask for where the animal will be filmed and probably when...

            //to identify the animal for the time being, let's ask for the name of the animal

            /*Console.WriteLine("What is the name of the animal to film? : ");
             * animal.name = Convert.ToString(animal.name);*/

            Console.WriteLine("Where are we filming this animal? : ");
            video.location = Convert.ToString(Console.ReadLine());

            Console.WriteLine();

            Console.WriteLine("In what natural environment are we filming this animal? : ");

            /*String habitat;
             * habitat = Convert.ToString(Console.ReadLine());
             * animal.setHabitat(habitat);*/
            //animal.habitat.ToString() = habitat;

            // Colors colorValue = (Colors) Enum.Parse(typeof(Colors), colorString);

            String habitatValue;

            habitatValue = Convert.ToString(Console.ReadLine());
            //Parse(habitats, habitat);
            habitats habitat = (habitats)Enum.Parse(typeof(habitats), habitatValue);

            animal.setHabitat(habitat);
            video.environment = habitatValue;

            Console.WriteLine();

            Console.WriteLine("When are we filming this animal? : ");

            /*String timeOfDay;
             * timeOfDay = Convert.ToString(Console.ReadLine());                  //morning, afternoon, night*/
            video.date = Convert.ToString(Console.ReadLine());

            Console.WriteLine();

            Console.WriteLine("How long will the video of this animal be? : ");
            video.duration = Convert.ToString(Console.ReadLine());

            Console.WriteLine();

            Console.WriteLine("Off we go!\n");

            animal.filmed = true;

            Console.WriteLine();

            Console.WriteLine("Animal has been filmed.\n");

            return(animal.filmed);
        }
Ejemplo n.º 4
0
        /*public String setName(String name)
         * {
         *  this.name = name;
         *  return this.name;
         * }*/

        public habitats setHabitat(habitats habitat)
        {
            this.habitat = habitat;
            return(this.habitat);
        }