Drag[en]gine Script Module DragonScript
1.23
|
Behavior instance. More...
Public Member Functions | |
bool | canClaim (ECBehaviorOccupier.Instance occupier) |
Occupier can claim spot. More... | |
void | claim (ECBehaviorOccupier.Instance occupier) |
Claim spot. More... | |
void | dispose () |
Dispose of behavior instance. More... | |
void | enterFrame () |
Frame update started. More... | |
ECBehaviorInteractionSpot | getECBehavior () |
Behavior. More... | |
ElementResolver | getElementResolver () |
Element resolver used during loading or null if not set. More... | |
Matrix | getInverseMatrix () |
Inverse interaction matrix relative to element. More... | |
DMatrix | getInverseWorldMatrix () |
Inverse interaction matrix in world space. More... | |
Vector | getLookAt () |
Look-at position for element to use while approaching or null if not used. More... | |
DVector | getLookAtWorld () |
Look-at position in world space for element to use while approaching or null if not used. More... | |
Matrix | getMatrix () |
Interaction matrix relative to element. More... | |
ECBehaviorOccupier.Instance | getOccupier () |
Occupier or null. More... | |
Quaternion | getOrientation () |
Interaction orientation. More... | |
Vector | getPosition () |
Interaction position. More... | |
DMatrix | getWorldMatrix () |
Interaction matrix in world space. More... | |
void | init (StubElement stub) |
Initialize element from stub. More... | |
bool | isEmpty () |
Spot is empty. More... | |
bool | isNotEmpty () |
Spot is occupied. More... | |
bool | isNotOccupying (BehaviorElement element) |
Element is not occupying spot. More... | |
bool | isOccupying (BehaviorElement element) |
Element is occupying spot. More... | |
Instance | new (ECBehaviorInteractionSpot ecbehavior, BehaviorElement element) |
Create element. More... | |
void | readFromFile (PersistencyEnvironment env, FileReader reader) |
Read element from file. More... | |
void | removeListener (Listener listener) |
Remove listener. More... | |
Public Member Functions inherited from Dragengine.Scenery.DefaultECBehaviorInstance | |
void | addToGameWorld () |
Add element to game world. More... | |
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... | |
void | removeFromGameWorld () |
Remove element from game world. 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... | |
void | writeToFile (PersistencyEnvironment env, FileWriter writer) |
Write behavior instance to file. 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.
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.