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); }
public BuildingSpot GetBuildingSpot(BuildingSpot.Index spotIndex) { return BuildingSpots.Find(bspot => bspot.SpotIndex == spotIndex); }
public void BuyBuilding(IPriceObject buildPriceObject, BuildingSpot containingBuildingSpot) { Receive(); player.BuyBuilding(buildPriceObject, containingBuildingSpot); }
public void AddBuildingToBuildQuery( IOnlyProductionObject buildProductionObject, BuildingSpot containingBuildingSpot ) { if (!PlayerBuildingSpots.Contains(containingBuildingSpot)) return; PlayerBuildQuery.Add( new BuildingBuildRequest( buildProductionObject, containingBuildingSpot ) ); }
public void BuyBuilding(IPriceObject buildPriceObject, BuildingSpot containingBuildingSpot) { if (!containingBuildingSpot.IsActive) return; containingBuildingSpot.Building = (Building) buildPriceObject; PlayerBuildingSpots.Add(containingBuildingSpot); }
public void BuildPalaceOnStart(BuildingSpot containingSpot) { containingSpot.Building = new Palace(containingSpot); PlayerTiles.Add(containingSpot.FirstTile); PlayerTiles.Add(containingSpot.SecondTile); PlayerBuildingSpots.Add(containingSpot); OnPalaceIsCreated(); }