Drag[en]gine Script Module DragonScript 1.32.1
Loading...
Searching...
No Matches
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  Factory
 Behavior factory. More...
 
class  Instance
 Behavior instance. More...
 

Public Member Functions

void dispose ()
 Dispose of behavior.
 
ECPString getAction ()
 Action to use instead of factory action.
 
ActionFactory getActionFactory ()
 Action factory.
 
ECComposeBTSM getBTSMs ()
 Compose behavior trees and state machines.
 
ECBehaviorConversationActor getConversationActor ()
 Conversation actor behavior or null.
 
LoadStateMachine getLoadStateMachine ()
 State machine loader.
 
Persistency getPersistency ()
 Persistency used to create action.
 
String getPrefix ()
 Prefix.
 
ECBehaviorVRHand getVRHand ()
 Collider AI behavior or null.
 
Instance instance (BehaviorElement element)
 Get instance in element from owner element class.
 
ECBehaviorVRHandAction new (BehaviorElementClass eclass, ECBehaviorVRHand vrHand, ECBehaviorConversationActor conversationActor, String id)
 Create behavior element class.
 
ECBehaviorVRHandAction new (BehaviorElementClass eclass, ECBehaviorVRHand vrHand, ECBehaviorConversationActor conversationActor, String id, String prefix)
 
void setActionFactory (ActionFactory factory)
 Set action factory.
 
void setColliderAI (ECBehaviorVRHand vrHand)
 Set collider AI behavior or null.
 
void setConversationActor (ECBehaviorConversationActor conversationActor)
 Set conversation actor behavior or null.
 
void setLoadStateMachine (LoadStateMachine loader)
 Set state machine loader.
 
void setPersistency (Persistency persistency)
 Set persistency used to create action.
 
- Public Member Functions inherited from Dragengine.Scenery.DefaultECBehavior
void assignInstanceIndex (int instanceIndex)
 Assign instance index.
 
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 ECBehaviorVRHandAction getBehaviorIn (BehaviorElementClass eclass)
 Get behavior in element class or null if absent.
 

Public Attributes

ECPString pAction
 
ActionFactory pActionFactory
 
ECComposeBTSM pBTSMs
 
ECBehaviorConversationActor pConversationActor
 
LoadStateMachine pLoadStateMachine
 
Persistency pPersistency
 
String pPrefix
 
ECBehaviorVRHand pVRHand
 

Additional Inherited Members

- Protected Member Functions inherited from Dragengine.Scenery.DefaultECBehavior
DefaultECBehavior new (BehaviorElementClass eclass)
 Create default composeable behavior with empty identifier.
 
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 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:

  • ECBehaviorConversationActor

Requires these behaviors:

  • ECBehaviorVRHand
See also
https://developer.dragondreams.ch/wiki/doku.php/dragengine:modules:dragonscript:behavior_vrhandaction

Member Function Documentation

◆ dispose()

void Dragengine.Scenery.ECBehaviorVRHandAction.dispose ( )

Dispose of behavior.

Reimplemented from Dragengine.Scenery.DefaultECBehavior.

◆ getAction()

ECPString Dragengine.Scenery.ECBehaviorVRHandAction.getAction ( )

Action to use instead of factory action.

Version
1.26

◆ 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.

◆ getBTSMs()

ECComposeBTSM Dragengine.Scenery.ECBehaviorVRHandAction.getBTSMs ( )

Compose behavior trees and state machines.

Version
1.26

◆ getConversationActor()

ECBehaviorConversationActor Dragengine.Scenery.ECBehaviorVRHandAction.getConversationActor ( )

Conversation actor behavior or null.

◆ getLoadStateMachine()

LoadStateMachine Dragengine.Scenery.ECBehaviorVRHandAction.getLoadStateMachine ( )

State machine loader.

Version
1.26

◆ getPersistency()

Persistency Dragengine.Scenery.ECBehaviorVRHandAction.getPersistency ( )

Persistency used to create action.

Version
1.26

◆ getPrefix()

String Dragengine.Scenery.ECBehaviorVRHandAction.getPrefix ( )

Prefix.

Version
1.26

◆ 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.

◆ setLoadStateMachine()

void Dragengine.Scenery.ECBehaviorVRHandAction.setLoadStateMachine ( LoadStateMachine  loader)

Set state machine loader.

Version
1.26

◆ setPersistency()

void Dragengine.Scenery.ECBehaviorVRHandAction.setPersistency ( Persistency  persistency)

Set persistency used to create action.

Version
1.26

Member Data Documentation

◆ pAction

ECPString Dragengine.Scenery.ECBehaviorVRHandAction.pAction

◆ pActionFactory

ActionFactory Dragengine.Scenery.ECBehaviorVRHandAction.pActionFactory

◆ pBTSMs

ECComposeBTSM Dragengine.Scenery.ECBehaviorVRHandAction.pBTSMs

◆ pConversationActor

ECBehaviorConversationActor Dragengine.Scenery.ECBehaviorVRHandAction.pConversationActor

◆ pLoadStateMachine

LoadStateMachine Dragengine.Scenery.ECBehaviorVRHandAction.pLoadStateMachine

◆ pPersistency

Persistency Dragengine.Scenery.ECBehaviorVRHandAction.pPersistency

◆ pPrefix

String Dragengine.Scenery.ECBehaviorVRHandAction.pPrefix

◆ pVRHand

ECBehaviorVRHand Dragengine.Scenery.ECBehaviorVRHandAction.pVRHand

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