|
Drag[en]gine Script Module DragonScript 1.32.1
|
Fires or resets a trigger target after a delay if trigger expression becomes true. More...
Public Member Functions | |
| TriggerTimer | new (TriggerTimerClass eclass) |
| Create trigger object. | |
| void | visit (ElementVisitor visitor) |
| Visit trigger. | |
Public Member Functions inherited from Dragengine.Scenery.BehaviorElement | |
| void | addAttachableBehavior (ECAttachableBehavior behavior) |
| Add attached behavior. | |
| Array | collectAttachableBehaviors (Block ablock) |
| Collect attached behaviors with block into Array. | |
| Array | collectInstances (Block ablock) |
| Collect behavior instance with block into Array. | |
| ECAttachableBehavior | findAttachableBehavior (Block ablock) |
| Find attached behavior with block. | |
| ECBehaviorInstance | findInstance (Block ablock) |
| Find behavior instance with block. | |
| void | forEachAttachableBehavior (Block ablock) |
| Visit attached s with block. | |
| void | forEachAttachableBehaviorReverse (Block ablock) |
| Visit attached behaviors with block in reverse order. | |
| ECAttachableBehavior | getAttachableBehaviorAt (int index) |
| Attached behavior at index. | |
| int | getAttachableBehaviorCount () |
| Count of attachaed behaviors. | |
| bool | getRequiresAttachToParent () |
| Attach to parent has not been processed yet. | |
| bool | getRequiresEnterFrame () |
| Sub-class requires enterFrame() to be called. | |
| bool | getRequiresThink () |
| Sub-class requires think() to be called. | |
| bool | isChangingGameWorld () |
| Behavior element is in progress of beeing added to or removed from a GameWorld. | |
| bool | isReallyInGameWorld () |
| Element is in GameWorld and not in progress of beeing removed from it. | |
| BehaviorElement | new (BehaviorElementClass eclass) |
| Create element. | |
| void | onSetPosition () |
| Position changed. | |
| void | registerPostInit (BehaviorPostInit behavior) |
| Register behavior instance for post init. | |
| void | removeAttachableBehavior (ECAttachableBehavior behavior) |
| Remove attached behavior. | |
| void | requiresThinkChanged () |
| Requires thinking changed. | |
| void | setRequiresAttachToParent (bool requiresAttachToParent) |
| Set if attach to parent has not been processed yet. | |
Public Member Functions inherited from Dragengine.Scenery.Element | |
| void | addToGameWorld () |
| Dictionary | debugInformation () |
| Debug information as Dictionary. | |
| void | dispose () |
| Dispose of element. | |
| void | enterFrame () |
| Frame update started. | |
| ElementClass | getClass () |
| DMatrix | getElementMatrix () |
| Matrix to transform from element space into world space. | |
| GameWorld | getGameWorld () |
| UniqueID | getID () |
| DMatrix | getInverseElementMatrix () |
| Matrix to transform from world space into element space. | |
| bool | getIsScaled () |
| Is scaled. | |
| Quaternion | getOrientation () |
| Orientation. | |
| Element | getParent () |
| DVector | getPosition () |
| Position. | |
| Vector | getScaling () |
| Scaling. | |
| StubElement | getStub () |
| Element stub used to create the element. | |
| bool | getTouchable () |
| bool | getVisible () |
| void | init (StubElement stub) |
| Initialize element from stub. | |
| bool | isChildOf (Element parent) |
| bool | isDisposed () |
| Element has been disposed of. | |
| bool | isMyselfOrChildOf (Element parent) |
| bool | isNotDisposed () |
| Element has not been disposed of. | |
| void | log (String message) |
| Log using BaseGameApp Console if present. | |
| Element | new (ElementClass elementClass) |
| void | onSetGameWorld () |
| void | onSetGeometry () |
| Position, orientation or scaling changed. | |
| void | onSetOrientation () |
| Orientation changed. | |
| void | onSetParent () |
| void | onSetScaling () |
| Scaling changed. | |
| void | onSetTouchable () |
| void | onSetVisible () |
| void | postThink (float elapsed) |
| void | readFromFile (PersistencyEnvironment env, FileReader reader) |
| Read element from file reader. | |
| void | removeFromGameWorld () |
| void | removeFromGameWorldIfPresent () |
| Remove element from game world if present. | |
| void | safeDispose () |
| Remove element from game world if present and dispose of element. | |
| void | setGameWorld (GameWorld gameWorld) |
| void | setGeometry (DVector position, Quaternion orientation) |
| Set position and orientation. | |
| void | setGeometry (DVector position, Quaternion orientation, Vector scaling) |
| Set position, orientation and scaling of element. | |
| void | setID (UniqueID id) |
| void | setOrientation (Quaternion orientation) |
| Set orientation. | |
| void | setParent (Element parent) |
| void | setPosition (DVector position) |
| Set position. | |
| void | setScaling (Vector scaling) |
| Set scaling. | |
| void | setStub (StubElement stub) |
| Set element stub used to create the element. | |
| void | setTouchable (bool touchable) |
| void | setVisible (bool visible) |
| void | think (float elapsed) |
| String | toString () |
| void | updateStubGeometryFromElement () |
| Update stub position, rotation and scaling from element. | |
| void | writeToFile (PersistencyEnvironment env, FileWriter writer) |
| Write element to file writer. | |
| void | writeToFileWithStub (PersistencyEnvironment env, FileWriter writer) |
| Write element to file writer with stub. | |
Additional Inherited Members | |
Static Public Member Functions inherited from Dragengine.Scenery.Element | |
| static Element | readElementFromFileWithStub (PersistencyEnvironment env, FileReader reader, ElementClassList ElementClassList) |
| Load element from file reader with stub supporting null element. | |
| static void | writeElementToFileWithStub (PersistencyEnvironment env, FileWriter writer, Element element) |
| Write element to file writer with stub supporting null element. | |
Public Attributes inherited from Dragengine.Scenery.BehaviorElement | |
| Array | pAttachableBehaviors |
| Array | pInstances |
| bool | pIsChangingGameWorld |
| bool | pIsThinker |
| bool | pRequiresAttachToParent |
| bool | pRequiresEnterFrame |
| bool | pRequiresThink |
Public Attributes inherited from Dragengine.Scenery.Element | |
| ElementClass | pClass |
| GameWorld | pGameWorld |
| UniqueID | pID |
| bool | pIsScaled |
| DMatrix | pMatrix |
| DMatrix | pMatrixInverse |
| Quaternion | pOrientation |
| Element | pParent |
| DVector | pPosition |
| Vector | pScaling |
| StubElement | pStub |
| bool | pTouchable |
| bool | pVisible |
Protected Member Functions inherited from Dragengine.Scenery.BehaviorElement | |
| void | setRequiresEnterFrame (bool requiresEnterFrame) |
| Set if sub-class requires enterFrame() to be called. | |
| void | setRequiresThink (bool requiresThink) |
| Set if sub-class requires think() to be called. | |
Fires or resets a trigger target after a delay if trigger expression becomes true.
| TriggerTimer Dragengine.Scenery.TriggerTimer.new | ( | TriggerTimerClass | eclass | ) |
Create trigger object.
| void Dragengine.Scenery.TriggerTimer.visit | ( | ElementVisitor | visitor | ) |
Visit trigger.
Reimplemented from Dragengine.Scenery.Element.