|
Drag[en]gine Script Module DragonScript 1.35
|
Behavior instance. More...
Public Member Functions | |
| void | dispose () |
| Dispose of behavior. | |
| void | dispose () |
| Dispose of behavior instance. | |
| ECComposeBTSM | getBTSMs () |
| Compose behavior trees and state machines. | |
| ECBehaviorTimers | getECBehavior () |
| Behavior. | |
| String | getPrefix () |
| Prefix. | |
| float | getTimerRemaining (String timer) |
| Remaining time of timer or 0 if absent. | |
| void | init (StubElement stub) |
| Initialize element from stub. | |
| Instance | instance (BehaviorElement element) |
| Get instance in element from owner element class. | |
| bool | isTimerRunning (String timer) |
| Timer is present and running. | |
| Instance | new (BehaviorElementClass eclass) |
| Create behavior element class. | |
| Instance | new (BehaviorElementClass eclass, String prefix) |
| Instance | new (ECBehaviorTimers ecbehavior, BehaviorElement element) |
| Create element. | |
| void | readFromFile (PersistencyEnvironment env, FileReader reader) |
| Read element from file. | |
| void | startTimer (String timer, float timeout) |
| Start timer adding it if absent. | |
| void | stopTimer (String timer) |
| Stop timer if present. | |
| void | think (float elapsed) |
| Think frame update. | |
| void | updateTimers (float elapsed) |
| Update timers. | |
| void | writeToFile (PersistencyEnvironment env, FileWriter writer) |
| Write element to file. | |
| 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 | 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). | |
Static Public Member Functions | |
| static ECBehaviorTimers | getBehaviorIn (BehaviorElementClass eclass) |
| Get behavior in element class or null if absent. | |
Public Attributes | |
| ECComposeBTSM | pBTSMs |
| ECComposeBTSM.Instance | pBTSMs |
| bool | pCanSendEvents |
| ECBehaviorTimers | pECBehavior |
| Array | pElapsedTimers |
| String | pPrefix |
| Dictionary | pTimers |
| 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.ECBehaviorTimers.Instance.dispose | ( | ) |
Dispose of behavior.
Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.
References instance().
| void Dragengine.Scenery.ECBehaviorTimers.Instance.dispose | ( | ) |
Dispose of behavior instance.
Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.
Referenced by getBehaviorIn().
|
static |
Get behavior in element class or null if absent.
Use this method to check if a particular BehaviorElementClass contains a behavior of type ECBehaviorTimers.
References Dragengine.Scenery.ECBehavior.createInstance(), dispose(), getBehaviorIn(), getBTSMs(), getECBehavior(), getPrefix(), getTimerRemaining(), init(), instance(), isTimerRunning(), new(), pBTSMs, pCanSendEvents, pECBehavior, pElapsedTimers, pPrefix, pTimers, readFromFile(), Dragengine.Scenery.DefaultECBehaviorInstance.setRequiresThink(), startTimer(), stopTimer(), think(), updateTimers(), and writeToFile().
Referenced by getBehaviorIn().
| ECComposeBTSM Dragengine.Scenery.ECBehaviorTimers.Instance.getBTSMs | ( | ) |
Compose behavior trees and state machines.
References isTimerRunning().
Referenced by getBehaviorIn().
| ECBehaviorTimers Dragengine.Scenery.ECBehaviorTimers.Instance.getECBehavior | ( | ) |
Behavior.
Referenced by getBehaviorIn().
| String Dragengine.Scenery.ECBehaviorTimers.Instance.getPrefix | ( | ) |
Prefix.
Referenced by getBehaviorIn().
| float Dragengine.Scenery.ECBehaviorTimers.Instance.getTimerRemaining | ( | String | timer | ) |
Remaining time of timer or 0 if absent.
References stopTimer().
Referenced by getBehaviorIn(), and instance().
| void Dragengine.Scenery.ECBehaviorTimers.Instance.init | ( | StubElement | stub | ) |
Initialize element from stub.
Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.
Referenced by getBehaviorIn().
| Instance Dragengine.Scenery.ECBehaviorTimers.Instance.instance | ( | BehaviorElement | element | ) |
Get instance in element from owner element class.
References getTimerRemaining().
Referenced by dispose(), getBehaviorIn(), and updateTimers().
| bool Dragengine.Scenery.ECBehaviorTimers.Instance.isTimerRunning | ( | String | timer | ) |
Timer is present and running.
Referenced by getBehaviorIn(), and getBTSMs().
| Instance Dragengine.Scenery.ECBehaviorTimers.Instance.new | ( | BehaviorElementClass | eclass | ) |
Create behavior element class.
| Instance Dragengine.Scenery.ECBehaviorTimers.Instance.new | ( | BehaviorElementClass | eclass, |
| String | prefix ) |
References new().
| Instance Dragengine.Scenery.ECBehaviorTimers.Instance.new | ( | ECBehaviorTimers | ecbehavior, |
| BehaviorElement | element ) |
| void Dragengine.Scenery.ECBehaviorTimers.Instance.readFromFile | ( | PersistencyEnvironment | env, |
| FileReader | reader ) |
Read element from file.
Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.
Referenced by getBehaviorIn().
| void Dragengine.Scenery.ECBehaviorTimers.Instance.startTimer | ( | String | timer, |
| float | timeout ) |
Start timer adding it if absent.
Referenced by getBehaviorIn(), and stopTimer().
| void Dragengine.Scenery.ECBehaviorTimers.Instance.stopTimer | ( | String | timer | ) |
Stop timer if present.
References startTimer().
Referenced by getBehaviorIn(), and getTimerRemaining().
| void Dragengine.Scenery.ECBehaviorTimers.Instance.think | ( | float | elapsed | ) |
Think frame update.
Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.
Referenced by getBehaviorIn().
| void Dragengine.Scenery.ECBehaviorTimers.Instance.updateTimers | ( | float | elapsed | ) |
| void Dragengine.Scenery.ECBehaviorTimers.Instance.writeToFile | ( | PersistencyEnvironment | env, |
| FileWriter | writer ) |
Write element to file.
Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.
Referenced by getBehaviorIn().
| ECComposeBTSM Dragengine.Scenery.ECBehaviorTimers.Instance.pBTSMs |
| ECComposeBTSM.Instance Dragengine.Scenery.ECBehaviorTimers.Instance.pBTSMs |
Referenced by getBehaviorIn().
| bool Dragengine.Scenery.ECBehaviorTimers.Instance.pCanSendEvents |
Referenced by getBehaviorIn().
| ECBehaviorTimers Dragengine.Scenery.ECBehaviorTimers.Instance.pECBehavior |
Referenced by getBehaviorIn().
| Array Dragengine.Scenery.ECBehaviorTimers.Instance.pElapsedTimers |
Referenced by getBehaviorIn().
| String Dragengine.Scenery.ECBehaviorTimers.Instance.pPrefix |
Referenced by getBehaviorIn().
| Dictionary Dragengine.Scenery.ECBehaviorTimers.Instance.pTimers |
Referenced by getBehaviorIn().