Drag[en]gine Script Module DragonScript
1.23
|
Behavior instance. More...
Public Member Functions | |
void | add (ECBehaviorStashable.Instance stashable) |
Add stashable to inventory. More... | |
void | addListener (Listener listener) |
Add listener. More... | |
void | addToGameWorld () |
Add element to game world. More... | |
void | dispose () |
Dispose of composeable instance. More... | |
void | enterFrame () |
Frame update started. More... | |
void | forEach (Block ablock) |
Visit stashables with block. More... | |
ECBehaviorStashable.Instance | getAt (int index) |
Stashable at index. More... | |
int | getCount () |
Count of stashables. More... | |
ECBehaviorInventory | getECBehavior () |
Behavior. More... | |
ElementResolver | getElementResolver () |
Element resolver used during loading or null if not set. More... | |
bool | has (ECBehaviorStashable.Instance stashable) |
Stashable is present. More... | |
void | init (StubElement stub) |
Initialize element from stub. More... | |
Instance | new (ECBehaviorInventory ecbehavior, BehaviorElement element) |
Create element. More... | |
void | readFromFile (PersistencyEnvironment env, FileReader reader) |
Read element from file. More... | |
void | remove (ECBehaviorStashable.Instance stashable) |
Remove stashable without disposing of it. More... | |
void | removeAndDispose (ECBehaviorStashable.Instance stashable) |
Remove stashable and dispose of it. More... | |
void | removeFromGameWorld () |
Remove element from game world. More... | |
void | removeListener (Listener listener) |
Remove listener. More... | |
void | writeToFile (PersistencyEnvironment env, FileWriter writer) |
Write element to file. More... | |
Public Member Functions inherited from Dragengine.Scenery.DefaultECBehaviorInstance | |
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... | |
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.ECBehaviorInventory.Instance.add | ( | ECBehaviorStashable.Instance | stashable | ) |
Add stashable to inventory.
EInvalidParam | stashable is null. |
EInvalidParam | stashable is already in another inventory. |
void Dragengine.Scenery.ECBehaviorInventory.Instance.addListener | ( | Listener | listener | ) |
Add listener.
void Dragengine.Scenery.ECBehaviorInventory.Instance.addToGameWorld | ( | ) |
Add element to game world.
Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.
void Dragengine.Scenery.ECBehaviorInventory.Instance.dispose | ( | ) |
Dispose of composeable instance.
Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.
void Dragengine.Scenery.ECBehaviorInventory.Instance.enterFrame | ( | ) |
Frame update started.
Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.
void Dragengine.Scenery.ECBehaviorInventory.Instance.forEach | ( | Block | ablock | ) |
Visit stashables with block.
Block receives as only argument ECBehaviorStashable.Instance stashable.
ECBehaviorStashable.Instance Dragengine.Scenery.ECBehaviorInventory.Instance.getAt | ( | int | index | ) |
Stashable at index.
int Dragengine.Scenery.ECBehaviorInventory.Instance.getCount | ( | ) |
Count of stashables.
ECBehaviorInventory Dragengine.Scenery.ECBehaviorInventory.Instance.getECBehavior | ( | ) |
Behavior.
ElementResolver Dragengine.Scenery.ECBehaviorInventory.Instance.getElementResolver | ( | ) |
Element resolver used during loading or null if not set.
bool Dragengine.Scenery.ECBehaviorInventory.Instance.has | ( | ECBehaviorStashable.Instance | stashable | ) |
Stashable is present.
void Dragengine.Scenery.ECBehaviorInventory.Instance.init | ( | StubElement | stub | ) |
Initialize element from stub.
Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.
Instance Dragengine.Scenery.ECBehaviorInventory.Instance.new | ( | ECBehaviorInventory | ecbehavior, |
BehaviorElement | element | ||
) |
Create element.
void Dragengine.Scenery.ECBehaviorInventory.Instance.readFromFile | ( | PersistencyEnvironment | env, |
FileReader | reader | ||
) |
Read element from file.
Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.
void Dragengine.Scenery.ECBehaviorInventory.Instance.remove | ( | ECBehaviorStashable.Instance | stashable | ) |
Remove stashable without disposing of it.
void Dragengine.Scenery.ECBehaviorInventory.Instance.removeAndDispose | ( | ECBehaviorStashable.Instance | stashable | ) |
Remove stashable and dispose of it.
Calls removeFromGameWorldIfPresent() then dispose() on the stashable.
void Dragengine.Scenery.ECBehaviorInventory.Instance.removeFromGameWorld | ( | ) |
Remove element from game world.
Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.
void Dragengine.Scenery.ECBehaviorInventory.Instance.removeListener | ( | Listener | listener | ) |
Remove listener.
void Dragengine.Scenery.ECBehaviorInventory.Instance.writeToFile | ( | PersistencyEnvironment | env, |
FileWriter | writer | ||
) |
Write element to file.
Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.