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

Behavior instance. More...

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

Public Member Functions

void dispose ()
 Dispose of behavior instance.
ECBehaviorInteraction getECBehavior ()
 Behavior.
Interaction getInteractionAt (String name)
 Named interaction or null.
Array getInteractionNames ()
 Array of String interaction names.
bool hasInteractionAt (String name)
 Named interaction is present.
bool interact (String name, Array parameters, BehaviorElement source)
 Interact with named interaction with parameters if present.
bool interact (String name, BehaviorElement source)
 Interact with named interaction if present.
Instance new (ECBehaviorInteraction ecbehavior, BehaviorElement element)
 Create element.
void removeInteraction (String name)
 Remove interaction if present.
void setInteractionAt (String name, Interaction interaction)
 Set interaction.
Public Member Functions inherited from Dragengine.Scenery.DefaultECBehaviorInstance
void addToGameWorld ()
 Add element to game world.
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.
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.
void writeToFile (PersistencyEnvironment env, FileWriter writer)
 Write behavior instance to file.

Public Attributes

ECBehaviorInteraction pECBehavior
Dictionary pInteractions
Public Attributes inherited from Dragengine.Scenery.DefaultECBehaviorInstance
BehaviorElement pElement
int pInstanceIndex
bool pRequiresEnterFrame
bool pRequiresThink

Additional Inherited Members

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

◆ dispose()

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

Dispose of behavior instance.

Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.

References pInteractions.

Referenced by getInteractionAt(), and hasInteractionAt().

◆ getECBehavior()

ECBehaviorInteraction Dragengine.Scenery.ECBehaviorInteraction.Instance.getECBehavior ( )

Behavior.

References new(), and pInteractions.

Referenced by getInteractionAt().

◆ getInteractionAt()

Interaction Dragengine.Scenery.ECBehaviorInteraction.Instance.getInteractionAt ( String name)

Named interaction or null.

References dispose(), getECBehavior(), and pECBehavior.

Referenced by getInteractionNames().

◆ getInteractionNames()

Array Dragengine.Scenery.ECBehaviorInteraction.Instance.getInteractionNames ( )

Array of String interaction names.

References getInteractionAt(), and pInteractions.

◆ hasInteractionAt()

bool Dragengine.Scenery.ECBehaviorInteraction.Instance.hasInteractionAt ( String name)

Named interaction is present.

References dispose(), and pInteractions.

Referenced by removeInteraction().

◆ interact() [1/2]

bool Dragengine.Scenery.ECBehaviorInteraction.Instance.interact ( String name,
Array parameters,
BehaviorElement source )

Interact with named interaction with parameters if present.

If named interaction is absent false is returned. Otherwise returns the return value of running Interaction.interact().

References pInteractions, and removeInteraction().

◆ interact() [2/2]

bool Dragengine.Scenery.ECBehaviorInteraction.Instance.interact ( String name,
BehaviorElement source )

Interact with named interaction if present.

If named interaction is absent false is returned. Otherwise returns the return value of running Interaction.interact().

References new(), pInteractions, and setInteractionAt().

◆ new()

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

Create element.

References pECBehavior.

Referenced by getECBehavior(), and interact().

◆ removeInteraction()

void Dragengine.Scenery.ECBehaviorInteraction.Instance.removeInteraction ( String name)

Remove interaction if present.

References hasInteractionAt(), and pInteractions.

Referenced by interact().

◆ setInteractionAt()

void Dragengine.Scenery.ECBehaviorInteraction.Instance.setInteractionAt ( String name,
Interaction interaction )

Set interaction.

If interaction with name is present it is replaced.

Referenced by interact().

Member Data Documentation

◆ pECBehavior

ECBehaviorInteraction Dragengine.Scenery.ECBehaviorInteraction.Instance.pECBehavior

Referenced by getInteractionAt(), and new().

◆ pInteractions

Dictionary Dragengine.Scenery.ECBehaviorInteraction.Instance.pInteractions

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