コード例 #1
0
 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);
                }
            }
        }
コード例 #3
0
 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)
 {
 }