public VisualObject(VisualObject other) { this.Name = other.Name; this.Speed = new Speed(other.Speed); this.CurrentLocation = new Coordinate(other.CurrentLocation); this.LocationHistory = new List<Coordinate>(other.LocationHistory.Count); foreach (Coordinate c in other.LocationHistory) { this.LocationHistory.Add(new Coordinate(c)); } this.CurrentColor = new Color(other.CurrentColor); this.HistoryColor = new Color(other.HistoryColor); this.Rotation = other.Rotation; }
public VisualObject(VisualObject other) { this.Name = other.Name; this.Speed = new Speed(other.Speed); this.CurrentLocation = new Coordinate(other.CurrentLocation); this.LocationHistory = new List <Coordinate>(other.LocationHistory.Count); foreach (Coordinate c in other.LocationHistory) { this.LocationHistory.Add(new Coordinate(c)); } this.CurrentColor = new Color(other.CurrentColor); this.HistoryColor = new Color(other.HistoryColor); this.Rotation = other.Rotation; }