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

Behavior instance. More...

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

Classes

class  TouchListener
 Trigger listener. More...
 

Public Member Functions

void addListener (Listener listener)
 Add listener. More...
 
void addToGameWorld ()
 Add element to game world. More...
 
void dispose ()
 Dispose of composeable instance. More...
 
ECBehaviorTouching getECBehavior ()
 Behavior. More...
 
bool getPulse ()
 Pulse trigger target instead of fire. More...
 
TSNamedTriggerTarget getTarget ()
 Trigger target or null. More...
 
ECBehaviorTouchSensor.Instance getTouchSensor ()
 Touch sensor or null. More...
 
void init (StubElement stub)
 Initialize element from stub. More...
 
Instance new (ECBehaviorTouching ecbehavior, BehaviorElement element)
 Create element. More...
 
void removeFromGameWorld ()
 Remove element from game world. More...
 
void removeListener (Listener listener)
 Remove listener. More...
 
void startTouching ()
 First element entered touch sensor. More...
 
void stopTouching ()
 Last element left touch sensor. More...
 
- 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. 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...
 
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...
 

Protected Member Functions

void fireTarget ()
 Fire target if not null. More...
 
void resetTarget ()
 Reset target if not null. 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

◆ addListener()

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

Add listener.

◆ addToGameWorld()

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

Add element to game world.

Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.

◆ dispose()

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

Dispose of composeable instance.

Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.

◆ fireTarget()

void Dragengine.Scenery.ECBehaviorTouching.Instance.fireTarget ( )
protected

Fire target if not null.

Version
1.6

◆ getECBehavior()

ECBehaviorTouching Dragengine.Scenery.ECBehaviorTouching.Instance.getECBehavior ( )

Behavior.

◆ getPulse()

bool Dragengine.Scenery.ECBehaviorTouching.Instance.getPulse ( )

Pulse trigger target instead of fire.

◆ getTarget()

TSNamedTriggerTarget Dragengine.Scenery.ECBehaviorTouching.Instance.getTarget ( )

Trigger target or null.

◆ getTouchSensor()

ECBehaviorTouchSensor.Instance Dragengine.Scenery.ECBehaviorTouching.Instance.getTouchSensor ( )

Touch sensor or null.

◆ init()

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

Initialize element from stub.

Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.

◆ new()

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

Create element.

◆ removeFromGameWorld()

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

Remove element from game world.

Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.

◆ removeListener()

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

Remove listener.

◆ resetTarget()

void Dragengine.Scenery.ECBehaviorTouching.Instance.resetTarget ( )
protected

Reset target if not null.

Version
1.6

◆ startTouching()

void Dragengine.Scenery.ECBehaviorTouching.Instance.startTouching ( )

First element entered touch sensor.

◆ stopTouching()

void Dragengine.Scenery.ECBehaviorTouching.Instance.stopTouching ( )

Last element left touch sensor.


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