Drag[en]gine Script Module DragonScript  1.23
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. More...
 
void dispose ()
 Dispose of inventory. More...
 
ECBehaviorVRHandPointAt.Instance findPointingHand (Block ablock)
 Find hand pointing at element using block. More...
 
void forEachPointingHand (Block ablock)
 Visit hands pointing at element using block. More...
 
ECBehaviorVRHandPointedAt getECBehavior ()
 Behavior. More...
 
ECBehaviorVRHandPointAt.Instance getPlayerPointing ()
 Checks if player is pointing at element and if so returns the player hand. More...
 
ECBehaviorVRHandPointAt.Instance getPointingHandAt (int index)
 Hand pointing at element by index. More...
 
int getPointingHandCount ()
 Count of hands pointing at element. More...
 
bool hasPointingHand (ECBehaviorVRHandPointAt.Instance element)
 Hand is pointing at element. More...
 
void init (StubElement stub)
 Initialize behavior from stub. More...
 
Instance new (ECBehaviorVRHandPointedAt ecbehavior, BehaviorElement element)
 Create element. More...
 
void readFromFile (PersistencyEnvironment env, FileReader reader)
 Read element from file. More...
 
void removeListener (Listener listener)
 Remove listener. More...
 
- Public Member Functions inherited from Dragengine.Scenery.DefaultECBehaviorInstance
void addToGameWorld ()
 Add element to game world. More...
 
void attachToParent (Element parent)
 Attach element to object set by the mapper in the IGDE World Editor. More...
 
void enterFrame ()
 Frame update started. More...
 
void geometryChanged ()
 Position or orientation changed. More...
 
BehaviorElement getElement ()
 Behavior element to apply behavior to. More...
 
int getInstanceIndex ()
 Behavior instance index. More...
 
DefaultECBehaviorInstance new (BehaviorElement element)
 Create default composeable instance. More...
 
void postThink (float elapsed)
 Post thinking after physics processing is finished. More...
 
void removeFromGameWorld ()
 Remove element from game world. More...
 
bool requiresEnterFrame ()
 Behavior instance requires enterFrame() to be called. More...
 
bool requiresThink ()
 Behavior instance requires think() to be called. More...
 
void stateChanged ()
 State changed (visble, touchable). More...
 
void think (float elapsed)
 Think about what to do for the next frame update. More...
 
void writeToFile (PersistencyEnvironment env, FileWriter writer)
 Write behavior instance to file. More...
 

Additional Inherited Members

- Protected Member Functions inherited from Dragengine.Scenery.DefaultECBehaviorInstance
void setRequiresEnterFrame (bool required)
 Set if behavior instance requires enterFrame() to be called. More...
 
void setRequiresThink (bool required)
 Set if behavior instance requires think() to be called. More...
 

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.

◆ dispose()

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

Dispose of inventory.

Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.

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

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

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

◆ getPointingHandAt()

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

Hand pointing at element by index.

◆ getPointingHandCount()

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

Count of hands pointing at element.

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

◆ new()

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

Create element.

◆ readFromFile()

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

Read element from file.

Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.

◆ removeListener()

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

Remove listener.


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