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

Behavior element behavior adding storing supported interactions. More...

Inheritance diagram for Dragengine.Scenery.ECBehaviorInteraction:
Dragengine.Scenery.DefaultECBehavior Dragengine.Scenery.ECBehavior Dragengine.Scenery.BehaviorCompatiblePersistency

Classes

class  Factory
 Behavior factory. More...
 
class  Instance
 Behavior instance. More...
 
interface  Interaction
 Interaction. More...
 

Public Member Functions

Instance instance (BehaviorElement element)
 Get instance in element from owner element class.
 
ECBehaviorInteraction new (BehaviorElementClass eclass)
 Create behavior element class.
 
- Public Member Functions inherited from Dragengine.Scenery.DefaultECBehavior
void assignInstanceIndex (int instanceIndex)
 Assign instance index.
 
void dispose ()
 Dispose of behavior.
 
String getBehaviorID ()
 Unique identifier of behavior.
 
String getID ()
 Identifier.
 
int getInstanceIndex ()
 Instance index.
 
void loadSupportedData (String identifier, PersistencyEnvironment env, FileReader reader, ECBehaviorInstance instance)
 Load instance data of another behavior.
 
bool supportsBehaviorID (String identifier)
 Behavior supports loading instance data of another behavior.
 
- Public Member Functions inherited from Dragengine.Scenery.ECBehavior
ECBehaviorInstance createInstance (BehaviorElement element)
 Create Behavior instance.
 

Static Public Member Functions

static bool checkHasInteraction (BehaviorElement element, String interaction)
 Helper function to check for element supporting interaction.
 
static bool checkHasInteraction (ECBehaviorInstance behavior, String interaction)
 
static bool checkInteraction (BehaviorElement element, String interaction, Array parameters, BehaviorElement source)
 Helper function to check for element query interaction result.
 
static bool checkInteraction (BehaviorElement element, String interaction, String parameters, BehaviorElement source)
 
static bool checkInteraction (ECBehaviorInstance behavior, String interaction, String parameters, BehaviorElement source)
 
static bool checkInteractionBTSM (ECBehaviorInstance behavior, Dictionary parameters, String prefix, BehaviorElement source)
 
static ECBehaviorInteraction getBehaviorIn (BehaviorElementClass eclass)
 Get behavior in element class or null if absent.
 

Additional Inherited Members

- Protected Member Functions inherited from Dragengine.Scenery.DefaultECBehavior
DefaultECBehavior new (BehaviorElementClass eclass, String id)
 Create default composeable behavior.
 
void setBehaviorID (String identifier)
 Set behavior identifier.
 
void useClassNameAsBehaviorID ()
 Set behavior identifier to "<class-name>:<identifier>".
 
void useFullyQualifiedClassNameAsBehaviorID ()
 Set behavior identifier to "<fully-qualified-class-name>:<identifier>".
 

Detailed Description

Behavior element behavior adding storing supported interactions.

This behavior uses no other behaviors.

This behavior does not require the element class to be persistable (setPersistable).

See also
https://developer.dragondreams.ch/wiki/doku.php/dragengine:modules:dragonscript:behavior_interaction

Member Function Documentation

◆ checkHasInteraction() [1/2]

static bool Dragengine.Scenery.ECBehaviorInteraction.checkHasInteraction ( BehaviorElement  element,
String  interaction 
)
static

Helper function to check for element supporting interaction.

Returns true if element is not null, element has behavior instance and instance has named interaction.

◆ checkHasInteraction() [2/2]

static bool Dragengine.Scenery.ECBehaviorInteraction.checkHasInteraction ( ECBehaviorInstance  behavior,
String  interaction 
)
static

◆ checkInteraction() [1/3]

static bool Dragengine.Scenery.ECBehaviorInteraction.checkInteraction ( BehaviorElement  element,
String  interaction,
Array  parameters,
BehaviorElement  source 
)
static

Helper function to check for element query interaction result.

Returns true if element is not null, element has behavior instance, instance has named interaction and interaction returns true.

◆ checkInteraction() [2/3]

static bool Dragengine.Scenery.ECBehaviorInteraction.checkInteraction ( BehaviorElement  element,
String  interaction,
String  parameters,
BehaviorElement  source 
)
static

◆ checkInteraction() [3/3]

static bool Dragengine.Scenery.ECBehaviorInteraction.checkInteraction ( ECBehaviorInstance  behavior,
String  interaction,
String  parameters,
BehaviorElement  source 
)
static

◆ checkInteractionBTSM()

static bool Dragengine.Scenery.ECBehaviorInteraction.checkInteractionBTSM ( ECBehaviorInstance  behavior,
Dictionary  parameters,
String  prefix,
BehaviorElement  source 
)
static

◆ getBehaviorIn()

static ECBehaviorInteraction Dragengine.Scenery.ECBehaviorInteraction.getBehaviorIn ( BehaviorElementClass  eclass)
static

Get behavior in element class or null if absent.

◆ instance()

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

Get instance in element from owner element class.

◆ new()

ECBehaviorInteraction Dragengine.Scenery.ECBehaviorInteraction.new ( BehaviorElementClass  eclass)

Create behavior element class.

Reimplemented from Dragengine.Scenery.DefaultECBehavior.


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