public Facility(attractionType type, string imageName, string name, string description, Coordinates location, Time open, Time close)
 {
     this.ImageName      = imageName;
     this.Name           = name;
     this.Description    = description;
     this.Location       = location;
     this.Open           = open;
     this.Close          = close;
     this.attractiontype = type;
 }
示例#2
0
        // Lav CTOR'en om til CTOR chaining

        public Animal(string imageName, attractionType type, string name, string description, Coordinates location, string latinName, params FeedingTime[] feedingTimes)
        {
            this.ImageName      = imageName;
            this.Name           = name;
            this.Description    = description;
            this.Location       = location;
            this.LatinName      = latinName;
            this.attractiontype = type;

            if (feedingTimes != null)
            {
                foreach (FeedingTime t in feedingTimes)
                {
                    _feedingTimes.Add(t);
                }
            }
        }
 public Facility(attractionType type, string imageName, string name, string description, Coordinates location)
     : this(type, imageName, name, description, location, null, null)
 {
 }
示例#4
0
 public Animal(string imageName, attractionType type, string name, string description, Coordinates location, string latinName)
     : this(imageName, type, name, description, location, latinName, null)
 {
 }