using System; using System.Collections.Generic; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; namespace MySparkApp { public class Player : ICloneable { public string Name { get; set; } = ""; public Point Location { get; set; } = new Point(); public Int32 SubstanceRate { get; set; } = 0; public Int32 CurrentSubstance { get; set; } = 0; public object Clone() { Player newPlayer = new Player(); newPlayer.Name = Name; newPlayer.Location = Location; newPlayer.SubstanceRate = SubstanceRate; newPlayer.CurrentSubstance = CurrentSubstance; return newPlayer; } } }