Esempio n. 1
0
    /// <summary>
    /// Gets wind delta on current position
    /// Use <see cref="CirculationGenerator"/> for more detailed access
    /// </summary>
    public double GetWindDelta(int posX, int posY)
    {
        double elevation   = ElevationGenerator.GetElevation(posX, posY);
        double airpressure = CirculationGenerator.GetAirPressure(posX, posY, elevation);

        return(CirculationGenerator.GetWindDelta(posX, posY, airpressure, ElevationGenerator.IsLand(elevation), elevation));
    }
Esempio n. 2
0
    /// <summary>
    /// Gets precipitation on current position
    /// Use <see cref="PrecipitationGenerator"/> for more detailed access
    /// </summary>
    public double GetPrecipitation(int posX, int posY)
    {
        double elevation   = ElevationGenerator.GetElevation(posX, posY);
        double temperature = TemperatureGenerator.GetTemperature(posX, elevation);

        return(PrecipitationGenerator.GetPrecipitation(posX, posY, elevation, temperature));
    }
Esempio n. 3
0
 /// <summary>
 /// Gets elevation on current position
 /// Use <see cref="ElevationGenerator"/> for more detailed access
 /// </summary>
 public double GetElevation(int posX, int posY)
 {
     return(ElevationGenerator.GetElevation(posX, posY));
 }
Esempio n. 4
0
    /// <summary>
    /// Gets temperature on current position
    /// Use <see cref="TemperatureGenerator"/> for more detailed access
    /// </summary>
    public double GetTemperature(int posX, int posY)
    {
        double elevation = ElevationGenerator.GetElevation(posX, posY);

        return(TemperatureGenerator.GetTemperature(posY, elevation));
    }
Esempio n. 5
0
    /// <summary>
    /// Gets air pressure on current position
    /// Use <see cref="CirculationGenerator"/> for more detailed access
    /// </summary>
    public double GetAirPressure(int posX, int posY)
    {
        double elevation = ElevationGenerator.GetElevation(posX, posY);

        return(CirculationGenerator.GetAirPressure(posX, posY, elevation));
    }