public class LightEngine
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
Version
The Version of the light engine.
|
Constructor and Description |
---|
LightEngine() |
LightEngine(int xPos,
int yPos) |
Modifier and Type | Method and Description |
---|---|
static void |
calcSimpleLight()
Calculates the light level based on the sun shining straight from the top
|
static float |
getBrightness()
Returns the average brightness.
|
com.badlogic.gdx.graphics.Color |
getColor(int side)
Get's the brightness of a side.
|
com.badlogic.gdx.graphics.Color |
getGlobalLight()
Returns the sum of every light
|
GlobalLightSource |
getMoon() |
GlobalLightSource |
getSun() |
boolean |
isRenderingData() |
void |
render(View view)
Shows the data of the light engine in diagramms.
|
void |
renderData(boolean render)
Should diagrams be rendered showing the data of the LE.
|
void |
update(float delta) |
public static final java.lang.String Version
public LightEngine()
public LightEngine(int xPos, int yPos)
xPos
- the x position of the diagrams position (center)yPos
- the y position of the diagrams position (center)public void update(float delta)
delta
- public static float getBrightness()
public com.badlogic.gdx.graphics.Color getColor(int side)
side
- public com.badlogic.gdx.graphics.Color getGlobalLight()
public static void calcSimpleLight()
public GlobalLightSource getSun()
public GlobalLightSource getMoon()
public boolean isRenderingData()
public void renderData(boolean render)
render
- public void render(View view)
view
-