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

Behavior instance. More...

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

Classes

class  PlayingListener
 Trigger listener to start playing back. More...
 

Public Member Functions

void addListener (Listener listener)
 Add listener. More...
 
void addListenerFactory (Block blockFactory)
 Add listener factory using block. More...
 
void addListenerFactory (ListenerFactory factory)
 Add listener factory. More...
 
void addToGameWorld ()
 Add element to game world. More...
 
void createListeners (Instance instance)
 Create listeners from factories adding them to behavior instance. More...
 
void dispose ()
 Dispose of composeable instance. More...
 
void dispose ()
 Dispose of behavior. More...
 
void forEachListenerFactory (Block ablock)
 Visit listener factories with block with argument ListenerFactory. More...
 
ECComposeAnimator getAnimator ()
 Composeable animator for element class. More...
 
AnimatorInstance getAnimatorInstance ()
 Animator instance. More...
 
bool getApplyPostThink ()
 Apply animator during post think instead off during think. More...
 
ECPBoolean getApplyPostThink ()
 Apply animator during post think instead off during think. More...
 
ECBehaviorComponent.Instance getComponent ()
 Component behavior. More...
 
ECBehaviorComponent getComponent ()
 Component behavior to animate. More...
 
String getControllerName ()
 Controller name or null to use first controller. More...
 
ECBehaviorAnimated getECBehavior ()
 Behavior. More...
 
ECComposeAnimator.Playback getPlayback ()
 Playback. More...
 
bool getPlaying ()
 Playing back. More...
 
TSNamedTriggerTarget getTargetPlaying ()
 Trigger target to reflect playing state. More...
 
ECPString getTargetPlaying ()
 Target playing. More...
 
ECBehaviorTriggered.Instance getTrigger ()
 Trigger playing or null. More...
 
ECBehaviorTriggered getTrigger ()
 Trigger playing. More...
 
TSTriggerTable getTriggerTable ()
 Trigger table to link trigger expression to or null if not set. More...
 
TSTriggerTable getTriggerTable ()
 Trigger table or null if not used. More...
 
void init (StubElement stub)
 Initialize element from stub. More...
 
Instance new (BehaviorElementClass eclass, ECBehaviorComponent component)
 Create behavior element class. More...
 
Instance new (BehaviorElementClass eclass, ECBehaviorComponent component, Loaders loaders, TSTriggerTable triggerTable)
 Create behavior element class. More...
 
Instance new (BehaviorElementClass eclass, ECBehaviorComponent component, Loaders loaders, TSTriggerTable triggerTable, String id)
 Create behavior element class. More...
 
Instance new (BehaviorElementClass eclass, ECBehaviorComponent component, Loaders loaders, TSTriggerTable triggerTable, String id, String subID)
 
Instance new (BehaviorElementClass eclass, ECBehaviorComponent component, Loaders loaders, TSTriggerTable triggerTable, String id, String subID, String prefix)
 
Instance new (BehaviorElementClass eclass, ECBehaviorComponent component, String id)
 Create behavior element class. More...
 
Instance new (BehaviorElementClass eclass, ECBehaviorComponent component, String id, String subID)
 Create behavior element class. More...
 
Instance new (ECBehaviorAnimated ecbehavior, BehaviorElement element)
 Create element. More...
 
void postThink (float elapsed)
 
void removeListener (Listener listener)
 Remove listener. More...
 
void setControllerName (String name)
 Set controller name or null to use first controller. More...
 
void setPlaying (bool playing)
 Set if playing back. More...
 
void think (float elapsed)
 Think about what to do for the next frame update. More...
 
- Public Member Functions inherited from Dragengine.Scenery.DefaultECBehaviorInstance
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 readFromFile (PersistencyEnvironment env, FileReader reader)
 Read behavior instance from file. 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...
 
void writeToFile (PersistencyEnvironment env, FileWriter writer)
 Write behavior instance to file. More...
 

Static Public Member Functions

