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

Behavior instance. More...

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

Public Member Functions

void addToGameWorld ()
 Add element to game world.
 
void dispose ()
 Dispose of behavior instance.
 
ECBehaviorWorld getECBehavior ()
 Behavior.
 
TagResolver getTagResolver ()
 Tag resolver.
 
StubGameWorld getWorldStub ()
 World stub to create content from or null.
 
void init (StubElement stub)
 Initialize element from stub.
 
Instance new (ECBehaviorWorld ecbehavior, BehaviorElement element)
 Create element.
 
void removeFromGameWorld ()
 Remove element from game world.
 
void writeToFile (PersistencyEnvironment env, FileWriter writer)
 Write behavior instance to file.
 
- 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 enterFrame ()
 Frame update started.
 
void geometryChanged ()
 Position or orientation changed.
 
BehaviorElement getElement ()
 Behavior element to apply behavior to.
 
int getInstanceIndex ()
 Behavior instance index.
 
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.
 
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

ECBehaviorWorld pECBehavior
 
UniqueID pFirstId
 
TagResolver pTagResolver
 
DMatrix pWorldMatrix
 
StubGameWorld pWorldStub
 
- Public Attributes inherited from Dragengine.Scenery.DefaultECBehaviorInstance
BehaviorElement pElement
 
int pInstanceIndex
 
bool pRequiresEnterFrame
 
bool pRequiresThink
 

Protected Member Functions

void addTagResolverRules (TagResolver resolver)
 Add tag resolver rules.
 
void createAndAddWorldContent (GameWorld gameWorld)
 Add world stub content to game world.
 
void createAndAddWorldElements (GameWorld gameWorld, DMatrix worldMatrix, bool ignorePersistable, bool enableNetworking)
 Add world stub elements to game world.
 
- 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

◆ addTagResolverRules()

void Dragengine.Scenery.ECBehaviorWorld.Instance.addTagResolverRules ( TagResolver  resolver)
protected

Add tag resolver rules.

Adds TRRElement with action "owner".

◆ addToGameWorld()

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

Add element to game world.

Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.

◆ createAndAddWorldContent()

void Dragengine.Scenery.ECBehaviorWorld.Instance.createAndAddWorldContent ( GameWorld  gameWorld)
protected

Add world stub content to game world.

◆ createAndAddWorldElements()

void Dragengine.Scenery.ECBehaviorWorld.Instance.createAndAddWorldElements ( GameWorld  gameWorld,
DMatrix  worldMatrix,
bool  ignorePersistable,
bool  enableNetworking 
)
protected

Add world stub elements to game world.

◆ dispose()

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

Dispose of behavior instance.

Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.

◆ getECBehavior()

ECBehaviorWorld Dragengine.Scenery.ECBehaviorWorld.Instance.getECBehavior ( )

Behavior.

◆ getTagResolver()

TagResolver Dragengine.Scenery.ECBehaviorWorld.Instance.getTagResolver ( )

Tag resolver.

◆ getWorldStub()

StubGameWorld Dragengine.Scenery.ECBehaviorWorld.Instance.getWorldStub ( )

World stub to create content from or null.

◆ init()

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

Initialize element from stub.

Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.

◆ new()

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

Create element.

◆ removeFromGameWorld()

void Dragengine.Scenery.ECBehaviorWorld.Instance.removeFromGameWorld ( )

Remove element from game world.

Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.

◆ writeToFile()

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

Write behavior instance to file.

The default implementation writes a single byte of value 0 indicating version 0. This allows subclasses to add persistency support by overwriting this method without super calling it.

Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.

Member Data Documentation

◆ pECBehavior

ECBehaviorWorld Dragengine.Scenery.ECBehaviorWorld.Instance.pECBehavior

◆ pFirstId

UniqueID Dragengine.Scenery.ECBehaviorWorld.Instance.pFirstId

◆ pTagResolver

TagResolver Dragengine.Scenery.ECBehaviorWorld.Instance.pTagResolver

◆ pWorldMatrix

DMatrix Dragengine.Scenery.ECBehaviorWorld.Instance.pWorldMatrix

◆ pWorldStub

StubGameWorld Dragengine.Scenery.ECBehaviorWorld.Instance.pWorldStub

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