Drag[en]gine Script Module DragonScript
1.21
|
Behavior instance. More...
Public Member Functions | |
void | captureState (int number) |
Capture state with number. More... | |
void | dispose () |
Dispose of behavior instance. More... | |
String | getActiveAnimatorID () |
Active animator ID or empty string not set. More... | |
Animator | getAnimator () |
Animator. More... | |
AnimatorInstance | getAnimatorInstance () |
Animator instance. More... | |
ECBehaviorComponent.Instance | getComponent () |
Component behavior. More... | |
AnimatorController | getControllerNamed (String name) |
Get named controller or null if absent. More... | |
ECBehaviorActorAnimated | getECBehavior () |
Behavior. More... | |
ECBehaviorLocomotion.Instance | getLocomotion () |
Locomotion behavior or null. More... | |
void | init (StubElement stub) |
Initialize behavior from stub. More... | |
Instance | new (ECBehaviorActorAnimated ecbehavior, BehaviorElement element) |
Create behavior instance. More... | |
void | notifyControllersChanged (float elapsed) |
Notify listeners controllers have changed. More... | |
void | readControllersFromFile (FileReader reader) |
Read controller values from file reader. More... | |
void | removeListener (Listener listener) |
Remove listener. More... | |
void | setActiveAnimatorID (String id) |
Set active animator ID or empty string to clear. More... | |
void | setAnimator (Animator animator) |
Activate animator. More... | |
void | writeControllersToFile (FileWriter writer) |
Write animator controller values to file. More... | |
void | writeToFile (PersistencyEnvironment env, FileWriter writer) |
Write behavior to file. 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 | think (float elapsed) |
Think about what to do for the next frame update. More... | |
Public Attributes | |
String | pActiveAnimatorID |
AnimatorInstance | pAnimatorInstance |
Dictionary | pAnimators |
ECBehaviorComponent.Instance | pComponent |
Dictionary | pControllerMappings |
ECBehaviorActorAnimated | pECBehavior |
Array | pListeners |
ECBehaviorLocomotion.Instance | pLocomotion |
Protected Member Functions | |
void | initControllerMappings () |
Init controller mappings. 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.ECBehaviorActorAnimated.Instance.captureState | ( | int | number | ) |
Capture state with number.
void Dragengine.Scenery.ECBehaviorActorAnimated.Instance.dispose | ( | ) |
Dispose of behavior instance.
Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.
String Dragengine.Scenery.ECBehaviorActorAnimated.Instance.getActiveAnimatorID | ( | ) |
Active animator ID or empty string not set.
AnimatorInstance Dragengine.Scenery.ECBehaviorActorAnimated.Instance.getAnimatorInstance | ( | ) |
Animator instance.
ECBehaviorComponent.Instance Dragengine.Scenery.ECBehaviorActorAnimated.Instance.getComponent | ( | ) |
Component behavior.
AnimatorController Dragengine.Scenery.ECBehaviorActorAnimated.Instance.getControllerNamed | ( | String | name | ) |
Get named controller or null if absent.
ECBehaviorActorAnimated Dragengine.Scenery.ECBehaviorActorAnimated.Instance.getECBehavior | ( | ) |
Behavior.
ECBehaviorLocomotion.Instance Dragengine.Scenery.ECBehaviorActorAnimated.Instance.getLocomotion | ( | ) |
Locomotion behavior or null.
void Dragengine.Scenery.ECBehaviorActorAnimated.Instance.init | ( | StubElement | stub | ) |
Initialize behavior from stub.
Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.
|
protected |
Init controller mappings.
Instance Dragengine.Scenery.ECBehaviorActorAnimated.Instance.new | ( | ECBehaviorActorAnimated | ecbehavior, |
BehaviorElement | element | ||
) |
Create behavior instance.
void Dragengine.Scenery.ECBehaviorActorAnimated.Instance.notifyControllersChanged | ( | float | elapsed | ) |
Notify listeners controllers have changed.
void Dragengine.Scenery.ECBehaviorActorAnimated.Instance.readControllersFromFile | ( | FileReader | reader | ) |
Read controller values from file reader.
Reads first byte controller count (max 255) then each controller value as float. Assigns value only to existing controllers to be safe against problems.
void Dragengine.Scenery.ECBehaviorActorAnimated.Instance.removeListener | ( | Listener | listener | ) |
Remove listener.
void Dragengine.Scenery.ECBehaviorActorAnimated.Instance.setActiveAnimatorID | ( | String | id | ) |
Set active animator ID or empty string to clear.
void Dragengine.Scenery.ECBehaviorActorAnimated.Instance.setAnimator | ( | Animator | animator | ) |
Activate animator.
void Dragengine.Scenery.ECBehaviorActorAnimated.Instance.writeControllersToFile | ( | FileWriter | writer | ) |
Write animator controller values to file.
Writes first byte controller count (max 255) then each controller value as float.
void Dragengine.Scenery.ECBehaviorActorAnimated.Instance.writeToFile | ( | PersistencyEnvironment | env, |
FileWriter | writer | ||
) |
Write behavior to file.
Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.
String Dragengine.Scenery.ECBehaviorActorAnimated.Instance.pActiveAnimatorID |
AnimatorInstance Dragengine.Scenery.ECBehaviorActorAnimated.Instance.pAnimatorInstance |
Dictionary Dragengine.Scenery.ECBehaviorActorAnimated.Instance.pAnimators |
ECBehaviorComponent.Instance Dragengine.Scenery.ECBehaviorActorAnimated.Instance.pComponent |
Dictionary Dragengine.Scenery.ECBehaviorActorAnimated.Instance.pControllerMappings |
ECBehaviorActorAnimated Dragengine.Scenery.ECBehaviorActorAnimated.Instance.pECBehavior |
Array Dragengine.Scenery.ECBehaviorActorAnimated.Instance.pListeners |
ECBehaviorLocomotion.Instance Dragengine.Scenery.ECBehaviorActorAnimated.Instance.pLocomotion |