Exemplo n.º 1
0
 public void ShowProvince(LandProvince province, bool immediateMapChange = true)
 {
     Visible = true;
     _province = province;
     _provinceName.Text = "Province of " + province.Name;
     _settlementScrollableContainer.Refresh(province.Capital.Yield().ToList());
     _provinceMap.Select(province, immediateMapChange);
 }
Exemplo n.º 2
0
 public Settlement(World world, LandProvince province) : base(world)
 {
     Province = province;
     Name = NameGenerator.GetSettlementName();
     Constructions = new List<Construction>();
     Buildings = new List<Building>();
     Population = new Population();
     Type = world.ProvinceManager.BaseSettlementTypes.RandomWeightedItem(t => t.Probability(province));
     foreach (BuildingType type in BuildingTypes.AvailableFor(this))
         Buildings.Add(new Building(this, type));
 }
Exemplo n.º 3
0
 public Settlement(World world, LandProvince province) : base(world)
 {
     Province      = province;
     Name          = NameGenerator.GetSettlementName();
     Constructions = new List <Construction>();
     Buildings     = new List <Building>();
     Population    = new Population();
     Type          = world.ProvinceManager.BaseSettlementTypes.RandomWeightedItem(t => t.Probability(province));
     foreach (BuildingType type in BuildingTypes.AvailableFor(this))
     {
         Buildings.Add(new Building(this, type));
     }
 }
Exemplo n.º 4
0
 public double Probability(LandProvince province)
 {
     return(_probability.For(province));
 }
Exemplo n.º 5
0
 public double Probability(LandProvince province)
 {
     return _probability.For(province);
 }
Exemplo n.º 6
0
 private void ShowProvinceFromMap(LandProvince province)
 {
     ShowProvince(province, false);
 }
Exemplo n.º 7
0
 public void Select(LandProvince province, bool immediateMapChange)
 {
     _selectedProvince = province;
     MoveCamera((Vector3)province.Center, immediateMapChange);
 }
Exemplo n.º 8
0
 public FoundSettlementCommand(LandProvince province, BaseSettlementType type)
 {
     _province = province;
     _type = type;
 }
Exemplo n.º 9
0
Arquivo: Realm.cs Projeto: ndech/Alpha
 public void AddProvince(LandProvince province)
 {
     _demesne.Add(province);
     province.Owner = this;
 }