public Player(int id, string pseudo, string color) { this.id = id; this.pseudo = pseudo; this.specie = SpeciesEnum.NO_SPECIE; this.color = ColorEnumHelper.ToEnum(color); this.fleets = new List <Fleet> (); this.planets = new List <Planet> (); this.resources = new Dictionary <ResourcesEnum, int> (); }
public void setColorWithEnum(string color) { this.color = ColorEnumHelper.ToEnum(color); }