|
Drag[en]gine Script Module DragonScript 1.32.1
|
Behavior instance. More...
Public Member Functions | |
| void | dispose () |
| Dispose of behavior instance. | |
| ECBehaviorInteraction | getECBehavior () |
| Behavior. | |
| Interaction | getInteractionAt (String name) |
| Named interaction or null. | |
| Array | getInteractionNames () |
| Array of String interaction names. | |
| bool | hasInteractionAt (String name) |
| Named interaction is present. | |
| bool | interact (String name, Array parameters, BehaviorElement source) |
| Interact with named interaction with parameters if present. | |
| bool | interact (String name, BehaviorElement source) |
| Interact with named interaction if present. | |
| Instance | new (ECBehaviorInteraction ecbehavior, BehaviorElement element) |
| Create element. | |
| void | removeInteraction (String name) |
| Remove interaction if present. | |
| void | setInteractionAt (String name, Interaction interaction) |
| Set interaction. | |
Public Member Functions inherited from Dragengine.Scenery.DefaultECBehaviorInstance | |
| void | addToGameWorld () |
| Add element to game world. | |
| void | attachToParent (Element parent) |
| Attach element to object set by the mapper in the IGDE World Editor. | |
| void | enterFrame () |
| Frame update started. | |
| void | geometryChanged () |
| Position or orientation changed. | |
| BehaviorElement | getElement () |
| Behavior element to apply behavior to. | |
| int | getInstanceIndex () |
| Behavior instance index. | |
| void | init (StubElement stub) |
| Initialize element from stub. | |
| DefaultECBehaviorInstance | new (BehaviorElement element) |
| Create default composeable instance. | |
| void | postThink (float elapsed) |
| Post thinking after physics processing is finished. | |
| void | readFromFile (PersistencyEnvironment env, FileReader reader) |
| Read behavior instance from file. | |
| void | removeFromGameWorld () |
| Remove element from game world. | |
| bool | requiresEnterFrame () |
| Behavior instance requires enterFrame() to be called. | |
| bool | requiresThink () |
| Behavior instance requires think() to be called. | |
| void | stateChanged () |
| State changed (visble, touchable). | |
| void | think (float elapsed) |
| Think about what to do for the next frame update. | |
| void | writeToFile (PersistencyEnvironment env, FileWriter writer) |
| Write behavior instance to file. | |
Public Attributes | |
| ECBehaviorInteraction | pECBehavior |
| Dictionary | pInteractions |
Public Attributes inherited from Dragengine.Scenery.DefaultECBehaviorInstance | |
| BehaviorElement | pElement |
| int | pInstanceIndex |
| bool | pRequiresEnterFrame |
| bool | pRequiresThink |
Additional Inherited Members | |
Protected Member Functions inherited from Dragengine.Scenery.DefaultECBehaviorInstance | |
| void | setRequiresEnterFrame (bool required) |
| Set if behavior instance requires enterFrame() to be called. | |
| void | setRequiresThink (bool required) |
| Set if behavior instance requires think() to be called. | |
Behavior instance.
| void Dragengine.Scenery.ECBehaviorInteraction.Instance.dispose | ( | ) |
Dispose of behavior instance.
Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.
| ECBehaviorInteraction Dragengine.Scenery.ECBehaviorInteraction.Instance.getECBehavior | ( | ) |
Behavior.
| Interaction Dragengine.Scenery.ECBehaviorInteraction.Instance.getInteractionAt | ( | String | name | ) |
Named interaction or null.
| Array Dragengine.Scenery.ECBehaviorInteraction.Instance.getInteractionNames | ( | ) |
Array of String interaction names.
| bool Dragengine.Scenery.ECBehaviorInteraction.Instance.hasInteractionAt | ( | String | name | ) |
Named interaction is present.
| bool Dragengine.Scenery.ECBehaviorInteraction.Instance.interact | ( | String | name, |
| Array | parameters, | ||
| BehaviorElement | source | ||
| ) |
Interact with named interaction with parameters if present.
If named interaction is absent false is returned. Otherwise returns the return value of running Interaction::interact().
| bool Dragengine.Scenery.ECBehaviorInteraction.Instance.interact | ( | String | name, |
| BehaviorElement | source | ||
| ) |
Interact with named interaction if present.
If named interaction is absent false is returned. Otherwise returns the return value of running Interaction::interact().
| Instance Dragengine.Scenery.ECBehaviorInteraction.Instance.new | ( | ECBehaviorInteraction | ecbehavior, |
| BehaviorElement | element | ||
| ) |
Create element.
| void Dragengine.Scenery.ECBehaviorInteraction.Instance.removeInteraction | ( | String | name | ) |
Remove interaction if present.
| void Dragengine.Scenery.ECBehaviorInteraction.Instance.setInteractionAt | ( | String | name, |
| Interaction | interaction | ||
| ) |
Set interaction.
If interaction with name is present it is replaced.
| ECBehaviorInteraction Dragengine.Scenery.ECBehaviorInteraction.Instance.pECBehavior |
| Dictionary Dragengine.Scenery.ECBehaviorInteraction.Instance.pInteractions |