예제 #1
0
    public void forceBuildBuilding(IBuilding newBuilding)
    {
        // Give the building to the resource manager logic
        // We've already spent for the building in the "startBuildBuilding" func
        aiCurrentGameState.forceAddBuilding(newBuilding);

        // Display the new resource stockpiles/ income per turn
        displayBuildingResouceDelta(newBuilding);
        doNextWorkAi();
    }
예제 #2
0
    public void forceBuildBuilding(IBuilding newBuilding)
    {
        // Reccord the position of the building
        occupyBuildingSpace(newBuilding);

        // Give the building to the resource manager logic
        // We've already spent for the building in the "startBuildBuilding" func
        gameState.forceAddBuilding(newBuilding);

        // Display the new resource stockpiles/ income per turn
        displayBuildingResouceDelta(newBuilding);

        // Draw the building
        this.mapController.addBuilding(newBuilding);
    }