static ECBehaviorAnimated getBehaviorIn (BehaviorElementClass eclass)
 Get behavior in element class or null if absent. More...
 

Public Attributes

ECComposeAnimator pAnimator
 
AnimatorInstance pAnimatorInstance
 
bool pApplyPostThink
 
ECPBoolean pApplyPostThink
 
ECBehaviorComponent.Instance pComponent
 
ECBehaviorComponent pComponent
 
String pControllerName
 
ECBehaviorAnimated pECBehavior
 
Array pListenerFactories
 
Array pListeners
 
ECComposeAnimator.Playback pPlayback
 
TSNamedTriggerTarget pTargetPlaying
 
ECPString pTargetPlaying
 
ECBehaviorTriggered.Instance pTrigger
 
ECBehaviorTriggered pTrigger
 
TSTriggerTable pTriggerTable
 

Protected Member Functions

void applyAnimator (float elapsed)
 
AnimatorInstance createAnimatorInstance (StubElement stub)
 Create animator instance for the element. More...
 
ECComposeAnimator.Playback createPlayback (StubElement stub)
 Create playback instance helper. More...
 
void setTriggerTable (TSTriggerTable triggerTable)
 Trigger table to link trigger expression to or null if not set. More...
 
void setTriggerTable (TSTriggerTable triggerTable)
 Set trigger table or null if not used. 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

◆ addListener()

void Dragengine.Scenery.ECBehaviorAnimated.Instance.addListener ( Listener  listener)

Add listener.

◆ addListenerFactory() [1/2]

void Dragengine.Scenery.ECBehaviorAnimated.Instance.addListenerFactory ( Block  blockFactory)

Add listener factory using block.

Block receives as parameter Instance and returns Listener.

◆ addListenerFactory() [2/2]

void Dragengine.Scenery.ECBehaviorAnimated.Instance.addListenerFactory ( ListenerFactory  factory)

Add listener factory.

◆ addToGameWorld()

void Dragengine.Scenery.ECBehaviorAnimated.Instance.addToGameWorld ( )

Add element to game world.

Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.

◆ applyAnimator()

void Dragengine.Scenery.ECBehaviorAnimated.Instance.applyAnimator ( float  elapsed)
protected

Apply animator.

◆ createAnimatorInstance()

AnimatorInstance Dragengine.Scenery.ECBehaviorAnimated.Instance.createAnimatorInstance ( StubElement  stub)
protected

Create animator instance for the element.

Default implementation uses ECComposeAnimator.createAnimatorInstance().

◆ createListeners()

void Dragengine.Scenery.ECBehaviorAnimated.Instance.createListeners ( Instance  instance)

Create listeners from factories adding them to behavior instance.

◆ createPlayback()

ECComposeAnimator.Playback Dragengine.Scenery.ECBehaviorAnimated.Instance.createPlayback ( StubElement  stub)
protected

Create playback instance helper.

Default implementation uses ECComposeAnimator.createPlayback().

◆ dispose() [1/2]

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

Dispose of composeable instance.

Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.

◆ dispose() [2/2]

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

Dispose of behavior.

Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.

◆ forEachListenerFactory()

void Dragengine.Scenery.ECBehaviorAnimated.Instance.forEachListenerFactory ( Block  ablock)

Visit listener factories with block with argument ListenerFactory.

◆ getAnimator()

ECComposeAnimator Dragengine.Scenery.ECBehaviorAnimated.Instance.getAnimator ( )

Composeable animator for element class.

◆ getAnimatorInstance()

AnimatorInstance Dragengine.Scenery.ECBehaviorAnimated.Instance.getAnimatorInstance ( )

Animator instance.

◆ getApplyPostThink() [1/2]

bool Dragengine.Scenery.ECBehaviorAnimated.Instance.getApplyPostThink ( )

Apply animator during post think instead off during think.

Version
1.7

◆ getApplyPostThink() [2/2]

