Beispiel #1
0
 public void btnErosion()
 {
     mapGen.CreateFluxErosion(3, 30);
     cdictNatural = MapColor.PaletteBasicNatural(mapGen.seaLevel);
     DisplayTilesInit();
     DisplayMap(displayView);
 }
Beispiel #2
0
 public void btnCreateRain()
 {
     mapGen.CreateRain(RainMethod.Wind);
     cdictNatural = MapColor.PaletteBasicNatural(mapGen.seaLevel);
     DisplayTilesInit();
     DisplayMap(displayView);
 }
Beispiel #3
0
 public void btnElevationAdjustments()
 {
     mapGen.CreateElevationAdjustments();
     cdictNatural = MapColor.PaletteBasicNatural(mapGen.seaLevel);
     DisplayTilesInit();
     DisplayMap(displayView);
 }
Beispiel #4
0
 public void btnApplyWaterBodyPreferences()
 {
     mapGen.ApplyPreferencesWaterBody();
     cdictNatural = MapColor.PaletteBasicNatural(mapGen.seaLevel);
     DisplayTilesInit();
     DisplayMap(displayView);
 }
Beispiel #5
0
    public void btnSmooth()
    {
        MapScaler ms = new MapScaler();

        ms.Smooth(ref mapGen);
        cdictNatural = MapColor.PaletteBasicNatural(mapGen.seaLevel);
        DisplayMap(displayView);
    }
Beispiel #6
0
    public void btnExpand()
    {
        MapScaler ms = new MapScaler();

        ms.ExpandSquare(ref mapGen, 2, 2);
        cdictNatural = MapColor.PaletteBasicNatural(mapGen.seaLevel);
        DisplayTilesInit();
        DisplayMap(displayView);
        AdjustCamera(mapGen.xDim, mapGen.yDim);
    }
Beispiel #7
0
    //BUTTON FUNCTIONS - GENERATION
    public void btnGenerateMap()
    {
        displayView = DisplayView.Biome;
        int td  = d - iExpand + 1;
        int Dim = (int)Mathf.Pow(2, td) + 1;

        mapGen        = new MapGen(Dim, Dim, iExpand);
        cdictSpectrum = MapColor.PaletteBasicSpectrum(0f);
        mapGen.GenerateMap();
        AdjustCamera(mapGen.xDim, mapGen.yDim);
        MapScaler ms = new MapScaler();

        for (int i = 0; i < iExpand; i++)
        {
            ms.Smooth(ref mapGen);
        }
        cdictNatural = MapColor.PaletteBasicNatural(mapGen.seaLevel);
        DisplayTilesInit();
        DisplayMap(displayView);
    }