Drag[en]gine Script Module DragonScript
1.23
|
Sky or sky instance controller. More...
Public Member Functions | |
Management | |
Sky | getSky () |
Owner sky or null if not owned by sky. More... | |
SkyInstance | getSkyInstance () |
Onwer sky instance or null if not owned by sky instance. More... | |
int | getControllerIndex () |
Controller index. More... | |
Controllers | |
String | getName () |
Name. More... | |
void | setName (String name) |
Set name. More... | |
float | getLower () |
Lower limit. More... | |
float | getUpper () |
Upper limit. More... | |
void | setRange (float lower, float upper) |
Set value range. More... | |
float | getValue () |
Value. More... | |
void | setValue (float value) |
Set value. More... | |
bool | getFrozen () |
Controller is frozen. More... | |
void | setFrozen (bool frozen) |
Set if controller is frozen. More... | |
bool | getClamp () |
Controller value is clamped instead of wrapped around if outside range. More... | |
void | setClamp (bool clamp) |
Set if controller value is clamped instead of wrapped around if outside range. More... | |
void | increment (float amount) |
Increment controller value. More... | |
void | setToLower () |
Set controller value to lower value. More... | |
void | setToUpper () |
Set controller value to upper value. More... | |
bool | isAtLower () |
Controller value is at lower value. More... | |
bool | isAtUpper () |
Controller value is at upper value. More... | |
Sky or sky instance controller.
Wraps a sky or sky instance controller by controller index. Valid only as long as the wrapped sky or sky instance does not change controller layout.
If wrapping a sky instance controller any changes to a controller triggers an update in the game engine.
If wrapping a sky controller the user is responsible to call Sky.contentChanged() after changing one or more controllers. Sky controllers should not be changed if possible after being used in sky instances.
This is a native class.
bool Dragengine.Scenery.SkyController.getClamp | ( | ) |
Controller value is clamped instead of wrapped around if outside range.
int Dragengine.Scenery.SkyController.getControllerIndex | ( | ) |
Controller index.
bool Dragengine.Scenery.SkyController.getFrozen | ( | ) |
Controller is frozen.
float Dragengine.Scenery.SkyController.getLower | ( | ) |
Lower limit.
String Dragengine.Scenery.SkyController.getName | ( | ) |
Name.
Sky Dragengine.Scenery.SkyController.getSky | ( | ) |
Owner sky or null if not owned by sky.
SkyInstance Dragengine.Scenery.SkyController.getSkyInstance | ( | ) |
Onwer sky instance or null if not owned by sky instance.
float Dragengine.Scenery.SkyController.getUpper | ( | ) |
Upper limit.
float Dragengine.Scenery.SkyController.getValue | ( | ) |
Value.
void Dragengine.Scenery.SkyController.increment | ( | float | amount | ) |
Increment controller value.
bool Dragengine.Scenery.SkyController.isAtLower | ( | ) |
Controller value is at lower value.
bool Dragengine.Scenery.SkyController.isAtUpper | ( | ) |
Controller value is at upper value.
void Dragengine.Scenery.SkyController.setClamp | ( | bool | clamp | ) |
Set if controller value is clamped instead of wrapped around if outside range.
void Dragengine.Scenery.SkyController.setFrozen | ( | bool | frozen | ) |
Set if controller is frozen.
void Dragengine.Scenery.SkyController.setName | ( | String | name | ) |
Set name.
void Dragengine.Scenery.SkyController.setRange | ( | float | lower, |
float | upper | ||
) |
Set value range.
void Dragengine.Scenery.SkyController.setToLower | ( | ) |
Set controller value to lower value.
void Dragengine.Scenery.SkyController.setToUpper | ( | ) |
Set controller value to upper value.
void Dragengine.Scenery.SkyController.setValue | ( | float | value | ) |
Set value.