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