public class FogGenerator extends QuickEntity implements GlobalEntity<Fog>
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_NAME |
protected Fog |
fog |
engine, name, NAME_UNTITLED_ENTITY, parent| Constructor and Description |
|---|
FogGenerator() |
FogGenerator(Color color) |
FogGenerator(Color color,
float density) |
FogGenerator(Color color,
float density,
Fog.Mode mode) |
FogGenerator(Color color,
Vector2f range) |
FogGenerator(Color color,
Vector2f range,
float density,
Fog.Mode mode) |
FogGenerator(String name)
Create a FogGenerator
|
| Modifier and Type | Method and Description |
|---|---|
void |
attached()
Called when an Entity gets attached to an scenegraph
|
Color |
getColor() |
float |
getDensity() |
Fog.Mode |
getMode() |
Fog |
getObject() |
Vector2f |
getRange() |
void |
removed()
Sets the parent to null.
|
void |
setColor(Color color) |
void |
setDensity(float density) |
void |
setMode(Fog.Mode mode) |
void |
setRange(Vector2f range) |
boxed, getTransform, render, updateclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetName, setEngine, setParentgetEngine, setEnginepublic static final String DEFAULT_NAME
protected Fog fog
public FogGenerator()
public FogGenerator(String name)
name - The namepublic FogGenerator(Color color)
public FogGenerator(Color color, float density)
public Color getColor()
public void setColor(Color color)
public void setRange(Vector2f range)
public float getDensity()
public Vector2f getRange()
public Fog.Mode getMode()
public void setMode(Fog.Mode mode)
public void setDensity(float density)
public Fog getObject()
getObject in interface GlobalEntity<Fog>public void attached()
Entityattached in interface Entityattached in class QuickEntityEntity.attached()public void removed()
removed in interface Entityremoved in class QuickEntityEntity.removed()Copyright © 2014. All rights reserved.