예제 #1
0
        private void Render()
        {
            int size = 1;

            worldMapBox.Image        = worldRenderer.Render(800, 800, 20 + zoom, showTime.Checked);
            rainfallMapBox.Image     = worldRenderer.DrawRainfallMap(size);
            humidityMapBox.Image     = worldRenderer.DrawHumidityMap(size);
            heightMapBox.Image       = worldRenderer.DrawHeightMap(size);
            rawHeightMapBox.Image    = worldRenderer.DrawRawHeightMap(size);
            nationMapBox.Image       = worldRenderer.DrawNationMap(size);
            mineralMapBox.Image      = worldRenderer.DrawMineralMap(size);
            agriculturalMapBox.Image = worldRenderer.DrawAgriculturalMap(size);
            valueMapBox.Image        = worldRenderer.DrawValueMap(size);
            temperatureMap.Image     = worldRenderer.DrawAtmosphereTemperatureMap(size);
            pressureMap.Image        = worldRenderer.DrawPressureMap(size);
            latWindMap.Image         = worldRenderer.DrawLatWindMap(size);
            lonWindMap.Image         = worldRenderer.DrawLonWindMap(size);
            dPressureMap.Image       = worldRenderer.DrawDPMap(size);
            dTemperatureMap.Image    = worldRenderer.DrawDTMap(size);
            radiationMap.Image       = worldRenderer.DrawRadiationMap(size);
            waterMap.Image           = worldRenderer.DrawWaterMap(size);
            waterkeptMap.Image       = worldRenderer.DrawWaterkeptMap(size);
        }
예제 #2
0
        public void GenerateMap()
        {
            Assert.IsNotNull(World.Instance);

            Assert.IsNotNull(World.Instance.MovementCost());

            WorldRenderer worldRenderer = new WorldRenderer();

            Assert.IsNotNull(worldRenderer);
            Bitmap b = worldRenderer.Render(200, 200);

            Assert.IsNotNull(b);
            Assert.IsTrue(b.Width == 200 && b.Height == 200);
            Assert.IsNotNull(worldRenderer.DrawRainfallMap());
            Assert.IsNotNull(worldRenderer.DrawAgriculturalMap());
            Assert.IsNotNull(worldRenderer.DrawBackground());
            Assert.IsNotNull(worldRenderer.DrawHeightMap());
            Assert.IsNotNull(worldRenderer.DrawIslands());
            Assert.IsNotNull(worldRenderer.DrawMineralMap());
            Assert.IsNotNull(worldRenderer.DrawNationMap());
            Assert.IsNotNull(worldRenderer.DrawRawHeightMap());
            Assert.IsNotNull(worldRenderer.DrawTemperatureMap());
            Assert.IsNotNull(worldRenderer.DrawValueMap());
        }