예제 #1
0
        public object Clone()
        {
            var result = new PlayerModel((Coordinates)CurPosition.Clone(), PlayerName)
            {
                PrevPosition      = (Coordinates)PrevPosition.Clone(),
                Inertia           = (Coordinates)Inertia.Clone(),
                CurLap            = CurLap,
                IsAlive           = IsAlive,
                IsWinner          = IsWinner,
                LastWayPoint      = LastWayPoint,
                NumberOfMovements = NumberOfMovements
            };

            return(result);
        }