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

Behavior adding Action support to VR hands. More...

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

Classes

interface  ActionFactory
 Factory for creating action. More...
 
class  Instance
 Behavior instance. More...
 

Public Member Functions

void dispose ()
 Dispose of behavior. More...
 
ActionFactory getActionFactory ()
 Action factory. More...
 
ECBehaviorConversationActor getConversationActor ()
 Conversation actor behavior or null. More...
 
ECBehaviorVRHand getVRHand ()
 Collider AI behavior or null. More...
 
Instance instance (BehaviorElement element)
 Get instance in element from owner element class. More...
 
ECBehaviorVRHandAction new (BehaviorElementClass eclass, ECBehaviorVRHand vrHand, ECBehaviorConversationActor conversationActor, String id)
 Create behavior element class. More...
 
ECBehaviorVRHandAction new (BehaviorElementClass eclass, ECBehaviorVRHand vrHand, ECBehaviorConversationActor conversationActor, String id, String prefix)
 
void setActionFactory (ActionFactory factory)
 Set action factory. More...
 
void setColliderAI (ECBehaviorVRHand vrHand)
 Set collider AI behavior or null. More...
 
void setConversationActor (ECBehaviorConversationActor conversationActor)
 Set conversation actor behavior or null. More...
 
- Public Member Functions inherited from Dragengine.Scenery.DefaultECBehavior
void assignInstanceIndex (int instanceIndex)
 Assign instance index. More...
 
String getBehaviorID ()
 Unique identifier of behavior. More...
 
String getID ()
 Identifier. More...
 
int getInstanceIndex ()
 Instance index. More...
 
void loadSupportedData (String identifier, PersistencyEnvironment env, FileReader reader, ECBehaviorInstance instance)
 Load instance data of another behavior. More...
 
bool supportsBehaviorID (String identifier)
 Behavior supports loading instance data of another behavior. More...
 
- Public Member Functions inherited from Dragengine.Scenery.ECBehavior
ECBehaviorInstance createInstance (BehaviorElement element)
 Create Behavior instance. More...
 

Static Public Member Functions

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

Public Attributes

ActionFactory pActionFactory
 
ECBehaviorConversationActor pConversationActor
 
ECBehaviorVRHand pVRHand
 

Additional Inherited Members

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

Detailed Description

Behavior adding Action support to VR hands.

Version
1.10

Allows instance of BaseVRHandAction to be assigned to actor VR hands. During thinking the Action is called.

Actions allow actors to perform a specific, well defined and enclosed action like interacting with an object for each hand separately. These actions run after the main actor action as provided by ECBehaviorActorAIAction. VR hand actions are typically only suitable for the player.

Supports these optional behaviors:

Requires these behaviors:

Member Function Documentation

◆ dispose()

void Dragengine.Scenery.ECBehaviorVRHandAction.dispose ( )

Dispose of behavior.

Reimplemented from Dragengine.Scenery.DefaultECBehavior.

◆ getActionFactory()

ActionFactory Dragengine.Scenery.ECBehaviorVRHandAction.getActionFactory ( )

Action factory.

◆ getBehaviorIn()

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

◆ getConversationActor()

ECBehaviorConversationActor Dragengine.Scenery.ECBehaviorVRHandAction.getConversationActor ( )

Conversation actor behavior or null.

◆ getVRHand()

ECBehaviorVRHand Dragengine.Scenery.ECBehaviorVRHandAction.getVRHand ( )

Collider AI behavior or null.

◆ instance()

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

Get instance in element from owner element class.

◆ new() [1/2]

ECBehaviorVRHandAction Dragengine.Scenery.ECBehaviorVRHandAction.new ( BehaviorElementClass  eclass,
ECBehaviorVRHand  vrHand,
ECBehaviorConversationActor  conversationActor,
String  id 
)

Create behavior element class.

These values are optional and can be null: conversationActor.

The default Action is BVRHAEmpty.

◆ new() [2/2]

ECBehaviorVRHandAction Dragengine.Scenery.ECBehaviorVRHandAction.new ( BehaviorElementClass  eclass,
ECBehaviorVRHand  vrHand,
ECBehaviorConversationActor  conversationActor,
String  id,
String  prefix 
)

◆ setActionFactory()

void Dragengine.Scenery.ECBehaviorVRHandAction.setActionFactory ( ActionFactory  factory)

Set action factory.

◆ setColliderAI()

void Dragengine.Scenery.ECBehaviorVRHandAction.setColliderAI ( ECBehaviorVRHand  vrHand)

Set collider AI behavior or null.

◆ setConversationActor()

void Dragengine.Scenery.ECBehaviorVRHandAction.setConversationActor ( ECBehaviorConversationActor  conversationActor)

Set conversation actor behavior or null.

If set conversation conditions and commands are added.

Member Data Documentation

◆ pActionFactory

ActionFactory Dragengine.Scenery.ECBehaviorVRHandAction.pActionFactory

◆ pConversationActor

ECBehaviorConversationActor Dragengine.Scenery.ECBehaviorVRHandAction.pConversationActor

◆ pVRHand

ECBehaviorVRHand Dragengine.Scenery.ECBehaviorVRHandAction.pVRHand

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