Пример #1
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;
        }
Пример #2
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;
        }
Пример #3
0
 public active setWhenActive(active whenActive)
 {
     this.whenActive = whenActive;
     return(this.whenActive);
 }