ECPBoolean Dragengine.Scenery.ECBehaviorAnimated.Instance.getApplyPostThink ( )

Apply animator during post think instead off during think.

Version
1.7

◆ getBehaviorIn()

static ECBehaviorAnimated Dragengine.Scenery.ECBehaviorAnimated.Instance.getBehaviorIn ( BehaviorElementClass  eclass)
static

Get behavior in element class or null if absent.

Use this method to check if a particular BehaviorElementClass contains a behavior of type ECBehaviorComponent.

◆ getComponent() [1/2]

ECBehaviorComponent.Instance Dragengine.Scenery.ECBehaviorAnimated.Instance.getComponent ( )

Component behavior.

◆ getComponent() [2/2]

ECBehaviorComponent Dragengine.Scenery.ECBehaviorAnimated.Instance.getComponent ( )

Component behavior to animate.

◆ getControllerName()

String Dragengine.Scenery.ECBehaviorAnimated.Instance.getControllerName ( )

Controller name or null to use first controller.

◆ getECBehavior()

ECBehaviorAnimated Dragengine.Scenery.ECBehaviorAnimated.Instance.getECBehavior ( )

Behavior.

◆ getPlayback()

ECComposeAnimator.Playback Dragengine.Scenery.ECBehaviorAnimated.Instance.getPlayback ( )

Playback.

◆ getPlaying()

bool Dragengine.Scenery.ECBehaviorAnimated.Instance.getPlaying ( )

Playing back.

◆ getTargetPlaying() [1/2]

TSNamedTriggerTarget Dragengine.Scenery.ECBehaviorAnimated.Instance.getTargetPlaying ( )

Trigger target to reflect playing state.

◆ getTargetPlaying() [2/2]

ECPString Dragengine.Scenery.ECBehaviorAnimated.Instance.getTargetPlaying ( )

Target playing.

◆ getTrigger() [1/2]

ECBehaviorTriggered.Instance Dragengine.Scenery.ECBehaviorAnimated.Instance.getTrigger ( )

Trigger playing or null.

◆ getTrigger() [2/2]

ECBehaviorTriggered Dragengine.Scenery.ECBehaviorAnimated.Instance.getTrigger ( )

Trigger playing.

◆ getTriggerTable() [1/2]

TSTriggerTable Dragengine.Scenery.ECBehaviorAnimated.Instance.getTriggerTable ( )

Trigger table to link trigger expression to or null if not set.

◆ getTriggerTable() [2/2]

TSTriggerTable Dragengine.Scenery.ECBehaviorAnimated.Instance.getTriggerTable ( )

Trigger table or null if not used.

◆ init()

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

Initialize element from stub.

Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.

◆ new() [1/8]

Instance Dragengine.Scenery.ECBehaviorAnimated.Instance.new ( BehaviorElementClass  eclass,
ECBehaviorComponent  component 
)

Create behavior element class.

◆ new() [2/8]

Instance Dragengine.Scenery.ECBehaviorAnimated.Instance.new ( BehaviorElementClass  eclass,
ECBehaviorComponent  component,
Loaders  loaders,
TSTriggerTable  triggerTable 
)

Create behavior element class.

◆ new() [3/8]

Instance Dragengine.Scenery.ECBehaviorAnimated.Instance.new ( BehaviorElementClass  eclass,
ECBehaviorComponent  component,
Loaders  loaders,
TSTriggerTable  triggerTable,
String  id 
)

Create behavior element class.

◆ new() [4/8]

Instance Dragengine.Scenery.ECBehaviorAnimated.Instance.new ( BehaviorElementClass  eclass,
ECBehaviorComponent  component,
Loaders  loaders,
TSTriggerTable  triggerTable,
String  id,
String  subID 
)

◆ new() [5/8]

Instance Dragengine.Scenery.ECBehaviorAnimated.Instance.new ( BehaviorElementClass  eclass,
ECBehaviorComponent  component,
Loaders  loaders,
TSTriggerTable  triggerTable,
String  id,
String  subID,
String  prefix 
)

