Drag[en]gine Script Module DragonScript  1.23
Dragengine.Scenery.ECBehaviorInteractionSpot.Instance Class Reference

Behavior instance. More...

Inheritance diagram for Dragengine.Scenery.ECBehaviorInteractionSpot.Instance:
Dragengine.Scenery.DefaultECBehaviorInstance Dragengine.Scenery.ECBehaviorInstance

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...
 

Detailed Description

Behavior instance.

Member Function Documentation

◆ canClaim()

bool Dragengine.Scenery.ECBehaviorInteractionSpot.Instance.canClaim ( ECBehaviorOccupier.Instance  occupier)

Occupier can claim spot.

Return values
falseSpot is not empty.
falseOccupier is already occupying another spot.
trueClaiming is possible

◆ claim()

void Dragengine.Scenery.ECBehaviorInteractionSpot.Instance.claim ( ECBehaviorOccupier.Instance  occupier)

Claim spot.

Exceptions
EInvalidParamoccupier is null.
EInvalidParamSpot is not empty.
EInvalidParamoccupier is already occupying another spot.

◆ dispose()

void Dragengine.Scenery.ECBehaviorInteractionSpot.Instance.dispose ( )

Dispose of behavior instance.

Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.

◆ enterFrame()

void Dragengine.Scenery.ECBehaviorInteractionSpot.Instance.enterFrame ( )

Frame update started.

Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.

◆ getECBehavior()

ECBehaviorInteractionSpot Dragengine.Scenery.ECBehaviorInteractionSpot.Instance.getECBehavior ( )

Behavior.

◆ getElementResolver()

ElementResolver Dragengine.Scenery.ECBehaviorInteractionSpot.Instance.getElementResolver ( )

Element resolver used during loading or null if not set.

◆ getInverseMatrix()

Matrix Dragengine.Scenery.ECBehaviorInteractionSpot.Instance.getInverseMatrix ( )

Inverse interaction matrix relative to element.

◆ getInverseWorldMatrix()

DMatrix Dragengine.Scenery.ECBehaviorInteractionSpot.Instance.getInverseWorldMatrix ( )

Inverse interaction matrix in world space.

◆ getLookAt()

Vector Dragengine.Scenery.ECBehaviorInteractionSpot.Instance.getLookAt ( )

Look-at position for element to use while approaching or null if not used.

◆ getLookAtWorld()

DVector Dragengine.Scenery.ECBehaviorInteractionSpot.Instance.getLookAtWorld ( )

Look-at position in world space for element to use while approaching or null if not used.

◆ getMatrix()

Matrix Dragengine.Scenery.ECBehaviorInteractionSpot.Instance.getMatrix ( )

Interaction matrix relative to element.

◆ getOccupier()

ECBehaviorOccupier.Instance Dragengine.Scenery.ECBehaviorInteractionSpot.Instance.getOccupier ( )

Occupier or null.

◆ getOrientation()

Quaternion Dragengine.Scenery.ECBehaviorInteractionSpot.Instance.getOrientation ( )

Interaction orientation.

◆ getPosition()

Vector Dragengine.Scenery.ECBehaviorInteractionSpot.Instance.getPosition ( )

Interaction position.

◆ getWorldMatrix()

DMatrix Dragengine.Scenery.ECBehaviorInteractionSpot.Instance.getWorldMatrix ( )

Interaction matrix in world space.

◆ init()

void Dragengine.Scenery.ECBehaviorInteractionSpot.Instance.init ( StubElement  stub)

Initialize element from stub.

Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.

◆ isEmpty()

bool Dragengine.Scenery.ECBehaviorInteractionSpot.Instance.isEmpty ( )

Spot is empty.

◆ isNotEmpty()

bool Dragengine.Scenery.ECBehaviorInteractionSpot.Instance.isNotEmpty ( )

Spot is occupied.

◆ isNotOccupying()

bool Dragengine.Scenery.ECBehaviorInteractionSpot.Instance.isNotOccupying ( BehaviorElement  element)

Element is not occupying spot.

◆ isOccupying()

bool Dragengine.Scenery.ECBehaviorInteractionSpot.Instance.isOccupying ( BehaviorElement  element)

Element is occupying spot.

◆ new()

Instance Dragengine.Scenery.ECBehaviorInteractionSpot.Instance.new ( ECBehaviorInteractionSpot  ecbehavior,
BehaviorElement  element 
)

Create element.

◆ readFromFile()

void Dragengine.Scenery.ECBehaviorInteractionSpot.Instance.readFromFile ( PersistencyEnvironment  env,
FileReader  reader 
)

Read element from file.

Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.

◆ removeListener()

void Dragengine.Scenery.ECBehaviorInteractionSpot.Instance.removeListener ( Listener  listener)

Remove listener.


The documentation for this class was generated from the following file: