/// <summary> /// Create an inhabited region. /// </summary> /// <param name="id">Unique ID of this Region.</param> /// <param name="superRegion">SuperRegion this Region belongs to.</param> /// <param name="playerName">Owner of this Region.</param> /// <param name="armies">Number of armies in this region.</param> public Region(int id, SuperRegion superRegion, string playerName, int armies) { Id = id; SuperRegion = superRegion; Neighbors = new List <Region>(); PlayerName = playerName; Armies = armies; superRegion.AddSubRegion(this); }
/// <summary> /// Create an empty region. /// </summary> /// <param name="id">Unique ID of this Region.</param> /// <param name="superRegion">SuperRegion this Region belongs to.</param> public Region(int id, SuperRegion superRegion) { Id = id; SuperRegion = superRegion; Neighbors = new List <Region>(); PlayerName = "unknown"; Armies = 0; superRegion.AddSubRegion(this); }