Drag[en]gine Script Module DragonScript  1.23
Dragengine.Scenery.ECBehaviorVRPlayspace.Instance Class Reference

Behavior instance. More...

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

Public Member Functions

void addListener (Listener listener)
 Add listener. More...
 
void addListenerFactory (Block blockFactory)
 Add listener factory using block. More...
 
void addListenerFactory (ListenerFactory factory)
 Add listener factory. More...
 
void createListeners (Instance instance)
 Create listeners from factories adding them to behavior instance. More...
 
void dispose ()
 Dispose of instance. More...
 
void dispose ()
 Dispose of behavior. More...
 
void forEachListenerFactory (Block ablock)
 Visit listener factories with block with argument ListenerFactory. More...
 
void geometryChanged ()
 Element position or orientation changed. More...
 
ECBehaviorVRPlayspace getECBehavior ()
 Behavior. More...
 
DMatrix getInverseMatrix ()
 Inverse matrix. More...
 
DMatrix getMatrix ()
 Matrix. More...
 
Quaternion getOrientation ()
 Orientation. More...
 
DVector getPosition ()
 Position. More...
 
void init (StubElement stub)
 Initialize behavior from stub. More...
 
Instance new (BehaviorElementClass eclass)
 Create behavior element class. More...
 
Instance new (ECBehaviorVRPlayspace ecbehavior, BehaviorElement element)
 Create instance. More...
 
void removeListener (Listener listener)
 Remove listener. 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...
 
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...
 
void writeToFile (PersistencyEnvironment env, FileWriter writer)
 Write behavior instance to file. More...
 

Static Public Member Functions

static ECBehaviorVRPlayspace getBehaviorIn (BehaviorElementClass eclass)
 Get behavior in element class or null if absent. More...
 

Additional Inherited Members

- 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

◆ addListener()

void Dragengine.Scenery.ECBehaviorVRPlayspace.Instance.addListener ( Listener  listener)

Add listener.

◆ addListenerFactory() [1/2]

void Dragengine.Scenery.ECBehaviorVRPlayspace.Instance.addListenerFactory ( Block  blockFactory)

Add listener factory using block.

Block receives as parameter Instance and returns Listener.

◆ addListenerFactory() [2/2]

void Dragengine.Scenery.ECBehaviorVRPlayspace.Instance.addListenerFactory ( ListenerFactory  factory)

Add listener factory.

◆ createListeners()

void Dragengine.Scenery.ECBehaviorVRPlayspace.Instance.createListeners ( Instance  instance)

Create listeners from factories adding them to behavior instance.

◆ dispose() [1/2]

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

Dispose of instance.

Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.

◆ dispose() [2/2]

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

Dispose of behavior.

Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.

◆ forEachListenerFactory()

void Dragengine.Scenery.ECBehaviorVRPlayspace.Instance.forEachListenerFactory ( Block  ablock)

Visit listener factories with block with argument ListenerFactory.

◆ geometryChanged()

void Dragengine.Scenery.ECBehaviorVRPlayspace.Instance.geometryChanged ( )

Element position or orientation changed.

Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.

◆ getBehaviorIn()

static ECBehaviorVRPlayspace Dragengine.Scenery.ECBehaviorVRPlayspace.Instance.getBehaviorIn ( BehaviorElementClass  eclass)
static

Get behavior in element class or null if absent.

Use this method to check if a particular BehaviorElementClass contains a behavior of type ECBehaviorVRPlayspace.

◆ getECBehavior()

ECBehaviorVRPlayspace Dragengine.Scenery.ECBehaviorVRPlayspace.Instance.getECBehavior ( )

Behavior.

◆ getInverseMatrix()

DMatrix Dragengine.Scenery.ECBehaviorVRPlayspace.Instance.getInverseMatrix ( )

Inverse matrix.

◆ getMatrix()

DMatrix Dragengine.Scenery.ECBehaviorVRPlayspace.Instance.getMatrix ( )

◆ getOrientation()

Quaternion Dragengine.Scenery.ECBehaviorVRPlayspace.Instance.getOrientation ( )

Orientation.

◆ getPosition()

DVector Dragengine.Scenery.ECBehaviorVRPlayspace.Instance.getPosition ( )

Position.

◆ init()

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

Initialize behavior from stub.

Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.

◆ new() [1/2]

Instance Dragengine.Scenery.ECBehaviorVRPlayspace.Instance.new ( BehaviorElementClass  eclass)

Create behavior element class.

◆ new() [2/2]

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

Create instance.

◆ removeListener()

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

Remove listener.


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