Drag[en]gine Script Module DragonScript
1.23
|
Behavior adding Action support to VR hands. More...
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... | |
Behavior adding Action support to VR hands.
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:
void Dragengine.Scenery.ECBehaviorVRHandAction.dispose | ( | ) |
Dispose of behavior.
Reimplemented from Dragengine.Scenery.DefaultECBehavior.
ActionFactory Dragengine.Scenery.ECBehaviorVRHandAction.getActionFactory | ( | ) |
Action factory.
|
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.
ECBehaviorConversationActor Dragengine.Scenery.ECBehaviorVRHandAction.getConversationActor | ( | ) |
Conversation actor behavior or null.
ECBehaviorVRHand Dragengine.Scenery.ECBehaviorVRHandAction.getVRHand | ( | ) |
Collider AI behavior or null.
Instance Dragengine.Scenery.ECBehaviorVRHandAction.instance | ( | BehaviorElement | element | ) |
Get instance in element from owner element class.
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.
ECBehaviorVRHandAction Dragengine.Scenery.ECBehaviorVRHandAction.new | ( | BehaviorElementClass | eclass, |
ECBehaviorVRHand | vrHand, | ||
ECBehaviorConversationActor | conversationActor, | ||
String | id, | ||
String | prefix | ||
) |
void Dragengine.Scenery.ECBehaviorVRHandAction.setActionFactory | ( | ActionFactory | factory | ) |
Set action factory.
void Dragengine.Scenery.ECBehaviorVRHandAction.setColliderAI | ( | ECBehaviorVRHand | vrHand | ) |
Set collider AI behavior or null.
void Dragengine.Scenery.ECBehaviorVRHandAction.setConversationActor | ( | ECBehaviorConversationActor | conversationActor | ) |
Set conversation actor behavior or null.
If set conversation conditions and commands are added.
ActionFactory Dragengine.Scenery.ECBehaviorVRHandAction.pActionFactory |
ECBehaviorConversationActor Dragengine.Scenery.ECBehaviorVRHandAction.pConversationActor |
ECBehaviorVRHand Dragengine.Scenery.ECBehaviorVRHandAction.pVRHand |