|
Drag[en]gine Script Module DragonScript 1.35
|
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.
References pInteractions.
Referenced by getInteractionAt(), and hasInteractionAt().
| ECBehaviorInteraction Dragengine.Scenery.ECBehaviorInteraction.Instance.getECBehavior | ( | ) |
| Interaction Dragengine.Scenery.ECBehaviorInteraction.Instance.getInteractionAt | ( | String | name | ) |
Named interaction or null.
References dispose(), getECBehavior(), and pECBehavior.
Referenced by getInteractionNames().
| Array Dragengine.Scenery.ECBehaviorInteraction.Instance.getInteractionNames | ( | ) |
Array of String interaction names.
References getInteractionAt(), and pInteractions.
| bool Dragengine.Scenery.ECBehaviorInteraction.Instance.hasInteractionAt | ( | String | name | ) |
Named interaction is present.
References dispose(), and pInteractions.
Referenced by removeInteraction().
| 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().
References pInteractions, and removeInteraction().
| 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().
References new(), pInteractions, and setInteractionAt().
| Instance Dragengine.Scenery.ECBehaviorInteraction.Instance.new | ( | ECBehaviorInteraction | ecbehavior, |
| BehaviorElement | element ) |
| void Dragengine.Scenery.ECBehaviorInteraction.Instance.removeInteraction | ( | String | name | ) |
Remove interaction if present.
References hasInteractionAt(), and pInteractions.
Referenced by interact().
| void Dragengine.Scenery.ECBehaviorInteraction.Instance.setInteractionAt | ( | String | name, |
| Interaction | interaction ) |
| ECBehaviorInteraction Dragengine.Scenery.ECBehaviorInteraction.Instance.pECBehavior |
Referenced by getInteractionAt(), and new().
| Dictionary Dragengine.Scenery.ECBehaviorInteraction.Instance.pInteractions |
Referenced by dispose(), getECBehavior(), getInteractionNames(), hasInteractionAt(), interact(), interact(), and removeInteraction().