Esempio n. 1
0
        public void AddNewPaddock(string name, bool nearCarnivores, bool nearHerbivores, bool nearAtrium, bool nearRaptors, bool nearHotel)
        {
            LocationIdAssigner++;
            Paddock pen = new Paddock(LocationIdAssigner, name, nearCarnivores, nearHerbivores, nearAtrium, nearRaptors, nearHotel);

            _ParkLocations.Add(pen);
        }
Esempio n. 2
0
        public void AddNewDino(string species, string weight, bool carnivore, Paddock location)
        {
            AnimalidAssigner++;
            Dinosaur dino = new Dinosaur(species, AnimalidAssigner, weight, carnivore, location);

            _DinosaursInPark.Add(dino);
        }
Esempio n. 3
0
 public Dinosaur(string species, int id, string weight, bool carnivore, Paddock location)
 {
     _species     = species;
     _id          = id;
     _weight      = weight;
     _carnivore   = carnivore;
     _hungerLevel = 50;
     _location    = location;
     _alive       = true;
 }