예제 #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 animalTypes setAnimalType(animalTypes type)
 {
     this.animalType = type;
     return(this.animalType);
 }