public class Configuration
extends java.lang.Object
Constructor and Description |
---|
Configuration() |
Modifier and Type | Method and Description |
---|---|
boolean |
clearBeforeRendering()
clearing the screen is ~5-10% slower than without.
|
boolean |
debugObjects() |
BlockFactory |
getBlockFactoy()
If you want to use custom blocks you should override this.
|
Generator |
getChunkGenerator()
The map generator
|
int |
getConsoleKey() |
float |
getGravity()
The gravity constant in m/s^2
|
float |
getLEAzimutSpeed() |
int |
getRenderResolutionWidth()
The virtual render width (resolution).
|
java.lang.String |
getSpritesheetPath()
You can use your own spritesheet. the suffix will be added
|
int |
getWorldSpinAngle()
in which direction is the world spinning?
|
int |
groundBlockID() |
void |
initLoadingQueque(com.badlogic.gdx.assets.AssetManager manager)
Add asstes to loading queque.
|
boolean |
isChunkSwitchAllowed()
Set if the map should load or generate new chunks when the camera reaches an end of the map.
|
void |
loadConfigFromFile()
Load engine configuration from a file
|
boolean |
preventUnloading()
increases memory usage by not unloading data.
|
boolean |
shouldAutoShade()
If no light engine the blocks can be shaded by algorithm.
|
boolean |
shouldLoadMap() |
boolean |
useFog()
Should the blocks get rendered with fog?
|
boolean |
useLightEngine() |
boolean |
useScalePrototype() |
public void loadConfigFromFile()
public float getGravity()
public int getWorldSpinAngle()
public boolean isChunkSwitchAllowed()
public boolean shouldLoadMap()
public Generator getChunkGenerator()
public float getLEAzimutSpeed()
public int getRenderResolutionWidth()
public boolean clearBeforeRendering()
public boolean useLightEngine()
public boolean useFog()
public boolean shouldAutoShade()
public BlockFactory getBlockFactoy()
public java.lang.String getSpritesheetPath()
public void initLoadingQueque(com.badlogic.gdx.assets.AssetManager manager)
manager
- public int getConsoleKey()
public boolean useScalePrototype()
public int groundBlockID()
public boolean debugObjects()
public boolean preventUnloading()