Drag[en]gine Script Module DragonScript  1.23
Dragengine.Scenery.ECBehaviorLookedAt.Instance Class Reference

Behavior instance. More...

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

Public Member Functions

void addListener (Listener listener)
 Add listener. More...
 
void addLookingActor (BehaviorElement actor)
 Add actor to list if absent. More...
 
void dispose ()
 Dispose of inventory. More...
 
void enterFrame ()
 Frame update started. More...
 
void forEachLookingActor (Block ablock)
 Visit actors looking at element using block. More...
 
ECBehaviorLookedAt getECBehavior ()
 Behavior. More...
 
BehaviorElement getLookingActorAt (int index)
 Actor looking at element by index. More...
 
int getLookingActorCount ()
 Count of actors looking at element. More...
 
bool hasLookingActor (BehaviorElement element)
 Actor is looking at element. More...
 
void init (StubElement stub)
 Initialize behavior from stub. More...
 
Instance new (ECBehaviorLookedAt ecbehavior, BehaviorElement element)
 Create element. More...
 
void readFromFile (PersistencyEnvironment env, FileReader reader)
 Read element from file. More...
 
void removeListener (Listener listener)
 Remove listener. More...
 
void removeLookingActor (BehaviorElement actor)
 Remove actor from list if present. More...
 
void writeToFile (PersistencyEnvironment env, FileWriter writer)
 Write element to file. 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 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...
 

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

◆ addListener()

void Dragengine.Scenery.ECBehaviorLookedAt.Instance.addListener ( Listener  listener)

Add listener.

◆ addLookingActor()

void Dragengine.Scenery.ECBehaviorLookedAt.Instance.addLookingActor ( BehaviorElement  actor)

Add actor to list if absent.

If actor is added to the list actorStartsLookingAt() is called on all listeners.

◆ dispose()

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

Dispose of inventory.

Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.

◆ enterFrame()

void Dragengine.Scenery.ECBehaviorLookedAt.Instance.enterFrame ( )

Frame update started.

Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.

◆ forEachLookingActor()

void Dragengine.Scenery.ECBehaviorLookedAt.Instance.forEachLookingActor ( Block  ablock)

Visit actors looking at element using block.

Block receives as first argument each element of type BehaviorElement.

◆ getECBehavior()

ECBehaviorLookedAt Dragengine.Scenery.ECBehaviorLookedAt.Instance.getECBehavior ( )

Behavior.

◆ getLookingActorAt()

BehaviorElement Dragengine.Scenery.ECBehaviorLookedAt.Instance.getLookingActorAt ( int  index)

Actor looking at element by index.

◆ getLookingActorCount()

int Dragengine.Scenery.ECBehaviorLookedAt.Instance.getLookingActorCount ( )

Count of actors looking at element.

◆ hasLookingActor()

bool Dragengine.Scenery.ECBehaviorLookedAt.Instance.hasLookingActor ( BehaviorElement  element)

Actor is looking at element.

◆ init()

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

Initialize behavior from stub.

Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.

◆ new()

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

Create element.

◆ readFromFile()

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

Read element from file.

Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.

◆ removeListener()

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

Remove listener.

◆ removeLookingActor()

void Dragengine.Scenery.ECBehaviorLookedAt.Instance.removeLookingActor ( BehaviorElement  actor)

Remove actor from list if present.

If actor is removed from list actorStopsLookingAt() is called on all listeners.

◆ writeToFile()

void Dragengine.Scenery.ECBehaviorLookedAt.Instance.writeToFile ( PersistencyEnvironment  env,
FileWriter  writer 
)

Write element to file.

Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.


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