Drag[en]gine Script Module DragonScript
1.23
|
Behavior instance. More...
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... | |
Behavior instance.
void Dragengine.Scenery.ECBehaviorLookedAt.Instance.addListener | ( | Listener | listener | ) |
Add listener.
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.
void Dragengine.Scenery.ECBehaviorLookedAt.Instance.dispose | ( | ) |
Dispose of inventory.
Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.
void Dragengine.Scenery.ECBehaviorLookedAt.Instance.enterFrame | ( | ) |
Frame update started.
Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.
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.
ECBehaviorLookedAt Dragengine.Scenery.ECBehaviorLookedAt.Instance.getECBehavior | ( | ) |
Behavior.
BehaviorElement Dragengine.Scenery.ECBehaviorLookedAt.Instance.getLookingActorAt | ( | int | index | ) |
Actor looking at element by index.
int Dragengine.Scenery.ECBehaviorLookedAt.Instance.getLookingActorCount | ( | ) |
Count of actors looking at element.
bool Dragengine.Scenery.ECBehaviorLookedAt.Instance.hasLookingActor | ( | BehaviorElement | element | ) |
Actor is looking at element.
void Dragengine.Scenery.ECBehaviorLookedAt.Instance.init | ( | StubElement | stub | ) |
Initialize behavior from stub.
Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.
Instance Dragengine.Scenery.ECBehaviorLookedAt.Instance.new | ( | ECBehaviorLookedAt | ecbehavior, |
BehaviorElement | element | ||
) |
Create element.
void Dragengine.Scenery.ECBehaviorLookedAt.Instance.readFromFile | ( | PersistencyEnvironment | env, |
FileReader | reader | ||
) |
Read element from file.
Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.
void Dragengine.Scenery.ECBehaviorLookedAt.Instance.removeListener | ( | Listener | listener | ) |
Remove listener.
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.
void Dragengine.Scenery.ECBehaviorLookedAt.Instance.writeToFile | ( | PersistencyEnvironment | env, |
FileWriter | writer | ||
) |
Write element to file.
Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.