Drag[en]gine Script Module DragonScript 1.35
Loading...
Searching...
No Matches
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.
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.

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

References dispose(), new(), pElementResolver, and pListeners.

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

References dispose(), and pBTSMs.

◆ dispose()

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

Dispose of behavior instance.

Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.

Referenced by canClaim(), and claim().

◆ enterFrame()

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

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

Referenced by readFromFile().

◆ getLookAtWorld()

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

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

References isEmpty().

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

Referenced by enterFrame().

◆ getWorldMatrix()

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

Interaction matrix in world space.

References new().

◆ init()

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

Initialize element from stub.

Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.

Referenced by enterFrame().

◆ isEmpty()

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

Spot is empty.

References pECBehavior, and pPosition.

Referenced by getLookAtWorld().

◆ isNotEmpty()

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

Spot is occupied.

References pInverseMatrix, pMatrix, and pOrientation.

◆ isNotOccupying()

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

Element is not occupying spot.

References new(), pBTSMs, pECBehavior, and pListeners.

◆ isOccupying()

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

Element is occupying spot.

References pElementResolver, pLookAt, and pOccupier.

◆ new()

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

Create element.

Referenced by canClaim(), getWorldMatrix(), and isNotOccupying().

◆ readFromFile()

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

◆ removeListener()

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

Remove listener.

Member Data Documentation

◆ pBTSMs

ECComposeBTSM.Instance Dragengine.Scenery.ECBehaviorInteractionSpot.Instance.pBTSMs

Referenced by claim(), and isNotOccupying().

◆ pECBehavior

ECBehaviorInteractionSpot Dragengine.Scenery.ECBehaviorInteractionSpot.Instance.pECBehavior

◆ pElementResolver

ElementResolver Dragengine.Scenery.ECBehaviorInteractionSpot.Instance.pElementResolver

Referenced by canClaim(), and isOccupying().

◆ pInverseMatrix

Matrix Dragengine.Scenery.ECBehaviorInteractionSpot.Instance.pInverseMatrix

Referenced by isNotEmpty().

◆ pListeners

Array Dragengine.Scenery.ECBehaviorInteractionSpot.Instance.pListeners

Referenced by canClaim(), and isNotOccupying().

◆ pLookAt

Vector Dragengine.Scenery.ECBehaviorInteractionSpot.Instance.pLookAt

Referenced by isOccupying(), and readFromFile().

◆ pMatrix

Matrix Dragengine.Scenery.ECBehaviorInteractionSpot.Instance.pMatrix

Referenced by isNotEmpty().

◆ pOccupier

ECBehaviorOccupier.Instance Dragengine.Scenery.ECBehaviorInteractionSpot.Instance.pOccupier

Referenced by isOccupying().

◆ pOrientation

Quaternion Dragengine.Scenery.ECBehaviorInteractionSpot.Instance.pOrientation

Referenced by isNotEmpty(), and readFromFile().

◆ pPosition

Vector Dragengine.Scenery.ECBehaviorInteractionSpot.Instance.pPosition

Referenced by enterFrame(), and isEmpty().


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