|
Drag[en]gine Script Module DragonScript 1.32.1
|
Behavior instance. More...
Public Member Functions | |
| bool | canClaim (ECBehaviorOccupier.Instance occupier) |
| Occupier can claim spot. | |
| void | claim (ECBehaviorOccupier.Instance occupier) |
| Claim spot. | |
| void | dispose () |
| Dispose of behavior instance. | |
| void | enterFrame () |
| Frame update started. | |
| ECBehaviorInteractionSpot | getECBehavior () |
| Behavior. | |
| ElementResolver | getElementResolver () |
| Element resolver used during loading or null if not set. | |
| Matrix | getInverseMatrix () |
| Inverse interaction matrix relative to element. | |
| DMatrix | getInverseWorldMatrix () |
| Inverse interaction matrix in world space. | |
| Vector | getLookAt () |
| Look-at position for element to use while approaching or null if not used. | |
| DVector | getLookAtWorld () |
| Look-at position in world space for element to use while approaching or null if not used. | |
| Matrix | getMatrix () |
| Interaction matrix relative to element. | |
| ECBehaviorOccupier.Instance | getOccupier () |
| Occupier or null. | |
| Quaternion | getOrientation () |
| Interaction orientation. | |
| Vector | getPosition () |
| Interaction position. | |
| DMatrix | getWorldMatrix () |
| Interaction matrix in world space. | |
| void | init (StubElement stub) |
| Initialize element from stub. | |
| bool | isEmpty () |
| Spot is empty. | |
| bool | isNotEmpty () |
| Spot is occupied. | |
| bool | isNotOccupying (BehaviorElement element) |
| Element is not occupying spot. | |
| bool | isOccupying (BehaviorElement element) |
| Element is occupying spot. | |
| Instance | new (ECBehaviorInteractionSpot ecbehavior, BehaviorElement element) |
| Create element. | |
| void | readFromFile (PersistencyEnvironment env, FileReader reader) |
| Read element from file. | |
| void | removeListener (Listener listener) |
| Remove listener. | |
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 | 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). | |
| 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 |
| ECBehaviorInteractionSpot | pECBehavior |
| ElementResolver | pElementResolver |
| Matrix | pInverseMatrix |
| Array | pListeners |
| Vector | pLookAt |
| Matrix | pMatrix |
| ECBehaviorOccupier.Instance | pOccupier |
| Quaternion | pOrientation |
| Vector | pPosition |
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.
| bool Dragengine.Scenery.ECBehaviorInteractionSpot.Instance.canClaim | ( | ECBehaviorOccupier.Instance | occupier | ) |
Occupier can claim spot.
| false | Spot is not empty. |
| false | Occupier is already occupying another spot. |
| true | Claiming is possible |
| void Dragengine.Scenery.ECBehaviorInteractionSpot.Instance.claim | ( | ECBehaviorOccupier.Instance | occupier | ) |
Claim spot.
| EInvalidParam | occupier is null. |
| EInvalidParam | Spot is not empty. |
| EInvalidParam | occupier is already occupying another spot. |
| void Dragengine.Scenery.ECBehaviorInteractionSpot.Instance.dispose | ( | ) |
Dispose of behavior instance.
Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.
| void Dragengine.Scenery.ECBehaviorInteractionSpot.Instance.enterFrame | ( | ) |
Frame update started.
Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.
| ECBehaviorInteractionSpot Dragengine.Scenery.ECBehaviorInteractionSpot.Instance.getECBehavior | ( | ) |
Behavior.
| ElementResolver Dragengine.Scenery.ECBehaviorInteractionSpot.Instance.getElementResolver | ( | ) |
Element resolver used during loading or null if not set.
| Matrix Dragengine.Scenery.ECBehaviorInteractionSpot.Instance.getInverseMatrix | ( | ) |
Inverse interaction matrix relative to element.
| DMatrix Dragengine.Scenery.ECBehaviorInteractionSpot.Instance.getInverseWorldMatrix | ( | ) |
Inverse interaction matrix in world space.
| Vector Dragengine.Scenery.ECBehaviorInteractionSpot.Instance.getLookAt | ( | ) |
Look-at position for element to use while approaching or null if not used.
| DVector Dragengine.Scenery.ECBehaviorInteractionSpot.Instance.getLookAtWorld | ( | ) |
Look-at position in world space for element to use while approaching or null if not used.
| Matrix Dragengine.Scenery.ECBehaviorInteractionSpot.Instance.getMatrix | ( | ) |
Interaction matrix relative to element.
| ECBehaviorOccupier.Instance Dragengine.Scenery.ECBehaviorInteractionSpot.Instance.getOccupier | ( | ) |
Occupier or null.
| Quaternion Dragengine.Scenery.ECBehaviorInteractionSpot.Instance.getOrientation | ( | ) |
Interaction orientation.
| Vector Dragengine.Scenery.ECBehaviorInteractionSpot.Instance.getPosition | ( | ) |
Interaction position.
| DMatrix Dragengine.Scenery.ECBehaviorInteractionSpot.Instance.getWorldMatrix | ( | ) |
Interaction matrix in world space.
| void Dragengine.Scenery.ECBehaviorInteractionSpot.Instance.init | ( | StubElement | stub | ) |
Initialize element from stub.
Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.
| bool Dragengine.Scenery.ECBehaviorInteractionSpot.Instance.isEmpty | ( | ) |
Spot is empty.
| bool Dragengine.Scenery.ECBehaviorInteractionSpot.Instance.isNotEmpty | ( | ) |
Spot is occupied.
| bool Dragengine.Scenery.ECBehaviorInteractionSpot.Instance.isNotOccupying | ( | BehaviorElement | element | ) |
Element is not occupying spot.
| bool Dragengine.Scenery.ECBehaviorInteractionSpot.Instance.isOccupying | ( | BehaviorElement | element | ) |
Element is occupying spot.
| Instance Dragengine.Scenery.ECBehaviorInteractionSpot.Instance.new | ( | ECBehaviorInteractionSpot | ecbehavior, |
| BehaviorElement | element | ||
| ) |
Create element.
| void Dragengine.Scenery.ECBehaviorInteractionSpot.Instance.readFromFile | ( | PersistencyEnvironment | env, |
| FileReader | reader | ||
| ) |
Read element from file.
Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.
| void Dragengine.Scenery.ECBehaviorInteractionSpot.Instance.removeListener | ( | Listener | listener | ) |
Remove listener.
| ECComposeBTSM.Instance Dragengine.Scenery.ECBehaviorInteractionSpot.Instance.pBTSMs |
| ECBehaviorInteractionSpot Dragengine.Scenery.ECBehaviorInteractionSpot.Instance.pECBehavior |
| ElementResolver Dragengine.Scenery.ECBehaviorInteractionSpot.Instance.pElementResolver |
| Matrix Dragengine.Scenery.ECBehaviorInteractionSpot.Instance.pInverseMatrix |
| Array Dragengine.Scenery.ECBehaviorInteractionSpot.Instance.pListeners |
| Vector Dragengine.Scenery.ECBehaviorInteractionSpot.Instance.pLookAt |
| Matrix Dragengine.Scenery.ECBehaviorInteractionSpot.Instance.pMatrix |
| ECBehaviorOccupier.Instance Dragengine.Scenery.ECBehaviorInteractionSpot.Instance.pOccupier |
| Quaternion Dragengine.Scenery.ECBehaviorInteractionSpot.Instance.pOrientation |
| Vector Dragengine.Scenery.ECBehaviorInteractionSpot.Instance.pPosition |