Drag[en]gine Script Module DragonScript  1.23
Dragengine.Scenery.ECBehaviorLightDimmer.Instance Class Reference

Behavior instance. More...

Inheritance diagram for Dragengine.Scenery.ECBehaviorLightDimmer.Instance:
Dragengine.Scenery.DefaultECBehaviorInstance Dragengine.Scenery.ECBehaviorInstance

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...
 

Detailed Description

Behavior instance.

Member Function Documentation

◆ activate()

void Dragengine.Scenery.ECBehaviorLightDimmer.Instance.activate ( )

Activate light raising intensity from 0 to full bright.

◆ deactivate()

void Dragengine.Scenery.ECBehaviorLightDimmer.Instance.deactivate ( )

Deactivate light lowering intensity from full bright to 0.

◆ dispose()

void Dragengine.Scenery.ECBehaviorLightDimmer.Instance.dispose ( )

Dispose of behavior instance.

Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.

◆ getECBehavior()

ECBehaviorLightDimmer Dragengine.Scenery.ECBehaviorLightDimmer.Instance.getECBehavior ( )

Behavior.

◆ getElapsedTime()

float Dragengine.Scenery.ECBehaviorLightDimmer.Instance.getElapsedTime ( )

Elapsed dimmer time.

◆ getFullBrightIntensity()

float Dragengine.Scenery.ECBehaviorLightDimmer.Instance.getFullBrightIntensity ( )

Full bright intensity.

◆ getLight()

ECBehaviorLight.Instance Dragengine.Scenery.ECBehaviorLightDimmer.Instance.getLight ( )

Light behavior or null.

◆ getTimeLower()

float Dragengine.Scenery.ECBehaviorLightDimmer.Instance.getTimeLower ( )

Time in seconds to lower intensity.

◆ getTimeRaise()

float Dragengine.Scenery.ECBehaviorLightDimmer.Instance.getTimeRaise ( )

Time in seconds to raise intensity.

◆ init()

void Dragengine.Scenery.ECBehaviorLightDimmer.Instance.init ( StubElement  stub)

Initialize element from stub.

Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.

◆ new()

Instance Dragengine.Scenery.ECBehaviorLightDimmer.Instance.new ( ECBehaviorLightDimmer  ecbehavior,
BehaviorElement  element 
)

Create behavior instance.

◆ readFromFile()

void Dragengine.Scenery.ECBehaviorLightDimmer.Instance.readFromFile ( PersistencyEnvironment  env,
FileReader  reader 
)

Read behavior from file.

Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.

◆ setActivated()

void Dragengine.Scenery.ECBehaviorLightDimmer.Instance.setActivated ( )

Set light to activated state now.

Version
1.5

◆ setDeactivated()

void Dragengine.Scenery.ECBehaviorLightDimmer.Instance.setDeactivated ( )

Set light to deactivated state now.

Version
1.5

◆ setElapsedTime()

void Dragengine.Scenery.ECBehaviorLightDimmer.Instance.setElapsedTime ( float  elapsed)
protected

Set elapsed dimmer time.

◆ setFullBrightIntensity()

void Dragengine.Scenery.ECBehaviorLightDimmer.Instance.setFullBrightIntensity ( float  intensity)

Set full bright intensity.

◆ setTimeLower()

void Dragengine.Scenery.ECBehaviorLightDimmer.Instance.setTimeLower ( float  time)
protected

Set time in seconds to lower intensity.

◆ setTimeRaise()

void Dragengine.Scenery.ECBehaviorLightDimmer.Instance.setTimeRaise ( float  time)
protected

Set time in seconds to raise intensity.

◆ think()

void Dragengine.Scenery.ECBehaviorLightDimmer.Instance.think ( float  elapsed)

Think about what to do for the next frame update.

Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.

◆ writeToFile()

void Dragengine.Scenery.ECBehaviorLightDimmer.Instance.writeToFile ( PersistencyEnvironment  env,
FileWriter  writer 
)

Write behavior to file.

Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.


The documentation for this class was generated from the following file: