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

Behavior instance. More...

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

Classes

class  CCInteract
 Conversation command/condition. More...
 

Public Member Functions

void clear ()
 Set interect element to null.
 
void dispose ()
 Dispose of composeable instance.
 
void dispose ()
 Dispose of behavior.
 
void enterFrame ()
 Frame update started.
 
ECComposeBTSM getBTSMs ()
 Compose behavior trees and state machines.
 
ECBehaviorConversationActor getConversationActor ()
 Conversation actor behavior or null.
 
ECBehaviorInteractionElement getECBehavior ()
 Behavior.
 
ElementResolver getElementResolver ()
 Element resolver used during loading or null if not set.
 
BehaviorElement getInteractionElement ()
 Interact element or null.
 
ECBehaviorInstance getInteractionElementBehavior ()
 Interact element behavior or null.
 
String getPrefix ()
 Prefix.
 
bool hasInteract (String name)
 Interaction element is present and supports interaction.
 
void init (StubElement stub)
 Initialize element from stub.
 
Instance instance (BehaviorElement element)
 Get instance in element from owner element class.
 
bool interact (String name, Array parameters, BehaviorElement source)
 Interaction element is present, has interaction and interaction returns true.
 
bool isNotSet ()
 Interact element is not set.
 
bool isSet ()
 Interact element is set.
 
Instance new (BehaviorElementClass eclass)
 Create behavior element class.
 
Instance new (BehaviorElementClass eclass, String id)
 
Instance new (BehaviorElementClass eclass, String id, String prefix)
 
Instance new (ECBehaviorInteractionElement ecbehavior, BehaviorElement element)
 Create behavior instance.
 
void readFromFile (PersistencyEnvironment env, FileReader reader)
 Read element from file.
 
void removeFromGameWorld ()
 Remove element from game world.
 
void setConversationActor (ECBehaviorConversationActor conversationActor)
 Set conversation actor or null.
 
void setInteractionBehavior (ECBehaviorInstance instance)
 
void setInteractionElement (BehaviorElement element)
 Set interact element or null.
 
- 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 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.
 
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.
 

Static Public Member Functions

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

Public Attributes

ECComposeBTSM pBTSMs
 
ECBehaviorConversationActor pConversationActor
 
ECBehaviorInteractionElement pECBehavior
 
ElementResolver pElementResolver
 
BehaviorElement pInteractionElement
 
ECBehaviorInstance pInteractionElementBehavior
 
String pPrefix
 
- 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

◆ clear()

void Dragengine.Scenery.ECBehaviorInteractionElement.Instance.clear ( )

Set interect element to null.

◆ dispose() [1/2]

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

Dispose of composeable instance.

Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.

◆ dispose() [2/2]

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

Dispose of behavior.

Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.

◆ enterFrame()

void Dragengine.Scenery.ECBehaviorInteractionElement.Instance.enterFrame ( )

Frame update started.

Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.

◆ getBehaviorIn()

static ECBehaviorInteractionElement Dragengine.Scenery.ECBehaviorInteractionElement.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 ECBehaviorComponent.

◆ getBTSMs()

ECComposeBTSM Dragengine.Scenery.ECBehaviorInteractionElement.Instance.getBTSMs ( )

Compose behavior trees and state machines.

◆ getConversationActor()

ECBehaviorConversationActor Dragengine.Scenery.ECBehaviorInteractionElement.Instance.getConversationActor ( )

Conversation actor behavior or null.

◆ getECBehavior()

ECBehaviorInteractionElement Dragengine.Scenery.ECBehaviorInteractionElement.Instance.getECBehavior ( )

Behavior.

◆ getElementResolver()

ElementResolver Dragengine.Scenery.ECBehaviorInteractionElement.Instance.getElementResolver ( )

Element resolver used during loading or null if not set.

◆ getInteractionElement()

BehaviorElement Dragengine.Scenery.ECBehaviorInteractionElement.Instance.getInteractionElement ( )

Interact element or null.

◆ getInteractionElementBehavior()

ECBehaviorInstance Dragengine.Scenery.ECBehaviorInteractionElement.Instance.getInteractionElementBehavior ( )

Interact element behavior or null.

◆ getPrefix()

String Dragengine.Scenery.ECBehaviorInteractionElement.Instance.getPrefix ( )

Prefix.

◆ hasInteract()

bool Dragengine.Scenery.ECBehaviorInteractionElement.Instance.hasInteract ( String  name)

Interaction element is present and supports interaction.

◆ init()

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

Initialize element from stub.

Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.

◆ instance()

Instance Dragengine.Scenery.ECBehaviorInteractionElement.Instance.instance ( BehaviorElement  element)

Get instance in element from owner element class.

◆ interact()

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

Interaction element is present, has interaction and interaction returns true.

◆ isNotSet()

bool Dragengine.Scenery.ECBehaviorInteractionElement.Instance.isNotSet ( )

Interact element is not set.

◆ isSet()

bool Dragengine.Scenery.ECBehaviorInteractionElement.Instance.isSet ( )

Interact element is set.

◆ new() [1/4]

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

Create behavior element class.

◆ new() [2/4]

Instance Dragengine.Scenery.ECBehaviorInteractionElement.Instance.new ( BehaviorElementClass  eclass,
String  id 
)

◆ new() [3/4]

Instance Dragengine.Scenery.ECBehaviorInteractionElement.Instance.new ( BehaviorElementClass  eclass,
String  id,
String  prefix 
)

◆ new() [4/4]

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

Create behavior instance.

◆ readFromFile()

void Dragengine.Scenery.ECBehaviorInteractionElement.Instance.readFromFile ( PersistencyEnvironment  env,
FileReader  reader 
)

Read element from file.

Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.

◆ removeFromGameWorld()

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

Remove element from game world.

Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.

◆ setConversationActor()

void Dragengine.Scenery.ECBehaviorInteractionElement.Instance.setConversationActor ( ECBehaviorConversationActor  conversationActor)

Set conversation actor or null.

If set conversation conditions and commands are added.

◆ setInteractionBehavior()

void Dragengine.Scenery.ECBehaviorInteractionElement.Instance.setInteractionBehavior ( ECBehaviorInstance  instance)

◆ setInteractionElement()

void Dragengine.Scenery.ECBehaviorInteractionElement.Instance.setInteractionElement ( BehaviorElement  element)

Set interact element or null.

Member Data Documentation

◆ pBTSMs

ECComposeBTSM Dragengine.Scenery.ECBehaviorInteractionElement.Instance.pBTSMs

◆ pConversationActor

ECBehaviorConversationActor Dragengine.Scenery.ECBehaviorInteractionElement.Instance.pConversationActor

◆ pECBehavior

ECBehaviorInteractionElement Dragengine.Scenery.ECBehaviorInteractionElement.Instance.pECBehavior

◆ pElementResolver

ElementResolver Dragengine.Scenery.ECBehaviorInteractionElement.Instance.pElementResolver

◆ pInteractionElement

BehaviorElement Dragengine.Scenery.ECBehaviorInteractionElement.Instance.pInteractionElement

◆ pInteractionElementBehavior

ECBehaviorInstance Dragengine.Scenery.ECBehaviorInteractionElement.Instance.pInteractionElementBehavior

◆ pPrefix

String Dragengine.Scenery.ECBehaviorInteractionElement.Instance.pPrefix

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