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); }
public Color32 getColor() { return(ColorEnumHelper.GetColor(this.color)); }
public string getColorString() { return(ColorEnumHelper.ToExplicitString(this.color)); }