Package zombie
Class SandboxOptions
java.lang.Object
zombie.SandboxOptions
public class SandboxOptions
extends java.lang.Object
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SandboxOptions.BooleanSandboxOption
static class
SandboxOptions.DoubleSandboxOption
static class
SandboxOptions.EnumSandboxOption
static class
SandboxOptions.IntegerSandboxOption
static interface
SandboxOptions.SandboxOption
static class
SandboxOptions.ZombieConfig
static class
SandboxOptions.ZombieLore
-
Field Summary
-
Constructor Summary
Constructors Constructor Description SandboxOptions()
-
Method Summary
Modifier and Type Method Description protected SandboxOptions
addOption(SandboxOptions.SandboxOption option)
void
applySettings()
void
copyValuesFrom(SandboxOptions other)
int
getElecShutModifier()
double
getEnduranceRegenMultiplier()
int
getErosionSpeed()
int
getFirstYear()
int
getFoodLootModifier()
static SandboxOptions
getInstance()
int
getNumOptions()
SandboxOptions.SandboxOption
getOptionByIndex(int index)
SandboxOptions.SandboxOption
getOptionByName(java.lang.String name)
int
getOtherLootModifier()
int
getRainModifier()
double
getStatsDecreaseMultiplier()
int
getTemperatureModifier()
int
getWaterShutModifier()
int
getWeaponLootModifier()
void
handleOldServerZombiesFile()
void
handleOldZombiesFile1()
void
handleOldZombiesFile2()
static boolean
isValidPresetName(java.lang.String name)
void
load(java.nio.ByteBuffer input)
void
loadCurrentGameBinFile()
boolean
loadGameFile(java.lang.String presetName)
boolean
loadPresetFile(java.lang.String presetName)
boolean
loadServerLuaFile(java.lang.String serverName)
boolean
loadServerTextFile(java.lang.String serverName)
boolean
loadServerZombiesFile(java.lang.String serverName)
SandboxOptions
newCopy()
int
randomElectricityShut(int electricityShutoffModifier)
int
randomWaterShut(int waterShutoffModifier)
void
resetToDefault()
void
save(java.nio.ByteBuffer output)
boolean
saveGameFile(java.lang.String presetName)
boolean
savePresetFile(java.lang.String presetName)
boolean
saveServerLuaFile(java.lang.String serverName)
void
set(java.lang.String name, java.lang.Object o)
void
setDefaultsToCurrentValues()
void
toLua()
void
updateFromLua()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
instance
-
Speed
public int Speed -
Zombies
-
Distribution
-
DayLength
-
StartYear
-
StartMonth
-
StartDay
-
StartTime
-
WaterShut
-
ElecShut
-
WaterShutModifier
-
ElecShutModifier
-
FoodLoot
-
WeaponLoot
-
OtherLoot
-
Temperature
-
Rain
-
ErosionSpeed
-
XpMultiplier
-
Farming
-
StatsDecrease
-
NatureAbundance
-
Alarm
-
LockedHouses
-
StarterKit
-
Nutrition
-
FoodRotSpeed
-
FridgeFactor
-
LootRespawn
-
TimeSinceApo
-
PlantResilience
-
PlantAbundance
-
EndRegen
-
Helicopter
-
MetaEvent
-
SleepingEvent
-
GeneratorFuelConsumption
-
GeneratorSpawning
-
SurvivorHouseChance
-
AnnotatedMapChance
-
CharacterFreePoints
-
ConstructionBonusPoints
-
NightDarkness
-
BoneFracture
-
InjurySeverity
-
HoursForCorpseRemoval
-
DecayingCorpseHealthImpact
-
BloodLevel
-
ClothingDegradation
-
FireSpread
-
DaysForRottenFoodRemoval
-
Lore
-
zombieConfig
-
options
protected java.util.ArrayList options -
optionByName
protected java.util.HashMap optionByName -
FIRST_YEAR
public final int FIRST_YEAR- See Also:
- Constant Field Values
-
-
Constructor Details
-
SandboxOptions
public SandboxOptions()
-
-
Method Details
-
getInstance
-
toLua
public void toLua() -
updateFromLua
public void updateFromLua() -
randomWaterShut
public int randomWaterShut(int waterShutoffModifier) -
randomElectricityShut
public int randomElectricityShut(int electricityShutoffModifier) -
getTemperatureModifier
public int getTemperatureModifier() -
getRainModifier
public int getRainModifier() -
getErosionSpeed
public int getErosionSpeed() -
getFoodLootModifier
public int getFoodLootModifier() -
getWeaponLootModifier
public int getWeaponLootModifier() -
getOtherLootModifier
public int getOtherLootModifier() -
getWaterShutModifier
public int getWaterShutModifier() -
getElecShutModifier
public int getElecShutModifier() -
getEnduranceRegenMultiplier
public double getEnduranceRegenMultiplier() -
getStatsDecreaseMultiplier
public double getStatsDecreaseMultiplier() -
applySettings
public void applySettings() -
save
public void save(java.nio.ByteBuffer output) throws java.io.IOException- Throws:
java.io.IOException
-
load
public void load(java.nio.ByteBuffer input) throws java.io.IOException- Throws:
java.io.IOException
-
getFirstYear
public int getFirstYear() -
addOption
-
getNumOptions
public int getNumOptions() -
getOptionByIndex
-
getOptionByName
-
set
public void set(java.lang.String name, java.lang.Object o) -
copyValuesFrom
-
resetToDefault
public void resetToDefault() -
setDefaultsToCurrentValues
public void setDefaultsToCurrentValues() -
newCopy
-
isValidPresetName
public static boolean isValidPresetName(java.lang.String name) -
loadServerTextFile
public boolean loadServerTextFile(java.lang.String serverName) -
loadServerLuaFile
public boolean loadServerLuaFile(java.lang.String serverName) -
saveServerLuaFile
public boolean saveServerLuaFile(java.lang.String serverName) -
loadPresetFile
public boolean loadPresetFile(java.lang.String presetName) -
savePresetFile
public boolean savePresetFile(java.lang.String presetName) -
loadGameFile
public boolean loadGameFile(java.lang.String presetName) -
saveGameFile
public boolean saveGameFile(java.lang.String presetName) -
handleOldZombiesFile1
public void handleOldZombiesFile1() -
handleOldZombiesFile2
public void handleOldZombiesFile2() -
handleOldServerZombiesFile
public void handleOldServerZombiesFile() -
loadServerZombiesFile
public boolean loadServerZombiesFile(java.lang.String serverName) -
loadCurrentGameBinFile
public void loadCurrentGameBinFile()
-