示例#1
0
        public void ShowInfo(BuildingSpot buildingSpot)
        {
            try
            {
            }
            catch (Exception)
            {
                TileParamsContent.Text = "BuildingSpot";
            }

            textBox1.Text = buildingSpot.SpotIndex.ToString();
        }
 public BuildingSpot GetBSpot()
 {
     currentBuildingSpot = null;
     waitToInput = false;
     while (!waitToInput)
     {
     }
     if (currentBuildingSpot == null)
     {
         MessageBox.Show("bad input");
         waitToInput = false;
     }
     return currentBuildingSpot;
 }
 private void GameBoard2Controler_cv(object sender, BuildingSpot e)
 {
     currentBuildingSpot = e;
     waitToInput = true;
 }
 protected void OnCv(BuildingSpot e)
 {
     cv?.Invoke(this, e);
 }
示例#5
0
 public BuildingSpot GetBuildingSpot(BuildingSpot.Index spotIndex)
 {
     return BuildingSpots.Find(bspot => bspot.SpotIndex == spotIndex);
 }
示例#6
0
 public void BuyBuilding(IPriceObject buildPriceObject, BuildingSpot containingBuildingSpot)
 {
     Receive();
     player.BuyBuilding(buildPriceObject, containingBuildingSpot);
 }
示例#7
0
 public void AddBuildingToBuildQuery(
     IOnlyProductionObject buildProductionObject,
     BuildingSpot containingBuildingSpot
     )
 {
     if (!PlayerBuildingSpots.Contains(containingBuildingSpot)) return;
     PlayerBuildQuery.Add(
         new BuildingBuildRequest(
             buildProductionObject,
             containingBuildingSpot
             )
         );
 }
示例#8
0
 public void BuyBuilding(IPriceObject buildPriceObject, BuildingSpot containingBuildingSpot)
 {
     if (!containingBuildingSpot.IsActive) return;
     containingBuildingSpot.Building = (Building) buildPriceObject;
     PlayerBuildingSpots.Add(containingBuildingSpot);
 }
示例#9
0
 public void BuildPalaceOnStart(BuildingSpot containingSpot)
 {
     containingSpot.Building = new Palace(containingSpot);
     PlayerTiles.Add(containingSpot.FirstTile);
     PlayerTiles.Add(containingSpot.SecondTile);
     PlayerBuildingSpots.Add(containingSpot);
     OnPalaceIsCreated();
 }