|
Drag[en]gine Script Module DragonScript 1.35
|
Behavior instance. More...
Public Member Functions | |
| void | addPointingHand (ECBehaviorVRHandPointAt.Instance hand) |
| Add hand to list if absent. | |
| void | dispose () |
| Dispose of inventory. | |
| ECBehaviorVRHandPointAt.Instance | findPointingHand (Block ablock) |
| Find hand pointing at element using block. | |
| void | forEachPointingHand (Block ablock) |
| Visit hands pointing at element using block. | |
| ECBehaviorVRHandPointedAt | getECBehavior () |
| Behavior. | |
| ECBehaviorVRHandPointAt.Instance | getPlayerPointing () |
| Checks if player is pointing at element and if so returns the player hand. | |
| ECBehaviorVRHandPointAt.Instance | getPointingHandAt (int index) |
| Hand pointing at element by index. | |
| int | getPointingHandCount () |
| Count of hands pointing at element. | |
| bool | hasPointingHand (ECBehaviorVRHandPointAt.Instance element) |
| Hand is pointing at element. | |
| void | init (StubElement stub) |
| Initialize behavior from stub. | |
| Instance | new (ECBehaviorVRHandPointedAt ecbehavior, BehaviorElement element) |
| Create element. | |
| void | readFromFile (PersistencyEnvironment env, FileReader reader) |
| Read element from file. | |
| void | removeListener (Listener listener) |
| Remove listener. | |
| Public Member Functions inherited from Dragengine.Scenery.DefaultECBehaviorInstance | |
| void | addToGameWorld () |
| Add element to game world. | |
| void | attachToParent (Element parent) |
| Attach element to object set by the mapper in the IGDE World Editor. | |
| void | enterFrame () |
| Frame update started. | |
| void | geometryChanged () |
| Position or orientation changed. | |
| BehaviorElement | getElement () |
| Behavior element to apply behavior to. | |
| int | getInstanceIndex () |
| Behavior instance index. | |
| DefaultECBehaviorInstance | new (BehaviorElement element) |
| Create default composeable instance. | |
| void | postThink (float elapsed) |
| Post thinking after physics processing is finished. | |
| void | removeFromGameWorld () |
| Remove element from game world. | |
| bool | requiresEnterFrame () |
| Behavior instance requires enterFrame() to be called. | |
| bool | requiresThink () |
| Behavior instance requires think() to be called. | |
| void | stateChanged () |
| State changed (visble, touchable). | |
| void | think (float elapsed) |
| Think about what to do for the next frame update. | |
| void | writeToFile (PersistencyEnvironment env, FileWriter writer) |
| Write behavior instance to file. | |
Public Attributes | |
| ECComposeBTSM.Instance | pBTSMs |
| ECBehaviorVRHandPointedAt | pECBehavior |
| Array | pListeners |
| Array | pPointingHands |
| Public Attributes inherited from Dragengine.Scenery.DefaultECBehaviorInstance | |
| BehaviorElement | pElement |
| int | pInstanceIndex |
| bool | pRequiresEnterFrame |
| bool | pRequiresThink |
Additional Inherited Members | |
| Protected Member Functions inherited from Dragengine.Scenery.DefaultECBehaviorInstance | |
| void | setRequiresEnterFrame (bool required) |
| Set if behavior instance requires enterFrame() to be called. | |
| void | setRequiresThink (bool required) |
| Set if behavior instance requires think() to be called. | |
Behavior instance.
| void Dragengine.Scenery.ECBehaviorVRHandPointedAt.Instance.addPointingHand | ( | ECBehaviorVRHandPointAt.Instance | hand | ) |
Add hand to list if absent.
If hand is added to the list handStartsPointingAt() is called on all listeners.
References pBTSMs, pListeners, and pPointingHands.
| void Dragengine.Scenery.ECBehaviorVRHandPointedAt.Instance.dispose | ( | ) |
Dispose of inventory.
Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.
References new().
Referenced by getPlayerPointing(), and removeListener().
| ECBehaviorVRHandPointAt.Instance Dragengine.Scenery.ECBehaviorVRHandPointedAt.Instance.findPointingHand | ( | Block | ablock | ) |
Find hand pointing at element using block.
Block receives as first argument each element of type ECBehaviorVRHandPointAt.Instance and has to return true if the hand is found otherwise false. Method returns the found hand or null if not found.
References new(), pBTSMs, pECBehavior, pListeners, and pPointingHands.
| void Dragengine.Scenery.ECBehaviorVRHandPointedAt.Instance.forEachPointingHand | ( | Block | ablock | ) |
Visit hands pointing at element using block.
Block receives as first argument each element of type ECBehaviorVRHandPointAt.Instance.
| ECBehaviorVRHandPointedAt Dragengine.Scenery.ECBehaviorVRHandPointedAt.Instance.getECBehavior | ( | ) |
Behavior.
References getPointingHandCount().
| ECBehaviorVRHandPointAt.Instance Dragengine.Scenery.ECBehaviorVRHandPointedAt.Instance.getPlayerPointing | ( | ) |
Checks if player is pointing at element and if so returns the player hand.
Checks each hand in the list of hands pointing at the element if it has ECBehaviorPlayerControllable and it is the active player hand. If found returns the player hand. If not found null is returned.
References dispose(), new(), pECBehavior, pListeners, and pPointingHands.
| ECBehaviorVRHandPointAt.Instance Dragengine.Scenery.ECBehaviorVRHandPointedAt.Instance.getPointingHandAt | ( | int | index | ) |
Hand pointing at element by index.
References getPointingHandCount().
| int Dragengine.Scenery.ECBehaviorVRHandPointedAt.Instance.getPointingHandCount | ( | ) |
Count of hands pointing at element.
Referenced by getECBehavior(), getPointingHandAt(), and init().
| bool Dragengine.Scenery.ECBehaviorVRHandPointedAt.Instance.hasPointingHand | ( | ECBehaviorVRHandPointAt.Instance | element | ) |
Hand is pointing at element.
| void Dragengine.Scenery.ECBehaviorVRHandPointedAt.Instance.init | ( | StubElement | stub | ) |
Initialize behavior from stub.
Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.
References getPointingHandCount().
Referenced by readFromFile().
| Instance Dragengine.Scenery.ECBehaviorVRHandPointedAt.Instance.new | ( | ECBehaviorVRHandPointedAt | ecbehavior, |
| BehaviorElement | element ) |
Create element.
Referenced by dispose(), findPointingHand(), and getPlayerPointing().
| void Dragengine.Scenery.ECBehaviorVRHandPointedAt.Instance.readFromFile | ( | PersistencyEnvironment | env, |
| FileReader | reader ) |
Read element from file.
Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.
References Dragengine.Scenery.ECBehaviorVRHandPointedAt.createListeners(), Dragengine.Scenery.ECBehaviorVRHandPointedAt.getBTSMs(), init(), and pECBehavior.
| void Dragengine.Scenery.ECBehaviorVRHandPointedAt.Instance.removeListener | ( | Listener | listener | ) |
Remove listener.
References dispose().
| ECComposeBTSM.Instance Dragengine.Scenery.ECBehaviorVRHandPointedAt.Instance.pBTSMs |
Referenced by addPointingHand(), and findPointingHand().
| ECBehaviorVRHandPointedAt Dragengine.Scenery.ECBehaviorVRHandPointedAt.Instance.pECBehavior |
Referenced by findPointingHand(), getPlayerPointing(), and readFromFile().
| Array Dragengine.Scenery.ECBehaviorVRHandPointedAt.Instance.pListeners |
Referenced by addPointingHand(), findPointingHand(), and getPlayerPointing().
| Array Dragengine.Scenery.ECBehaviorVRHandPointedAt.Instance.pPointingHands |
Referenced by addPointingHand(), findPointingHand(), and getPlayerPointing().