◆ new() [6/8]

Instance Dragengine.Scenery.ECBehaviorAnimated.Instance.new ( BehaviorElementClass  eclass,
ECBehaviorComponent  component,
String  id 
)

Create behavior element class.

◆ new() [7/8]

Instance Dragengine.Scenery.ECBehaviorAnimated.Instance.new ( BehaviorElementClass  eclass,
ECBehaviorComponent  component,
String  id,
String  subID 
)

Create behavior element class.

◆ new() [8/8]

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

Create element.

◆ postThink()

void Dragengine.Scenery.ECBehaviorAnimated.Instance.postThink ( float  elapsed)

Post think.

Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.

◆ removeListener()

void Dragengine.Scenery.ECBehaviorAnimated.Instance.removeListener ( Listener  listener)

Remove listener.

◆ setControllerName()

void Dragengine.Scenery.ECBehaviorAnimated.Instance.setControllerName ( String  name)

Set controller name or null to use first controller.

◆ setPlaying()

void Dragengine.Scenery.ECBehaviorAnimated.Instance.setPlaying ( bool  playing)

Set if playing back.

◆ setTriggerTable() [1/2]

void Dragengine.Scenery.ECBehaviorAnimated.Instance.setTriggerTable ( TSTriggerTable  triggerTable)
protected

Trigger table to link trigger expression to or null if not set.

◆ setTriggerTable() [2/2]

void Dragengine.Scenery.ECBehaviorAnimated.Instance.setTriggerTable ( TSTriggerTable  triggerTable)
protected

Set trigger table or null if not used.

◆ think()

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

Think about what to do for the next frame update.

Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.

Member Data Documentation

◆ pAnimator

ECComposeAnimator Dragengine.Scenery.ECBehaviorAnimated.Instance.pAnimator

◆ pAnimatorInstance

AnimatorInstance Dragengine.Scenery.ECBehaviorAnimated.Instance.pAnimatorInstance

◆ pApplyPostThink [1/2]

bool Dragengine.Scenery.ECBehaviorAnimated.Instance.pApplyPostThink

◆ pApplyPostThink [2/2]

ECPBoolean Dragengine.Scenery.ECBehaviorAnimated.Instance.pApplyPostThink

◆ pComponent [1/2]

ECBehaviorComponent.Instance Dragengine.Scenery.ECBehaviorAnimated.Instance.pComponent

◆ pComponent [2/2]

ECBehaviorComponent Dragengine.Scenery.ECBehaviorAnimated.Instance.pComponent

◆ pControllerName

String Dragengine.Scenery.ECBehaviorAnimated.Instance.pControllerName

◆ pECBehavior

ECBehaviorAnimated Dragengine.Scenery.ECBehaviorAnimated.Instance.pECBehavior

◆ pListenerFactories

Array Dragengine.Scenery.ECBehaviorAnimated.Instance.pListenerFactories

◆ pListeners

Array Dragengine.Scenery.ECBehaviorAnimated.Instance.pListeners

◆ pPlayback

ECComposeAnimator.Playback Dragengine.Scenery.ECBehaviorAnimated.Instance.pPlayback

◆ pTargetPlaying [1/2]

TSNamedTriggerTarget Dragengine.Scenery.ECBehaviorAnimated.Instance.pTargetPlaying

◆ pTargetPlaying [2/2]

ECPString Dragengine.Scenery.ECBehaviorAnimated.Instance.pTargetPlaying

◆ pTrigger [1/2]

ECBehaviorTriggered.Instance Dragengine.Scenery.ECBehaviorAnimated.Instance.pTrigger

◆ pTrigger [2/2]

ECBehaviorTriggered Dragengine.Scenery.ECBehaviorAnimated.Instance.pTrigger

◆ pTriggerTable

TSTriggerTable Dragengine.Scenery.ECBehaviorAnimated.Instance.pTriggerTable

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