|
Drag[en]gine Script Module DragonScript 1.35
|
Behavior adding Action support to VR hands. More...
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. | |
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>". | |
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.
References getBTSMs(), getPrefix(), new(), and pConversationActor.
Referenced by getBehaviorIn(), and setPersistency().
| ECPString Dragengine.Scenery.ECBehaviorVRHandAction.getAction | ( | ) |
Action to use instead of factory action.
Referenced by getBehaviorIn(), getVRHand(), and setActionFactory().
| ActionFactory Dragengine.Scenery.ECBehaviorVRHandAction.getActionFactory | ( | ) |
Action factory.
References getConversationActor(), and pConversationActor.
Referenced by getBehaviorIn(), and getVRHand().
|
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.
References Dragengine.Scenery.ECBehavior.createInstance(), dispose(), getAction(), getActionFactory(), getBehaviorIn(), getBTSMs(), getConversationActor(), getLoadStateMachine(), getPersistency(), getPrefix(), getVRHand(), instance(), new(), pAction, pActionFactory, pBTSMs, pConversationActor, pLoadStateMachine, pPersistency, pPrefix, pVRHand, setActionFactory(), setColliderAI(), setConversationActor(), setLoadStateMachine(), and setPersistency().
Referenced by getBehaviorIn().
| ECComposeBTSM Dragengine.Scenery.ECBehaviorVRHandAction.getBTSMs | ( | ) |
Compose behavior trees and state machines.
References pAction.
Referenced by dispose(), and getBehaviorIn().
| ECBehaviorConversationActor Dragengine.Scenery.ECBehaviorVRHandAction.getConversationActor | ( | ) |
Conversation actor behavior or null.
Referenced by getActionFactory(), getBehaviorIn(), and new().
| LoadStateMachine Dragengine.Scenery.ECBehaviorVRHandAction.getLoadStateMachine | ( | ) |
| Persistency Dragengine.Scenery.ECBehaviorVRHandAction.getPersistency | ( | ) |
| String Dragengine.Scenery.ECBehaviorVRHandAction.getPrefix | ( | ) |
| ECBehaviorVRHand Dragengine.Scenery.ECBehaviorVRHandAction.getVRHand | ( | ) |
Collider AI behavior or null.
References getAction(), and getActionFactory().
Referenced by getBehaviorIn().
| Instance Dragengine.Scenery.ECBehaviorVRHandAction.instance | ( | BehaviorElement | element | ) |
Get instance in element from owner element class.
Referenced by Dragengine.Scenery.ECBehaviorVRHandAction.Instance.enterFrame(), Dragengine.Scenery.ECBehaviorVRHandAction.Instance.getAction(), getBehaviorIn(), new(), and Dragengine.Scenery.ECBehaviorVRHandAction.Instance.setActionAndDispose().
| 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().
| ECBehaviorVRHandAction Dragengine.Scenery.ECBehaviorVRHandAction.new | ( | BehaviorElementClass | eclass, |
| ECBehaviorVRHand | vrHand, | ||
| ECBehaviorConversationActor | conversationActor, | ||
| String | id, | ||
| String | prefix ) |
References pVRHand.
| void Dragengine.Scenery.ECBehaviorVRHandAction.setActionFactory | ( | ActionFactory | factory | ) |
| void Dragengine.Scenery.ECBehaviorVRHandAction.setColliderAI | ( | ECBehaviorVRHand | vrHand | ) |
| void Dragengine.Scenery.ECBehaviorVRHandAction.setConversationActor | ( | ECBehaviorConversationActor | conversationActor | ) |
Set conversation actor behavior or null.
If set conversation conditions and commands are added.
Referenced by getBehaviorIn().
| void Dragengine.Scenery.ECBehaviorVRHandAction.setLoadStateMachine | ( | LoadStateMachine | loader | ) |
| void Dragengine.Scenery.ECBehaviorVRHandAction.setPersistency | ( | Persistency | persistency | ) |
Set persistency used to create action.
References dispose(), and pAction.
Referenced by getBehaviorIn().
| ECPString Dragengine.Scenery.ECBehaviorVRHandAction.pAction |
Referenced by getBehaviorIn(), getBTSMs(), getLoadStateMachine(), setActionFactory(), and setPersistency().
| ActionFactory Dragengine.Scenery.ECBehaviorVRHandAction.pActionFactory |
Referenced by getBehaviorIn().
| ECComposeBTSM Dragengine.Scenery.ECBehaviorVRHandAction.pBTSMs |
Referenced by getBehaviorIn().
| ECBehaviorConversationActor Dragengine.Scenery.ECBehaviorVRHandAction.pConversationActor |
Referenced by dispose(), getActionFactory(), getBehaviorIn(), and new().
| LoadStateMachine Dragengine.Scenery.ECBehaviorVRHandAction.pLoadStateMachine |
Referenced by getBehaviorIn().
| Persistency Dragengine.Scenery.ECBehaviorVRHandAction.pPersistency |
Referenced by getBehaviorIn().
| String Dragengine.Scenery.ECBehaviorVRHandAction.pPrefix |
Referenced by getBehaviorIn().
| ECBehaviorVRHand Dragengine.Scenery.ECBehaviorVRHandAction.pVRHand |
Referenced by getBehaviorIn(), and new().