Drag[en]gine Script Module DragonScript 1.32.1
Loading...
Searching...
No Matches
Dragengine.Scenery.ECBehaviorComposed.Instance Class Reference

Behavior instance. More...

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

Public Member Functions

void addToGameWorld ()
 Add element to game world.
 
bool getChildrenCreated ()
 Children have been created.
 
ECBehaviorComposed getECBehavior ()
 Behavior.
 
Instance new (ECBehaviorComposed ecbehavior, BehaviorElement element)
 Create element.
 
void writeToFile (PersistencyEnvironment env, FileWriter writer)
 
- Public Member Functions inherited from Dragengine.Scenery.DefaultECBehaviorInstance
void attachToParent (Element parent)
 Attach element to object set by the mapper in the IGDE World Editor.
 
void dispose ()
 Dispose of behavior instance.
 
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.
 

Public Attributes

bool pChildrenCreated
 
ECBehaviorComposed pECBehavior
 
- Public Attributes inherited from Dragengine.Scenery.DefaultECBehaviorInstance
BehaviorElement pElement
 
int pInstanceIndex
 
bool pRequiresEnterFrame
 
bool pRequiresThink
 

Protected Member Functions

void createAndAddChildren ()
 Create and add children.
 
- 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.
 

Detailed Description

Behavior instance.

Member Function Documentation

◆ addToGameWorld()

void Dragengine.Scenery.ECBehaviorComposed.Instance.addToGameWorld ( )

Add element to game world.

Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.

◆ createAndAddChildren()

void Dragengine.Scenery.ECBehaviorComposed.Instance.createAndAddChildren ( )
protected

Create and add children.

◆ getChildrenCreated()

bool Dragengine.Scenery.ECBehaviorComposed.Instance.getChildrenCreated ( )

Children have been created.

◆ getECBehavior()

ECBehaviorComposed Dragengine.Scenery.ECBehaviorComposed.Instance.getECBehavior ( )

Behavior.

◆ new()

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

Create element.

◆ writeToFile()

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

Writes the element to a file.

Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.

Member Data Documentation

◆ pChildrenCreated

bool Dragengine.Scenery.ECBehaviorComposed.Instance.pChildrenCreated

◆ pECBehavior

ECBehaviorComposed Dragengine.Scenery.ECBehaviorComposed.Instance.pECBehavior

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