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

Behavior instance. More...

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

Public Member Functions

void dispose ()
 Dispose of behavior.
void dispose ()
 Dispose of behavior instance.
ECComposeBTSM getBTSMs ()
 Compose behavior trees and state machines.
ECBehaviorTimers getECBehavior ()
 Behavior.
String getPrefix ()
 Prefix.
float getTimerRemaining (String timer)
 Remaining time of timer or 0 if absent.
void init (StubElement stub)
 Initialize element from stub.
Instance instance (BehaviorElement element)
 Get instance in element from owner element class.
bool isTimerRunning (String timer)
 Timer is present and running.
Instance new (BehaviorElementClass eclass)
 Create behavior element class.
Instance new (BehaviorElementClass eclass, String prefix)
Instance new (ECBehaviorTimers ecbehavior, BehaviorElement element)
 Create element.
void readFromFile (PersistencyEnvironment env, FileReader reader)
 Read element from file.
void startTimer (String timer, float timeout)
 Start timer adding it if absent.
void stopTimer (String timer)
 Stop timer if present.
void think (float elapsed)
 Think frame update.
void updateTimers (float elapsed)
 Update timers.
void writeToFile (PersistencyEnvironment env, FileWriter writer)
 Write element to file.
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.
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).

Static Public Member Functions

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

Public Attributes

ECComposeBTSM pBTSMs
ECComposeBTSM.Instance pBTSMs
bool pCanSendEvents
ECBehaviorTimers pECBehavior
Array pElapsedTimers
String pPrefix
Dictionary pTimers
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

◆ dispose() [1/2]

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

Dispose of behavior.

Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.

References instance().

◆ dispose() [2/2]

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

Dispose of behavior instance.

Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.

Referenced by getBehaviorIn().

◆ getBehaviorIn()

◆ getBTSMs()

ECComposeBTSM Dragengine.Scenery.ECBehaviorTimers.Instance.getBTSMs ( )

Compose behavior trees and state machines.

References isTimerRunning().

Referenced by getBehaviorIn().

◆ getECBehavior()

ECBehaviorTimers Dragengine.Scenery.ECBehaviorTimers.Instance.getECBehavior ( )

Behavior.

Referenced by getBehaviorIn().

◆ getPrefix()

String Dragengine.Scenery.ECBehaviorTimers.Instance.getPrefix ( )

Prefix.

Referenced by getBehaviorIn().

◆ getTimerRemaining()

float Dragengine.Scenery.ECBehaviorTimers.Instance.getTimerRemaining ( String timer)

Remaining time of timer or 0 if absent.

References stopTimer().

Referenced by getBehaviorIn(), and instance().

◆ init()

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

Initialize element from stub.

Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.

Referenced by getBehaviorIn().

◆ instance()

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

Get instance in element from owner element class.

References getTimerRemaining().

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

◆ isTimerRunning()

bool Dragengine.Scenery.ECBehaviorTimers.Instance.isTimerRunning ( String timer)

Timer is present and running.

Referenced by getBehaviorIn(), and getBTSMs().

◆ new() [1/3]

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

Create behavior element class.

◆ new() [2/3]

Instance Dragengine.Scenery.ECBehaviorTimers.Instance.new ( BehaviorElementClass eclass,
String prefix )

References new().

◆ new() [3/3]

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

Create element.

References new().

Referenced by getBehaviorIn(), new(), new(), and updateTimers().

◆ readFromFile()

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

Read element from file.

Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.

Referenced by getBehaviorIn().

◆ startTimer()

void Dragengine.Scenery.ECBehaviorTimers.Instance.startTimer ( String timer,
float timeout )

Start timer adding it if absent.

Referenced by getBehaviorIn(), and stopTimer().

◆ stopTimer()

void Dragengine.Scenery.ECBehaviorTimers.Instance.stopTimer ( String timer)

Stop timer if present.

References startTimer().

Referenced by getBehaviorIn(), and getTimerRemaining().

◆ think()

void Dragengine.Scenery.ECBehaviorTimers.Instance.think ( float elapsed)

Think frame update.

Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.

Referenced by getBehaviorIn().

◆ updateTimers()

void Dragengine.Scenery.ECBehaviorTimers.Instance.updateTimers ( float elapsed)

Update timers.

References instance(), and new().

Referenced by getBehaviorIn().

◆ writeToFile()

void Dragengine.Scenery.ECBehaviorTimers.Instance.writeToFile ( PersistencyEnvironment env,
FileWriter writer )

Write element to file.

Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.

Referenced by getBehaviorIn().

Member Data Documentation

◆ pBTSMs [1/2]

ECComposeBTSM Dragengine.Scenery.ECBehaviorTimers.Instance.pBTSMs

◆ pBTSMs [2/2]

ECComposeBTSM.Instance Dragengine.Scenery.ECBehaviorTimers.Instance.pBTSMs

Referenced by getBehaviorIn().

◆ pCanSendEvents

bool Dragengine.Scenery.ECBehaviorTimers.Instance.pCanSendEvents

Referenced by getBehaviorIn().

◆ pECBehavior

ECBehaviorTimers Dragengine.Scenery.ECBehaviorTimers.Instance.pECBehavior

Referenced by getBehaviorIn().

◆ pElapsedTimers

Array Dragengine.Scenery.ECBehaviorTimers.Instance.pElapsedTimers

Referenced by getBehaviorIn().

◆ pPrefix

String Dragengine.Scenery.ECBehaviorTimers.Instance.pPrefix

Referenced by getBehaviorIn().

◆ pTimers

Dictionary Dragengine.Scenery.ECBehaviorTimers.Instance.pTimers

Referenced by getBehaviorIn().


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