Drag[en]gine Script Module DragonScript
1.23
|
Behavior instance. More...
Classes | |
enum | State |
State. More... | |
class | SwitchStateListener |
Trigger listener to switch state. More... | |
Public Member Functions | |
void | activate () |
If in deactivated state start transition to activated state. More... | |
void | activate (float startTime) |
If in deactivated state start transition to activated state. More... | |
void | activate (float startTime, bool force) |
If in deactivated state start transition to activated state. More... | |
void | addListenerFactory (Block blockFactory) |
Add listener factory using block. More... | |
void | addListenerFactory (ListenerFactory factory) |
Add listener factory. More... | |
AnimatorInstance | createAnimatorInstance (Element element, StubElement stub) |
Initialize animator instance for element from stub. More... | |
void | createListeners (Instance instance) |
Create listeners from factories adding them to behavior instance. More... | |
void | deactivate (float startTime, bool force) |
If in activated state start transition to deactivated state. 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... | |
ECPAnimation | getAnimation () |
Animation resource. More... | |
ECPAnimator | getAnimator () |
Animator resource. More... | |
AnimatorInstance | getAnimatorInstance () |
Animator instance. More... | |
ECBehaviorComponent.Instance | getComponent () |
Component behavior. More... | |
ECBehaviorComponent | getComponent () |
Component behavior to animate. More... | |
AnimatorController | getControllerActivate () |
Activate animator controller or null. More... | |
AnimatorController | getControllerActivated () |
Activated playback animator controller or null. More... | |
AnimatorController | getControllerDeactivate () |
Deactivate animator controller or null. More... | |
AnimatorController | getControllerDeactivated () |
Deactivated playback animator controller or null. More... | |
String | getControllerNameActivated () |
Name of activated controller. More... | |
String | getControllerNameActivating () |
Name of activate controller. More... | |
String | getControllerNameDeactivated () |
Name of deactivated controller. More... | |
String | getControllerNameDeactivating () |
Name of deactivate controller. More... | |
ECBehaviorTwoStateAnimated | getECBehavior () |
Behavior. More... | |
float | getPercentageDoneActivate () |
Percentage of activating done in the range from 0 to 1. More... | |
float | getPercentageDoneDeactivate () |
Percentage of deactivating done in the range from 0 to 1. More... | |
float | getPlaySpeed () |
Playback speed. More... | |
ECPFloat | getPlaySpeed () |
Play speed. More... | |
State | getState () |
State. More... | |
TSNamedTriggerTarget | getTargetActivated () |
Trigger target to reflect activated state. More... | |
ECPString | getTargetActivated () |
Target activate. More... | |
TSNamedTriggerTarget | getTargetActivating () |
Trigger target to reflect activating state. More... | |
ECPString | getTargetActivating () |
Target activating. More... | |
TSNamedTriggerTarget | getTargetDeactivating () |
Trigger target to reflect deactivating state. More... | |
ECPString | getTargetDeactivating () |
Target deactivating. More... | |
ECBehaviorTriggered.Instance | getTrigger () |
Activate trigger or null if not used. More... | |
ECBehaviorTriggered | getTrigger () |
Trigger activate. 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... | |
bool | isActivated () |
Is in activated state. More... | |
bool | isActivating () |
Is activating. More... | |
bool | isDeactivated () |
Is in deactivated state. More... | |
bool | isDeactivating () |
Is deactivating. 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 (ECBehaviorTwoStateAnimated ecbehavior, BehaviorElement element) |
Create element. More... | |
void | setControllerNameActivated (String name) |
Set name of activated controller. More... | |
void | setControllerNameActivating (String name) |
Set name of activate controller. More... | |
void | setControllerNameDeactivated (String name) |
Set name of deactivated controller. More... | |
void | setControllerNameDeactivating (String name) |
Set name of deactivate controller. More... | |
void | setControllerNames (String deactivated, String activated, String activating, String deactivating) |
Set names of controllers. More... | |
void | setPlaySpeed (float playSpeed) |
Set playback speed. 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 | 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 | 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 ECBehaviorTwoStateAnimated | getBehaviorIn (BehaviorElementClass eclass) |
Get behavior in element class or null if absent. More... | |
Public Attributes | |
AnimatorInstance | pAnimatorInstance |
ECBehaviorComponent.Instance | pComponent |
AnimatorController | pControllerActivate |
AnimatorController | pControllerActivated |
AnimatorController | pControllerDeactivate |
AnimatorController | pControllerDeactivated |
ECBehaviorTwoStateAnimated | pECBehavior |
Array | pListeners |
float | pPlaySpeed |
State | pState |
TSNamedTriggerTarget | pTargetActivated |
TSNamedTriggerTarget | pTargetActivating |
TSNamedTriggerTarget | pTargetDeactivating |
ECBehaviorTriggered.Instance | pTrigger |
TSTriggerTable | pTriggerTable |
Protected Member Functions | |
AnimatorInstance | createAnimatorInstance (StubElement stub) |
Create animator instance for the element. More... | |
String | getAnimatorSource (StubElement stub) |
Source identification for use with exceptions only. More... | |
void | setState (State state) |
Set state. 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... | |
void | updateAnimator (float elapsed) |
Update animator. 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.ECBehaviorTwoStateAnimated.Instance.activate | ( | ) |
If in deactivated state start transition to activated state.
void Dragengine.Scenery.ECBehaviorTwoStateAnimated.Instance.activate | ( | float | startTime | ) |
If in deactivated state start transition to activated state.
startTime | Set playback time startTime after controller lower value. |
void Dragengine.Scenery.ECBehaviorTwoStateAnimated.Instance.activate | ( | float | startTime, |
bool | force | ||
) |
If in deactivated state start transition to activated state.
startTime | Set playback time startTime after controller lower value. |
void Dragengine.Scenery.ECBehaviorTwoStateAnimated.Instance.addListenerFactory | ( | Block | blockFactory | ) |
void Dragengine.Scenery.ECBehaviorTwoStateAnimated.Instance.addListenerFactory | ( | ListenerFactory | factory | ) |
Add listener factory.
AnimatorInstance Dragengine.Scenery.ECBehaviorTwoStateAnimated.Instance.createAnimatorInstance | ( | Element | element, |
StubElement | stub | ||
) |
Initialize animator instance for element from stub.
Assigns the animator and animation to the instance. If at least one controller is present then the first controller is initialized as playback controller. The clamping around and frozen state are set to the looping, respectivily playing parameter The element is responsible to assign a Component to the animator instance.
|
protected |
Create animator instance for the element.
Default implementation uses createAnimatorInstance().
void Dragengine.Scenery.ECBehaviorTwoStateAnimated.Instance.createListeners | ( | Instance | instance | ) |
Create listeners from factories adding them to behavior instance.
void Dragengine.Scenery.ECBehaviorTwoStateAnimated.Instance.deactivate | ( | float | startTime, |
bool | force | ||
) |
If in activated state start transition to deactivated state.
startTime | Set playback time startTime after controller lower value. |
void Dragengine.Scenery.ECBehaviorTwoStateAnimated.Instance.dispose | ( | ) |
Dispose of composeable instance.
Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.
void Dragengine.Scenery.ECBehaviorTwoStateAnimated.Instance.dispose | ( | ) |
Dispose of behavior.
Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.
void Dragengine.Scenery.ECBehaviorTwoStateAnimated.Instance.forEachListenerFactory | ( | Block | ablock | ) |
Visit listener factories with block with argument ListenerFactory.
ECPAnimation Dragengine.Scenery.ECBehaviorTwoStateAnimated.Instance.getAnimation | ( | ) |
Animation resource.
ECPAnimator Dragengine.Scenery.ECBehaviorTwoStateAnimated.Instance.getAnimator | ( | ) |
Animator resource.
AnimatorInstance Dragengine.Scenery.ECBehaviorTwoStateAnimated.Instance.getAnimatorInstance | ( | ) |
Animator instance.
|
protected |
Source identification for use with exceptions only.
Default implementation returns relevant stub parameter or class property depending on which one is set.
|
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.ECBehaviorTwoStateAnimated.Instance.getComponent | ( | ) |
Component behavior.
ECBehaviorComponent Dragengine.Scenery.ECBehaviorTwoStateAnimated.Instance.getComponent | ( | ) |
Component behavior to animate.
AnimatorController Dragengine.Scenery.ECBehaviorTwoStateAnimated.Instance.getControllerActivate | ( | ) |
Activate animator controller or null.
AnimatorController Dragengine.Scenery.ECBehaviorTwoStateAnimated.Instance.getControllerActivated | ( | ) |
Activated playback animator controller or null.
AnimatorController Dragengine.Scenery.ECBehaviorTwoStateAnimated.Instance.getControllerDeactivate | ( | ) |
Deactivate animator controller or null.
AnimatorController Dragengine.Scenery.ECBehaviorTwoStateAnimated.Instance.getControllerDeactivated | ( | ) |
Deactivated playback animator controller or null.
String Dragengine.Scenery.ECBehaviorTwoStateAnimated.Instance.getControllerNameActivated | ( | ) |
Name of activated controller.
String Dragengine.Scenery.ECBehaviorTwoStateAnimated.Instance.getControllerNameActivating | ( | ) |
Name of activate controller.
String Dragengine.Scenery.ECBehaviorTwoStateAnimated.Instance.getControllerNameDeactivated | ( | ) |
Name of deactivated controller.
String Dragengine.Scenery.ECBehaviorTwoStateAnimated.Instance.getControllerNameDeactivating | ( | ) |
Name of deactivate controller.
ECBehaviorTwoStateAnimated Dragengine.Scenery.ECBehaviorTwoStateAnimated.Instance.getECBehavior | ( | ) |
Behavior.
float Dragengine.Scenery.ECBehaviorTwoStateAnimated.Instance.getPercentageDoneActivate | ( | ) |
Percentage of activating done in the range from 0 to 1.
float Dragengine.Scenery.ECBehaviorTwoStateAnimated.Instance.getPercentageDoneDeactivate | ( | ) |
Percentage of deactivating done in the range from 0 to 1.
float Dragengine.Scenery.ECBehaviorTwoStateAnimated.Instance.getPlaySpeed | ( | ) |
Playback speed.
ECPFloat Dragengine.Scenery.ECBehaviorTwoStateAnimated.Instance.getPlaySpeed | ( | ) |
Play speed.
TSNamedTriggerTarget Dragengine.Scenery.ECBehaviorTwoStateAnimated.Instance.getTargetActivated | ( | ) |
Trigger target to reflect activated state.
ECPString Dragengine.Scenery.ECBehaviorTwoStateAnimated.Instance.getTargetActivated | ( | ) |
Target activate.
TSNamedTriggerTarget Dragengine.Scenery.ECBehaviorTwoStateAnimated.Instance.getTargetActivating | ( | ) |
Trigger target to reflect activating state.
ECPString Dragengine.Scenery.ECBehaviorTwoStateAnimated.Instance.getTargetActivating | ( | ) |
Target activating.
TSNamedTriggerTarget Dragengine.Scenery.ECBehaviorTwoStateAnimated.Instance.getTargetDeactivating | ( | ) |
Trigger target to reflect deactivating state.
ECPString Dragengine.Scenery.ECBehaviorTwoStateAnimated.Instance.getTargetDeactivating | ( | ) |
Target deactivating.
ECBehaviorTriggered.Instance Dragengine.Scenery.ECBehaviorTwoStateAnimated.Instance.getTrigger | ( | ) |
Activate trigger or null if not used.
ECBehaviorTriggered Dragengine.Scenery.ECBehaviorTwoStateAnimated.Instance.getTrigger | ( | ) |
Trigger activate.
TSTriggerTable Dragengine.Scenery.ECBehaviorTwoStateAnimated.Instance.getTriggerTable | ( | ) |
Trigger table to link trigger expression to or null if not set.
TSTriggerTable Dragengine.Scenery.ECBehaviorTwoStateAnimated.Instance.getTriggerTable | ( | ) |
Trigger table or null if not used.
void Dragengine.Scenery.ECBehaviorTwoStateAnimated.Instance.init | ( | StubElement | stub | ) |
Initialize element from stub.
Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.
bool Dragengine.Scenery.ECBehaviorTwoStateAnimated.Instance.isActivated | ( | ) |
Is in activated state.
bool Dragengine.Scenery.ECBehaviorTwoStateAnimated.Instance.isActivating | ( | ) |
Is activating.
bool Dragengine.Scenery.ECBehaviorTwoStateAnimated.Instance.isDeactivated | ( | ) |
Is in deactivated state.
bool Dragengine.Scenery.ECBehaviorTwoStateAnimated.Instance.isDeactivating | ( | ) |
Is deactivating.
Instance Dragengine.Scenery.ECBehaviorTwoStateAnimated.Instance.new | ( | BehaviorElementClass | eclass, |
ECBehaviorComponent | component, | ||
Loaders | loaders, | ||
TSTriggerTable | triggerTable, | ||
String | id | ||
) |
Create behavior element class.
Instance Dragengine.Scenery.ECBehaviorTwoStateAnimated.Instance.new | ( | BehaviorElementClass | eclass, |
ECBehaviorComponent | component, | ||
Loaders | loaders, | ||
TSTriggerTable | triggerTable, | ||
String | id, | ||
String | subID | ||
) |
Instance Dragengine.Scenery.ECBehaviorTwoStateAnimated.Instance.new | ( | BehaviorElementClass | eclass, |
ECBehaviorComponent | component, | ||
Loaders | loaders, | ||
TSTriggerTable | triggerTable, | ||
String | id, | ||
String | subID, | ||
String | prefix | ||
) |
Instance Dragengine.Scenery.ECBehaviorTwoStateAnimated.Instance.new | ( | ECBehaviorTwoStateAnimated | ecbehavior, |
BehaviorElement | element | ||
) |
Create element.
void Dragengine.Scenery.ECBehaviorTwoStateAnimated.Instance.setControllerNameActivated | ( | String | name | ) |
Set name of activated controller.
void Dragengine.Scenery.ECBehaviorTwoStateAnimated.Instance.setControllerNameActivating | ( | String | name | ) |
Set name of activate controller.
void Dragengine.Scenery.ECBehaviorTwoStateAnimated.Instance.setControllerNameDeactivated | ( | String | name | ) |
Set name of deactivated controller.
void Dragengine.Scenery.ECBehaviorTwoStateAnimated.Instance.setControllerNameDeactivating | ( | String | name | ) |
Set name of deactivate controller.
void Dragengine.Scenery.ECBehaviorTwoStateAnimated.Instance.setControllerNames | ( | String | deactivated, |
String | activated, | ||
String | activating, | ||
String | deactivating | ||
) |
Set names of controllers.
void Dragengine.Scenery.ECBehaviorTwoStateAnimated.Instance.setPlaySpeed | ( | float | playSpeed | ) |
Set playback speed.
|
protected |
Set state.
|
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.ECBehaviorTwoStateAnimated.Instance.think | ( | float | elapsed | ) |
Think about what to do for the next frame update.
Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.
|
protected |
Update animator.
AnimatorInstance Dragengine.Scenery.ECBehaviorTwoStateAnimated.Instance.pAnimatorInstance |
ECBehaviorComponent.Instance Dragengine.Scenery.ECBehaviorTwoStateAnimated.Instance.pComponent |
AnimatorController Dragengine.Scenery.ECBehaviorTwoStateAnimated.Instance.pControllerActivate |
AnimatorController Dragengine.Scenery.ECBehaviorTwoStateAnimated.Instance.pControllerActivated |
AnimatorController Dragengine.Scenery.ECBehaviorTwoStateAnimated.Instance.pControllerDeactivate |
AnimatorController Dragengine.Scenery.ECBehaviorTwoStateAnimated.Instance.pControllerDeactivated |
ECBehaviorTwoStateAnimated Dragengine.Scenery.ECBehaviorTwoStateAnimated.Instance.pECBehavior |
Array Dragengine.Scenery.ECBehaviorTwoStateAnimated.Instance.pListeners |
float Dragengine.Scenery.ECBehaviorTwoStateAnimated.Instance.pPlaySpeed |
State Dragengine.Scenery.ECBehaviorTwoStateAnimated.Instance.pState |
TSNamedTriggerTarget Dragengine.Scenery.ECBehaviorTwoStateAnimated.Instance.pTargetActivated |
TSNamedTriggerTarget Dragengine.Scenery.ECBehaviorTwoStateAnimated.Instance.pTargetActivating |
TSNamedTriggerTarget Dragengine.Scenery.ECBehaviorTwoStateAnimated.Instance.pTargetDeactivating |
ECBehaviorTriggered.Instance Dragengine.Scenery.ECBehaviorTwoStateAnimated.Instance.pTrigger |
TSTriggerTable Dragengine.Scenery.ECBehaviorTwoStateAnimated.Instance.pTriggerTable |