Drag[en]gine Script Module DragonScript 1.35
Loading...
Searching...
No Matches
Dragengine.Scenery.ECBehaviorVRHandPointedAt.Instance Class Reference

Behavior instance. More...

Inheritance diagram for Dragengine.Scenery.ECBehaviorVRHandPointedAt.Instance:
Dragengine.Scenery.DefaultECBehaviorInstance Dragengine.Scenery.ECBehaviorInstance

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.

Detailed Description

Behavior instance.

Member Function Documentation

◆ addPointingHand()

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.

◆ dispose()

void Dragengine.Scenery.ECBehaviorVRHandPointedAt.Instance.dispose ( )

Dispose of inventory.

Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.

References new().

Referenced by getPlayerPointing(), and removeListener().

◆ findPointingHand()

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.

◆ forEachPointingHand()

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.

◆ getECBehavior()

ECBehaviorVRHandPointedAt Dragengine.Scenery.ECBehaviorVRHandPointedAt.Instance.getECBehavior ( )

Behavior.

References getPointingHandCount().

◆ getPlayerPointing()

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.

◆ getPointingHandAt()

ECBehaviorVRHandPointAt.Instance Dragengine.Scenery.ECBehaviorVRHandPointedAt.Instance.getPointingHandAt ( int index)

Hand pointing at element by index.

References getPointingHandCount().

◆ getPointingHandCount()

int Dragengine.Scenery.ECBehaviorVRHandPointedAt.Instance.getPointingHandCount ( )

Count of hands pointing at element.

Referenced by getECBehavior(), getPointingHandAt(), and init().

◆ hasPointingHand()

bool Dragengine.Scenery.ECBehaviorVRHandPointedAt.Instance.hasPointingHand ( ECBehaviorVRHandPointAt.Instance element)

Hand is pointing at element.

◆ init()

void Dragengine.Scenery.ECBehaviorVRHandPointedAt.Instance.init ( StubElement stub)

Initialize behavior from stub.

Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.

References getPointingHandCount().

Referenced by readFromFile().

◆ new()

Instance Dragengine.Scenery.ECBehaviorVRHandPointedAt.Instance.new ( ECBehaviorVRHandPointedAt ecbehavior,
BehaviorElement element )

Create element.

Referenced by dispose(), findPointingHand(), and getPlayerPointing().

◆ readFromFile()

void Dragengine.Scenery.ECBehaviorVRHandPointedAt.Instance.readFromFile ( PersistencyEnvironment env,
FileReader reader )

◆ removeListener()

void Dragengine.Scenery.ECBehaviorVRHandPointedAt.Instance.removeListener ( Listener listener)

Remove listener.

References dispose().

Member Data Documentation

◆ pBTSMs

ECComposeBTSM.Instance Dragengine.Scenery.ECBehaviorVRHandPointedAt.Instance.pBTSMs

◆ pECBehavior

ECBehaviorVRHandPointedAt Dragengine.Scenery.ECBehaviorVRHandPointedAt.Instance.pECBehavior

◆ pListeners

Array Dragengine.Scenery.ECBehaviorVRHandPointedAt.Instance.pListeners

◆ pPointingHands

Array Dragengine.Scenery.ECBehaviorVRHandPointedAt.Instance.pPointingHands

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