|
Drag[en]gine Script Module DragonScript 1.32.1
|
Behavior instance. More...
Public Member Functions | |
| void | addListener (Listener listener) |
| Add listener. | |
| void | dispose () |
| Dispose of inventory. | |
| UnicodeString | getDescription () |
| Description to display. | |
| ECBehaviorStashable | getECBehavior () |
| Behavior. | |
| Image | getImage () |
| Image to display. | |
| ECBehaviorInventory.Instance | getInventory () |
| Inventory this element is part of or null. | |
| UnicodeString | getName () |
| Name to display. | |
| Video | getVideo () |
| Video to display. | |
| void | init (StubElement stub) |
| Initialize element from stub. | |
| void | moveToInventory (ECBehaviorInventory.Instance inventory) |
| Safely moves to a different inventory. | |
| Instance | new (ECBehaviorStashable ecbehavior, BehaviorElement element) |
| Create element. | |
| void | removeFromInventory () |
| Remove from inventory if part of one. | |
| void | removeFromInventoryAndDispose () |
| Remove from inventory if part of one and safely disposes of the element. | |
| void | removeListener (Listener listener) |
| Remove listener. | |
| void | setInventory (ECBehaviorInventory.Instance inventory) |
| Set inventory. | |
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 | readFromFile (PersistencyEnvironment env, FileReader reader) |
| Read behavior instance from file. | |
| 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 |
| UnicodeString | pDescription |
| ECBehaviorStashable | pECBehavior |
| Image | pImage |
| ECBehaviorInventory.Instance | pInventory |
| Array | pListeners |
| UnicodeString | pName |
| Video | pVideo |
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. | |
Behavior instance.
| void Dragengine.Scenery.ECBehaviorStashable.Instance.addListener | ( | Listener | listener | ) |
Add listener.
| void Dragengine.Scenery.ECBehaviorStashable.Instance.dispose | ( | ) |
Dispose of inventory.
Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.
| UnicodeString Dragengine.Scenery.ECBehaviorStashable.Instance.getDescription | ( | ) |
Description to display.
| ECBehaviorStashable Dragengine.Scenery.ECBehaviorStashable.Instance.getECBehavior | ( | ) |
Behavior.
| Image Dragengine.Scenery.ECBehaviorStashable.Instance.getImage | ( | ) |
Image to display.
| ECBehaviorInventory.Instance Dragengine.Scenery.ECBehaviorStashable.Instance.getInventory | ( | ) |
Inventory this element is part of or null.
| UnicodeString Dragengine.Scenery.ECBehaviorStashable.Instance.getName | ( | ) |
Name to display.
| Video Dragengine.Scenery.ECBehaviorStashable.Instance.getVideo | ( | ) |
Video to display.
| void Dragengine.Scenery.ECBehaviorStashable.Instance.init | ( | StubElement | stub | ) |
Initialize element from stub.
Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.
| void Dragengine.Scenery.ECBehaviorStashable.Instance.moveToInventory | ( | ECBehaviorInventory.Instance | inventory | ) |
Safely moves to a different inventory.
Convenience method for calling removeFromInventory() then addToInventory() or doing nothing if the inventory is the same.
| Instance Dragengine.Scenery.ECBehaviorStashable.Instance.new | ( | ECBehaviorStashable | ecbehavior, |
| BehaviorElement | element | ||
| ) |
Create element.
| void Dragengine.Scenery.ECBehaviorStashable.Instance.removeFromInventory | ( | ) |
Remove from inventory if part of one.
| void Dragengine.Scenery.ECBehaviorStashable.Instance.removeFromInventoryAndDispose | ( | ) |
Remove from inventory if part of one and safely disposes of the element.
| void Dragengine.Scenery.ECBehaviorStashable.Instance.removeListener | ( | Listener | listener | ) |
Remove listener.
| void Dragengine.Scenery.ECBehaviorStashable.Instance.setInventory | ( | ECBehaviorInventory.Instance | inventory | ) |
Set inventory.
| ECComposeBTSM.Instance Dragengine.Scenery.ECBehaviorStashable.Instance.pBTSMs |
| UnicodeString Dragengine.Scenery.ECBehaviorStashable.Instance.pDescription |
| ECBehaviorStashable Dragengine.Scenery.ECBehaviorStashable.Instance.pECBehavior |
| Image Dragengine.Scenery.ECBehaviorStashable.Instance.pImage |
| ECBehaviorInventory.Instance Dragengine.Scenery.ECBehaviorStashable.Instance.pInventory |
| Array Dragengine.Scenery.ECBehaviorStashable.Instance.pListeners |
| UnicodeString Dragengine.Scenery.ECBehaviorStashable.Instance.pName |
| Video Dragengine.Scenery.ECBehaviorStashable.Instance.pVideo |