Ejemplo n.º 1
0
        private void HasSoil(AbstractBuildingTile tile, AbstractMarketManager manager)
        {
            BlockButtons(true, false, false);

            SetButton(foundationButton, () => manager.PutScreenInFocus(manager.Screens.FoundationBuyScreen));
            SetButton(soilButton, () => manager.PutScreenInFocus(manager.Screens.SoilManageScreen));

            screenData.SetBuildingFoundationSoil(false, false, true);

            SetText("NoBuilding!", "NoFoundation!", tile.GetSoilType().ToString());
        }
Ejemplo n.º 2
0
        private void HasBuilding(AbstractBuildingTile tile, AbstractMarketManager manager)
        {
            BlockButtons(false, false, false);

            SetButton(buildingButton, () => manager.PutScreenInFocus(manager.Screens.BuildingManageScreen));
            SetButton(foundationButton, () => manager.PutScreenInFocus(manager.Screens.FoundationManageScreen));
            SetButton(soilButton, () => manager.PutScreenInFocus(manager.Screens.SoilManageScreen));

            screenData.SetBuildingFoundationSoil(true, true, true);

            SetText(tile.Building.BuildingType.ToString(), tile.GetFoundationType().ToString(), tile.GetSoilType().ToString());
        }
Ejemplo n.º 3
0
        private void HandleEmpty(AbstractBuildingTile tile, AbstractMarketManager manager)
        {
            BlockButtons(true, true, false);

            SetButton(soilButton, () => manager.PutScreenInFocus(manager.Screens.SoilBuyScreen));

            screenData.SetBuildingFoundationSoil(false, false, false);

            SetText("NoBuilding!", "NoFoundation!", "NoSoil!");
        }