ClimateSearch

public class ClimateSearch

Class ClimateSearch. Provides climatesearch functionality for the Hytale server.

java.lang.Object > ClimateSearch

Field Summary

bestPosition

final Vector2i bestPosition

Field bestPosition.

radius

final int radius

Field radius.

rng

final FastRandom rng

Field rng.

start_ms

final long start_ms

Field start_ms.

steps

final int steps

Field steps.

inc

final double inc

Field inc.

off

final double off

Field off.

t

final double t

Field t.

x

final int x

Field x.

y

final int y

Field y.

score

final double score

Field score.

time_ms

final long time_ms

Field time_ms.

continent

final double continent

Field continent.

temperature

final double temperature

Field temperature.

intensity

final double intensity

Field intensity.

fade

final double fade

Field fade.

dif

final double dif

Field dif.

Method Detail

FastRandom

public new FastRandom (HashUtil.hash(seed, 1659788403585L)

Method FastRandom.

Parameters:
HashUtil.hash(seed HashUtil.hash(seed
1659788403585L 1659788403585L

collect

static double collect (final int seed, final int x, final int y, final ClimateNoise noise, final ClimateGraph graph, final Rule rule)

Method collect.

Parameters:
final int seed
final int x
final int y
final ClimateNoise noise
final ClimateGraph graph
final Rule rule

pretty

public String pretty ()

Method pretty.

Rule

public public Rule (final Range continent, final Range temperature, final Range intensity, final Range fade)

Method Rule.

Parameters:
final Range continent
final Range temperature
final Range intensity
final Range fade

score

public double score (final double continent, final double temperature, final double intensity, final double fade)

Method score.

Parameters:
final double continent
final double temperature
final double intensity
final double fade

Range

public public Range (final double value, final double radius, final double weight)

Method Range.

Parameters:
final double value
final double radius
final double weight

test

public boolean test (final double value)

Method test.

Parameters:
final double value