Drag[en]gine Script Module DragonScript 1.35
Loading...
Searching...
No Matches
Dragengine.Scenery.ECBehaviorAttachments.Instance Class Reference

Behavior instance. More...

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

Public Member Functions

void addAttachment (BehaviorElement element)
 Add attachment to list.
void dispose ()
 Dispose of behavior instance.
BehaviorElement findAttachment (Block ablock)
 Find element using block with parameter BehaviorElement returning bool.
void forEachAttachment (Block ablock)
 Visit element using block with parameter BehaviorElement.
BehaviorElement getAttachmentAt (int index)
 Attachment at index.
int getAttachmentCount ()
 Count of attachments.
ECBehaviorAttachments getECBehavior ()
 Behavior.
bool hasAttachment (BehaviorElement element)
 Attachment is present.
Instance instance (BehaviorElement element)
 Get instance in element from owner element class.
Instance new (BehaviorElementClass eclass)
 Create behavior element class.
Instance new (ECBehaviorAttachments ecbehavior, BehaviorElement element)
 Create element.
void removeAttachment (BehaviorElement element)
 Remove attachment from list.
void visitAttachments (ElementVisitor visitor)
 Visit attachments using visitor.
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 enterFrame ()
 Frame update started.
void geometryChanged ()
 Position or orientation changed.
BehaviorElement getElement ()
 Behavior element to apply behavior to.
int getInstanceIndex ()
 Behavior instance index.
void init (StubElement stub)
 Initialize element from stub.
DefaultECBehaviorInstance new (BehaviorElement element)
 Create default composeable instance.
void postThink (float elapsed)
 Post thinking after physics processing is finished.
void readFromFile (PersistencyEnvironment env, FileReader reader)
 Read behavior instance from file.
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.

Static Public Member Functions

static ECBehaviorAttachments getBehaviorIn (BehaviorElementClass eclass)
 Get behavior in element class or null if absent.

Additional Inherited Members

Public Attributes inherited from Dragengine.Scenery.DefaultECBehaviorInstance
BehaviorElement pElement
int pInstanceIndex
bool pRequiresEnterFrame
bool pRequiresThink
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

◆ addAttachment()

void Dragengine.Scenery.ECBehaviorAttachments.Instance.addAttachment ( BehaviorElement element)

Add attachment to list.

References getECBehavior().

Referenced by instance().

◆ dispose()

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

Dispose of behavior instance.

Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.

References new().

Referenced by getAttachmentAt(), and getAttachmentCount().

◆ findAttachment()

BehaviorElement Dragengine.Scenery.ECBehaviorAttachments.Instance.findAttachment ( Block ablock)

Find element using block with parameter BehaviorElement returning bool.

Referenced by getBehaviorIn().

◆ forEachAttachment()

void Dragengine.Scenery.ECBehaviorAttachments.Instance.forEachAttachment ( Block ablock)

Visit element using block with parameter BehaviorElement.

References getAttachmentCount().

Referenced by getBehaviorIn().

◆ getAttachmentAt()

BehaviorElement Dragengine.Scenery.ECBehaviorAttachments.Instance.getAttachmentAt ( int index)

Attachment at index.

References dispose().

Referenced by visitAttachments().

◆ getAttachmentCount()

int Dragengine.Scenery.ECBehaviorAttachments.Instance.getAttachmentCount ( )

Count of attachments.

References dispose().

Referenced by forEachAttachment().

◆ getBehaviorIn()

◆ getECBehavior()

ECBehaviorAttachments Dragengine.Scenery.ECBehaviorAttachments.Instance.getECBehavior ( )

Behavior.

References new().

Referenced by addAttachment().

◆ hasAttachment()

bool Dragengine.Scenery.ECBehaviorAttachments.Instance.hasAttachment ( BehaviorElement element)

Attachment is present.

Referenced by new().

◆ instance()

Instance Dragengine.Scenery.ECBehaviorAttachments.Instance.instance ( BehaviorElement element)

Get instance in element from owner element class.

References addAttachment(), and removeAttachment().

Referenced by getBehaviorIn().

◆ new() [1/2]

Instance Dragengine.Scenery.ECBehaviorAttachments.Instance.new ( BehaviorElementClass eclass)

Create behavior element class.

References hasAttachment().

◆ new() [2/2]

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

Create element.

Referenced by dispose(), getBehaviorIn(), and getECBehavior().

◆ removeAttachment()

void Dragengine.Scenery.ECBehaviorAttachments.Instance.removeAttachment ( BehaviorElement element)

Remove attachment from list.

Referenced by instance().

◆ visitAttachments()

void Dragengine.Scenery.ECBehaviorAttachments.Instance.visitAttachments ( ElementVisitor visitor)

Visit attachments using visitor.

References getAttachmentAt().

Referenced by getBehaviorIn().


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