/// <summary> /// Constructor for Province /// </summary> /// <param name="otax">Double holding province tax rate</param> /// <param name="king">Province's Kingdom object</param> public Province(String id, String nam, Double otax, String tiHo = null, PlayerCharacter own = null, Kingdom king = null, Rank r = null) : base(id, nam, tiHo, own, r) { // VALIDATION // OTAX if (!Utility_Methods.ValidatePercentage(otax)) { throw new InvalidDataException("Province taxrate must be a double between 0 and 100"); } this.taxRate = otax; this.kingdom = king; }
public ClientRank(Rank r) { this.id = r.id; this.titles = r.title; this.stature = r.stature; }