Drag[en]gine Script Module DragonScript  1.21
Dragengine.Scenery.ECBehaviorActorAnimated.Instance Class Reference

Behavior instance. More...

Inheritance diagram for Dragengine.Scenery.ECBehaviorActorAnimated.Instance:
Dragengine.Scenery.DefaultECBehaviorInstance Dragengine.Scenery.ECBehaviorInstance

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...
 

Detailed Description

Behavior instance.

Member Function Documentation

◆ captureState()

void Dragengine.Scenery.ECBehaviorActorAnimated.Instance.captureState ( int  number)

Capture state with number.

◆ dispose()

void Dragengine.Scenery.ECBehaviorActorAnimated.Instance.dispose ( )

Dispose of behavior instance.

Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.

◆ getActiveAnimatorID()

String Dragengine.Scenery.ECBehaviorActorAnimated.Instance.getActiveAnimatorID ( )

Active animator ID or empty string not set.

◆ getAnimator()

Animator Dragengine.Scenery.ECBehaviorActorAnimated.Instance.getAnimator ( )

◆ getAnimatorInstance()

AnimatorInstance Dragengine.Scenery.ECBehaviorActorAnimated.Instance.getAnimatorInstance ( )

Animator instance.

◆ getComponent()

ECBehaviorComponent.Instance Dragengine.Scenery.ECBehaviorActorAnimated.Instance.getComponent ( )

Component behavior.

◆ getControllerNamed()

AnimatorController Dragengine.Scenery.ECBehaviorActorAnimated.Instance.getControllerNamed ( String  name)

Get named controller or null if absent.

◆ getECBehavior()

ECBehaviorActorAnimated Dragengine.Scenery.ECBehaviorActorAnimated.Instance.getECBehavior ( )

Behavior.

◆ getLocomotion()

ECBehaviorLocomotion.Instance Dragengine.Scenery.ECBehaviorActorAnimated.Instance.getLocomotion ( )

Locomotion behavior or null.

◆ init()

void Dragengine.Scenery.ECBehaviorActorAnimated.Instance.init ( StubElement  stub)

Initialize behavior from stub.

Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.

◆ initControllerMappings()

void Dragengine.Scenery.ECBehaviorActorAnimated.Instance.initControllerMappings ( )
protected

Init controller mappings.

◆ new()

Instance Dragengine.Scenery.ECBehaviorActorAnimated.Instance.new ( ECBehaviorActorAnimated  ecbehavior,
BehaviorElement  element 
)

Create behavior instance.

◆ notifyControllersChanged()

void Dragengine.Scenery.ECBehaviorActorAnimated.Instance.notifyControllersChanged ( float  elapsed)

Notify listeners controllers have changed.

◆ readControllersFromFile()

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.

◆ removeListener()

void Dragengine.Scenery.ECBehaviorActorAnimated.Instance.removeListener ( Listener  listener)

Remove listener.

◆ setActiveAnimatorID()

void Dragengine.Scenery.ECBehaviorActorAnimated.Instance.setActiveAnimatorID ( String  id)

Set active animator ID or empty string to clear.

◆ setAnimator()

void Dragengine.Scenery.ECBehaviorActorAnimated.Instance.setAnimator ( Animator  animator)

Activate animator.

◆ writeControllersToFile()

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.

◆ writeToFile()

void Dragengine.Scenery.ECBehaviorActorAnimated.Instance.writeToFile ( PersistencyEnvironment  env,
FileWriter  writer 
)

Write behavior to file.

Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.

Member Data Documentation

◆ pActiveAnimatorID

String Dragengine.Scenery.ECBehaviorActorAnimated.Instance.pActiveAnimatorID

◆ pAnimatorInstance

AnimatorInstance Dragengine.Scenery.ECBehaviorActorAnimated.Instance.pAnimatorInstance

◆ pAnimators

Dictionary Dragengine.Scenery.ECBehaviorActorAnimated.Instance.pAnimators

◆ pComponent

ECBehaviorComponent.Instance Dragengine.Scenery.ECBehaviorActorAnimated.Instance.pComponent

◆ pControllerMappings

Dictionary Dragengine.Scenery.ECBehaviorActorAnimated.Instance.pControllerMappings

◆ pECBehavior

ECBehaviorActorAnimated Dragengine.Scenery.ECBehaviorActorAnimated.Instance.pECBehavior

◆ pListeners

Array Dragengine.Scenery.ECBehaviorActorAnimated.Instance.pListeners

◆ pLocomotion

ECBehaviorLocomotion.Instance Dragengine.Scenery.ECBehaviorActorAnimated.Instance.pLocomotion

The documentation for this class was generated from the following file: