public Planet(Star owner) { Star = owner.Name; Galaxy = owner.Galaxy; Moons = new HashSet <Moon>(); }
/*public Planet(Bitmap photo, string name, Distance middleDistance, uint radius, uint temperature) : base(photo, name, middleDistance, radius, temperature) * { * }*/ public Planet(DateTime inventingDate, byte[] photo, string name, Distance middleDistance, uint radius, bool hasAtmosphere, PlanetType type, Star star, uint temperature = 0, IEnumerable <Moon> moons = null) //base(inventingDate, photo, name, middleDistance, radius, temperature) { HasAtmosphere = hasAtmosphere; Type = type; Star = star.Name; if (moons != null) { Moons = new HashSet <Moon>(moons); } Photo = photo; Name = name; MiddleDistance = middleDistance; Radius = radius; Temperature = temperature; //Galaxy = galaxy; InventingDate = inventingDate; }