public void AddSettlement(string name, Point2 location, RaceType raceType) { Settlement settlement = Settlement.CreateNew(name, raceType, location); _settlements.Add(settlement); }
public static Settlement CreateNew(string name, RaceType raceType, Point2 location) { var settlement = new Settlement(name, raceType, location, 1); return(settlement); }
public SettlementBuildings(Settlement settlement) { _settlement = settlement; _allBuildings = Globals.Instance.BuildingTypes; }