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()
Gets average color.
|
com.badlogic.gdx.graphics.Color |
getColor(Sides normal)
Get's the brightness to a normal.
|
boolean |
isRenderingData() |
void |
render(GameView 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 |
setToNight() |
void |
setToNoon() |
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()
getColor(com.BombingGames.WurfelEngine.Core.Gameobjects.Sides)
public com.badlogic.gdx.graphics.Color getColor(Sides normal)
normal
- 0 left 1 top or 2 rightpublic static void calcSimpleLight()
public boolean isRenderingData()
public void renderData(boolean render)
render
- public void render(GameView view)
view
- public void setToNoon()
public void setToNight()