Drag[en]gine Script Module DragonScript
1.21
|
Behavior instance. More...
Classes | |
class | ActivateListener |
Activate listener. More... | |
enum | State |
States. More... | |
Public Member Functions | |
void | activate () |
Activate light raising intensity from 0 to full bright. More... | |
void | deactivate () |
Deactivate light lowering intensity from full bright to 0. More... | |
void | dispose () |
Dispose of behavior instance. More... | |
ECBehaviorLightDimmer | getECBehavior () |
Behavior. More... | |
float | getElapsedTime () |
Elapsed dimmer time. More... | |
float | getFullBrightIntensity () |
Full bright intensity. More... | |
ECBehaviorLight.Instance | getLight () |
Light behavior or null. More... | |
float | getTimeLower () |
Time in seconds to lower intensity. More... | |
float | getTimeRaise () |
Time in seconds to raise intensity. More... | |
void | init (StubElement stub) |
Initialize element from stub. More... | |
Instance | new (ECBehaviorLightDimmer ecbehavior, BehaviorElement element) |
Create behavior instance. More... | |
void | readFromFile (PersistencyEnvironment env, FileReader reader) |
Read behavior from file. More... | |
void | setActivated () |
Set light to activated state now. More... | |
void | setDeactivated () |
Set light to deactivated state now. More... | |
void | setFullBrightIntensity (float intensity) |
Set full bright intensity. More... | |
void | think (float elapsed) |
Think about what to do for the next frame update. More... | |
void | writeToFile (PersistencyEnvironment env, FileWriter writer) |
Write behavior to file. More... | |
Public Member Functions inherited from Dragengine.Scenery.DefaultECBehaviorInstance | |
void | addToGameWorld () |
Add element to game world. More... | |
void | attachToParent (Element parent) |
Attach element to object set by the mapper in the IGDE World Editor. More... | |
void | enterFrame () |
Frame update started. More... | |
void | geometryChanged () |
Position or orientation changed. More... | |
BehaviorElement | getElement () |
Behavior element to apply behavior to. More... | |
int | getInstanceIndex () |
Behavior instance index. More... | |
DefaultECBehaviorInstance | new (BehaviorElement element) |
Create default composeable instance. More... | |
void | postThink (float elapsed) |
Post thinking after physics processing is finished. More... | |
void | removeFromGameWorld () |
Remove element from game world. More... | |
bool | requiresEnterFrame () |
Behavior instance requires enterFrame() to be called. More... | |
bool | requiresThink () |
Behavior instance requires think() to be called. More... | |
void | stateChanged () |
State changed (visble, touchable). More... | |
Protected Member Functions | |
void | setElapsedTime (float elapsed) |
Set elapsed dimmer time. More... | |
void | setTimeLower (float time) |
Set time in seconds to lower intensity. More... | |
void | setTimeRaise (float time) |
Set time in seconds to raise intensity. More... | |
Protected Member Functions inherited from Dragengine.Scenery.DefaultECBehaviorInstance | |
void | setRequiresEnterFrame (bool required) |
Set if behavior instance requires enterFrame() to be called. More... | |
void | setRequiresThink (bool required) |
Set if behavior instance requires think() to be called. More... | |
Behavior instance.
void Dragengine.Scenery.ECBehaviorLightDimmer.Instance.activate | ( | ) |
Activate light raising intensity from 0 to full bright.
void Dragengine.Scenery.ECBehaviorLightDimmer.Instance.deactivate | ( | ) |
Deactivate light lowering intensity from full bright to 0.
void Dragengine.Scenery.ECBehaviorLightDimmer.Instance.dispose | ( | ) |
Dispose of behavior instance.
Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.
ECBehaviorLightDimmer Dragengine.Scenery.ECBehaviorLightDimmer.Instance.getECBehavior | ( | ) |
Behavior.
float Dragengine.Scenery.ECBehaviorLightDimmer.Instance.getElapsedTime | ( | ) |
Elapsed dimmer time.
float Dragengine.Scenery.ECBehaviorLightDimmer.Instance.getFullBrightIntensity | ( | ) |
Full bright intensity.
ECBehaviorLight.Instance Dragengine.Scenery.ECBehaviorLightDimmer.Instance.getLight | ( | ) |
Light behavior or null.
float Dragengine.Scenery.ECBehaviorLightDimmer.Instance.getTimeLower | ( | ) |
Time in seconds to lower intensity.
float Dragengine.Scenery.ECBehaviorLightDimmer.Instance.getTimeRaise | ( | ) |
Time in seconds to raise intensity.
void Dragengine.Scenery.ECBehaviorLightDimmer.Instance.init | ( | StubElement | stub | ) |
Initialize element from stub.
Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.
Instance Dragengine.Scenery.ECBehaviorLightDimmer.Instance.new | ( | ECBehaviorLightDimmer | ecbehavior, |
BehaviorElement | element | ||
) |
Create behavior instance.
void Dragengine.Scenery.ECBehaviorLightDimmer.Instance.readFromFile | ( | PersistencyEnvironment | env, |
FileReader | reader | ||
) |
Read behavior from file.
Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.
void Dragengine.Scenery.ECBehaviorLightDimmer.Instance.setActivated | ( | ) |
Set light to activated state now.
void Dragengine.Scenery.ECBehaviorLightDimmer.Instance.setDeactivated | ( | ) |
Set light to deactivated state now.
|
protected |
Set elapsed dimmer time.
void Dragengine.Scenery.ECBehaviorLightDimmer.Instance.setFullBrightIntensity | ( | float | intensity | ) |
Set full bright intensity.
|
protected |
Set time in seconds to lower intensity.
|
protected |
Set time in seconds to raise intensity.
void Dragengine.Scenery.ECBehaviorLightDimmer.Instance.think | ( | float | elapsed | ) |
Think about what to do for the next frame update.
Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.
void Dragengine.Scenery.ECBehaviorLightDimmer.Instance.writeToFile | ( | PersistencyEnvironment | env, |
FileWriter | writer | ||
) |
Write behavior to file.
Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.