Drag[en]gine Script Module DragonScript
1.23
|
Behavior instance. More...
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... | |
Behavior instance.
void Dragengine.Scenery.ECBehaviorAnimated.Instance.addListener | ( | Listener | listener | ) |
Add listener.
void Dragengine.Scenery.ECBehaviorAnimated.Instance.addListenerFactory | ( | Block | blockFactory | ) |
void Dragengine.Scenery.ECBehaviorAnimated.Instance.addListenerFactory | ( | ListenerFactory | factory | ) |
Add listener factory.
void Dragengine.Scenery.ECBehaviorAnimated.Instance.addToGameWorld | ( | ) |
Add element to game world.
Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.
|
protected |
Apply animator.
|
protected |
Create animator instance for the element.
Default implementation uses ECComposeAnimator.createAnimatorInstance().
void Dragengine.Scenery.ECBehaviorAnimated.Instance.createListeners | ( | Instance | instance | ) |
Create listeners from factories adding them to behavior instance.
|
protected |
Create playback instance helper.
Default implementation uses ECComposeAnimator.createPlayback().
void Dragengine.Scenery.ECBehaviorAnimated.Instance.dispose | ( | ) |
Dispose of composeable instance.
Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.
void Dragengine.Scenery.ECBehaviorAnimated.Instance.dispose | ( | ) |
Dispose of behavior.
Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.
void Dragengine.Scenery.ECBehaviorAnimated.Instance.forEachListenerFactory | ( | Block | ablock | ) |
Visit listener factories with block with argument ListenerFactory.
ECComposeAnimator Dragengine.Scenery.ECBehaviorAnimated.Instance.getAnimator | ( | ) |
Composeable animator for element class.
AnimatorInstance Dragengine.Scenery.ECBehaviorAnimated.Instance.getAnimatorInstance | ( | ) |
Animator instance.
bool Dragengine.Scenery.ECBehaviorAnimated.Instance.getApplyPostThink | ( | ) |
Apply animator during post think instead off during think.
ECPBoolean Dragengine.Scenery.ECBehaviorAnimated.Instance.getApplyPostThink | ( | ) |
Apply animator during post think instead off during think.
|
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.
ECBehaviorComponent.Instance Dragengine.Scenery.ECBehaviorAnimated.Instance.getComponent | ( | ) |
Component behavior.
ECBehaviorComponent Dragengine.Scenery.ECBehaviorAnimated.Instance.getComponent | ( | ) |
Component behavior to animate.
String Dragengine.Scenery.ECBehaviorAnimated.Instance.getControllerName | ( | ) |
Controller name or null to use first controller.
ECBehaviorAnimated Dragengine.Scenery.ECBehaviorAnimated.Instance.getECBehavior | ( | ) |
Behavior.
ECComposeAnimator.Playback Dragengine.Scenery.ECBehaviorAnimated.Instance.getPlayback | ( | ) |
Playback.
bool Dragengine.Scenery.ECBehaviorAnimated.Instance.getPlaying | ( | ) |
Playing back.
TSNamedTriggerTarget Dragengine.Scenery.ECBehaviorAnimated.Instance.getTargetPlaying | ( | ) |
Trigger target to reflect playing state.
ECPString Dragengine.Scenery.ECBehaviorAnimated.Instance.getTargetPlaying | ( | ) |
Target playing.
ECBehaviorTriggered.Instance Dragengine.Scenery.ECBehaviorAnimated.Instance.getTrigger | ( | ) |
Trigger playing or null.
ECBehaviorTriggered Dragengine.Scenery.ECBehaviorAnimated.Instance.getTrigger | ( | ) |
Trigger playing.
TSTriggerTable Dragengine.Scenery.ECBehaviorAnimated.Instance.getTriggerTable | ( | ) |
Trigger table to link trigger expression to or null if not set.
TSTriggerTable Dragengine.Scenery.ECBehaviorAnimated.Instance.getTriggerTable | ( | ) |
Trigger table or null if not used.
void Dragengine.Scenery.ECBehaviorAnimated.Instance.init | ( | StubElement | stub | ) |
Initialize element from stub.
Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.
Instance Dragengine.Scenery.ECBehaviorAnimated.Instance.new | ( | BehaviorElementClass | eclass, |
ECBehaviorComponent | component | ||
) |
Create behavior element class.
Instance Dragengine.Scenery.ECBehaviorAnimated.Instance.new | ( | BehaviorElementClass | eclass, |
ECBehaviorComponent | component, | ||
Loaders | loaders, | ||
TSTriggerTable | triggerTable | ||
) |
Create behavior element class.
Instance Dragengine.Scenery.ECBehaviorAnimated.Instance.new | ( | BehaviorElementClass | eclass, |
ECBehaviorComponent | component, | ||
Loaders | loaders, | ||
TSTriggerTable | triggerTable, | ||
String | id | ||
) |
Create behavior element class.
Instance Dragengine.Scenery.ECBehaviorAnimated.Instance.new | ( | BehaviorElementClass | eclass, |
ECBehaviorComponent | component, | ||
Loaders | loaders, | ||
TSTriggerTable | triggerTable, | ||
String | id, | ||
String | subID | ||
) |
Instance Dragengine.Scenery.ECBehaviorAnimated.Instance.new | ( | BehaviorElementClass | eclass, |
ECBehaviorComponent | component, | ||
Loaders | loaders, | ||
TSTriggerTable | triggerTable, | ||
String | id, | ||
String | subID, | ||
String | prefix | ||
) |
Instance Dragengine.Scenery.ECBehaviorAnimated.Instance.new | ( | BehaviorElementClass | eclass, |
ECBehaviorComponent | component, | ||
String | id | ||
) |
Create behavior element class.
Instance Dragengine.Scenery.ECBehaviorAnimated.Instance.new | ( | BehaviorElementClass | eclass, |
ECBehaviorComponent | component, | ||
String | id, | ||
String | subID | ||
) |
Create behavior element class.
Instance Dragengine.Scenery.ECBehaviorAnimated.Instance.new | ( | ECBehaviorAnimated | ecbehavior, |
BehaviorElement | element | ||
) |
Create element.
void Dragengine.Scenery.ECBehaviorAnimated.Instance.postThink | ( | float | elapsed | ) |
Post think.
Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.
void Dragengine.Scenery.ECBehaviorAnimated.Instance.removeListener | ( | Listener | listener | ) |
Remove listener.
void Dragengine.Scenery.ECBehaviorAnimated.Instance.setControllerName | ( | String | name | ) |
Set controller name or null to use first controller.
void Dragengine.Scenery.ECBehaviorAnimated.Instance.setPlaying | ( | bool | playing | ) |
Set if playing back.
|
protected |
Trigger table to link trigger expression to or null if not set.
|
protected |
Set trigger table or null if not used.
void Dragengine.Scenery.ECBehaviorAnimated.Instance.think | ( | float | elapsed | ) |
Think about what to do for the next frame update.
Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.
ECComposeAnimator Dragengine.Scenery.ECBehaviorAnimated.Instance.pAnimator |
AnimatorInstance Dragengine.Scenery.ECBehaviorAnimated.Instance.pAnimatorInstance |
bool Dragengine.Scenery.ECBehaviorAnimated.Instance.pApplyPostThink |
ECPBoolean Dragengine.Scenery.ECBehaviorAnimated.Instance.pApplyPostThink |
ECBehaviorComponent.Instance Dragengine.Scenery.ECBehaviorAnimated.Instance.pComponent |
ECBehaviorComponent Dragengine.Scenery.ECBehaviorAnimated.Instance.pComponent |
String Dragengine.Scenery.ECBehaviorAnimated.Instance.pControllerName |
ECBehaviorAnimated Dragengine.Scenery.ECBehaviorAnimated.Instance.pECBehavior |
Array Dragengine.Scenery.ECBehaviorAnimated.Instance.pListenerFactories |
Array Dragengine.Scenery.ECBehaviorAnimated.Instance.pListeners |
ECComposeAnimator.Playback Dragengine.Scenery.ECBehaviorAnimated.Instance.pPlayback |
TSNamedTriggerTarget Dragengine.Scenery.ECBehaviorAnimated.Instance.pTargetPlaying |
ECPString Dragengine.Scenery.ECBehaviorAnimated.Instance.pTargetPlaying |
ECBehaviorTriggered.Instance Dragengine.Scenery.ECBehaviorAnimated.Instance.pTrigger |
ECBehaviorTriggered Dragengine.Scenery.ECBehaviorAnimated.Instance.pTrigger |
TSTriggerTable Dragengine.Scenery.ECBehaviorAnimated.Instance.pTriggerTable |