@Immutable public class LocalDifficulty extends Object
Modifier and Type | Field and Description |
---|---|
private Difficulty |
globalDifficulty |
private float |
localDifficulty |
Constructor and Description |
---|
LocalDifficulty(Difficulty difficulty,
long timeOfDay,
long inhabitedTime,
float moonSize) |
Modifier and Type | Method and Description |
---|---|
float |
getClampedLocalDifficulty() |
Difficulty |
getGlobalDifficulty() |
float |
getLocalDifficulty() |
boolean |
isHarderThan(float difficulty) |
private float |
setLocalDifficulty(Difficulty difficulty,
long timeOfDay,
long inhabitedTime,
float moonSize) |
private final Difficulty globalDifficulty
private final float localDifficulty
public LocalDifficulty(Difficulty difficulty, long timeOfDay, long inhabitedTime, float moonSize)
public Difficulty getGlobalDifficulty()
public float getLocalDifficulty()
public boolean isHarderThan(float difficulty)
public float getClampedLocalDifficulty()
private float setLocalDifficulty(Difficulty difficulty, long timeOfDay, long inhabitedTime, float moonSize)