Drag[en]gine Script Module DragonScript 1.35
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:

Requires these behaviors:

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.

References getBTSMs(), getPrefix(), new(), and pConversationActor.

Referenced by getBehaviorIn(), and setPersistency().

◆ getAction()

ECPString Dragengine.Scenery.ECBehaviorVRHandAction.getAction ( )

Action to use instead of factory action.

Version
1.26

Referenced by getBehaviorIn(), getVRHand(), and setActionFactory().

◆ getActionFactory()

ActionFactory Dragengine.Scenery.ECBehaviorVRHandAction.getActionFactory ( )

Action factory.

References getConversationActor(), and pConversationActor.

Referenced by getBehaviorIn(), and getVRHand().

◆ getBehaviorIn()

◆ getBTSMs()

ECComposeBTSM Dragengine.Scenery.ECBehaviorVRHandAction.getBTSMs ( )

Compose behavior trees and state machines.

Version
1.26

References pAction.

Referenced by dispose(), and getBehaviorIn().

◆ getConversationActor()

ECBehaviorConversationActor Dragengine.Scenery.ECBehaviorVRHandAction.getConversationActor ( )

Conversation actor behavior or null.

Referenced by getActionFactory(), getBehaviorIn(), and new().

◆ getLoadStateMachine()

LoadStateMachine Dragengine.Scenery.ECBehaviorVRHandAction.getLoadStateMachine ( )

State machine loader.

Version
1.26

References pAction.

Referenced by getBehaviorIn().

◆ getPersistency()

Persistency Dragengine.Scenery.ECBehaviorVRHandAction.getPersistency ( )

Persistency used to create action.

Version
1.26

Referenced by getBehaviorIn(), and setColliderAI().

◆ getPrefix()

String Dragengine.Scenery.ECBehaviorVRHandAction.getPrefix ( )

Prefix.

Version
1.26

Referenced by dispose(), and getBehaviorIn().

◆ getVRHand()

ECBehaviorVRHand Dragengine.Scenery.ECBehaviorVRHandAction.getVRHand ( )

Collider AI behavior or null.

References getAction(), and getActionFactory().

Referenced by getBehaviorIn().

◆ instance()

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

References getConversationActor(), instance(), and pConversationActor.

Referenced by dispose(), and getBehaviorIn().

◆ new() [2/2]

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

References pVRHand.

◆ setActionFactory()

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

Set action factory.

References getAction(), and pAction.

Referenced by getBehaviorIn().

◆ setColliderAI()

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

Set collider AI behavior or null.

References getPersistency().

Referenced by getBehaviorIn().

◆ setConversationActor()

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

Set conversation actor behavior or null.

If set conversation conditions and commands are added.

Referenced by getBehaviorIn().

◆ setLoadStateMachine()

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

Set state machine loader.

Version
1.26

Referenced by getBehaviorIn().

◆ setPersistency()

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

Set persistency used to create action.

Version
1.26

References dispose(), and pAction.

Referenced by getBehaviorIn().

Member Data Documentation

◆ pAction

ECPString Dragengine.Scenery.ECBehaviorVRHandAction.pAction

◆ pActionFactory

ActionFactory Dragengine.Scenery.ECBehaviorVRHandAction.pActionFactory

Referenced by getBehaviorIn().

◆ pBTSMs

ECComposeBTSM Dragengine.Scenery.ECBehaviorVRHandAction.pBTSMs

Referenced by getBehaviorIn().

◆ pConversationActor

ECBehaviorConversationActor Dragengine.Scenery.ECBehaviorVRHandAction.pConversationActor

◆ pLoadStateMachine

LoadStateMachine Dragengine.Scenery.ECBehaviorVRHandAction.pLoadStateMachine

Referenced by getBehaviorIn().

◆ pPersistency

Persistency Dragengine.Scenery.ECBehaviorVRHandAction.pPersistency

Referenced by getBehaviorIn().

◆ pPrefix

String Dragengine.Scenery.ECBehaviorVRHandAction.pPrefix

Referenced by getBehaviorIn().

◆ pVRHand

ECBehaviorVRHand Dragengine.Scenery.ECBehaviorVRHandAction.pVRHand

Referenced by getBehaviorIn(), and new().


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