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

Behavior instance. More...

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

Public Member Functions

void activateNext ()
 Cycle to the next active skin.
void activateNext (int distance)
 Cycle active skin by distance.
void activatePrevious ()
 Cycle to the previous active skin.
void dispose ()
 Dispose of behavior instance.
int getActive ()
 Index of active skin.
bool getClamp ()
 Prevent wrapping around when cycling skins.
ECBehaviorComponent.Instance getComponent ()
 Component behavior.
int getCount ()
 Count of skins.
String getTexture ()
 Name of component texture to modify or empty string to modify entire component.
void init (StubElement stub)
 Initialize element from stub.
Instance new (ECBehaviorSkinSwitcher ecbehavior, BehaviorElement element)
 Create element.
void readFromFile (PersistencyEnvironment env, FileReader reader)
 Read behavior from file.
void setActive (int index)
 Set index of active skin.
void writeToFile (PersistencyEnvironment env, FileWriter writer)
 Write behavior 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).
void think (float elapsed)
 Think about what to do for the next frame update.

Public Attributes

int pActive
ECComposeBTSM.Instance pBTSMs
bool pClamp
ECBehaviorComponent.Instance pComponent
ECBehaviorSkinSwitcher pECBehavior
Array pSkins
String pTexture
Public Attributes inherited from Dragengine.Scenery.DefaultECBehaviorInstance
BehaviorElement pElement
int pInstanceIndex
bool pRequiresEnterFrame
bool pRequiresThink

Protected Member Functions

void setClamp (bool clamp)
 Set prevent wrapping around when cycling skins.
void setSkin (Skin skin)
 Set skin.
void setTexture (String texture)
 Set name of component texture to modify or empty string to modify entire component.
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

◆ activateNext() [1/2]

void Dragengine.Scenery.ECBehaviorSkinSwitcher.Instance.activateNext ( )

Cycle to the next active skin.

If clamp is true stops at the end of the list otherwise wraps back to the begin.

References getActive(), and getCount().

◆ activateNext() [2/2]

void Dragengine.Scenery.ECBehaviorSkinSwitcher.Instance.activateNext ( int distance)

Cycle active skin by distance.

If clamp is true stops at the begin and end of the list otherwise wraps around. distance can be positive or negative or 0 to do no switching.

◆ activatePrevious()

void Dragengine.Scenery.ECBehaviorSkinSwitcher.Instance.activatePrevious ( )

Cycle to the previous active skin.

If clamp is true stops at the begin of the list otherwise wraps back to the end.

References getActive().

◆ dispose()

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

Dispose of behavior instance.

Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.

References setActive().

◆ getActive()

int Dragengine.Scenery.ECBehaviorSkinSwitcher.Instance.getActive ( )

Index of active skin.

References getActive().

Referenced by activateNext(), activatePrevious(), getActive(), getCount(), and setActive().

◆ getClamp()

bool Dragengine.Scenery.ECBehaviorSkinSwitcher.Instance.getClamp ( )

Prevent wrapping around when cycling skins.

◆ getComponent()

ECBehaviorComponent.Instance Dragengine.Scenery.ECBehaviorSkinSwitcher.Instance.getComponent ( )

Component behavior.

◆ getCount()

int Dragengine.Scenery.ECBehaviorSkinSwitcher.Instance.getCount ( )

Count of skins.

Version
1.26

References getActive().

Referenced by activateNext(), readFromFile(), setActive(), and setSkin().

◆ getTexture()

String Dragengine.Scenery.ECBehaviorSkinSwitcher.Instance.getTexture ( )

Name of component texture to modify or empty string to modify entire component.

◆ init()

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

Initialize element from stub.

Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.

◆ new()

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

Create element.

References setActive().

Referenced by setTexture().

◆ readFromFile()

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

Read behavior from file.

Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.

References getCount().

◆ setActive()

void Dragengine.Scenery.ECBehaviorSkinSwitcher.Instance.setActive ( int index)

Set index of active skin.

References getActive(), and getCount().

Referenced by dispose(), and new().

◆ setClamp()

void Dragengine.Scenery.ECBehaviorSkinSwitcher.Instance.setClamp ( bool clamp)
protected

Set prevent wrapping around when cycling skins.

◆ setSkin()

void Dragengine.Scenery.ECBehaviorSkinSwitcher.Instance.setSkin ( Skin skin)
protected

Set skin.

References getCount().

◆ setTexture()

void Dragengine.Scenery.ECBehaviorSkinSwitcher.Instance.setTexture ( String texture)
protected

Set name of component texture to modify or empty string to modify entire component.

References new().

◆ writeToFile()

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

Write behavior to file.

Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.

Member Data Documentation

◆ pActive

int Dragengine.Scenery.ECBehaviorSkinSwitcher.Instance.pActive

◆ pBTSMs

ECComposeBTSM.Instance Dragengine.Scenery.ECBehaviorSkinSwitcher.Instance.pBTSMs

◆ pClamp

bool Dragengine.Scenery.ECBehaviorSkinSwitcher.Instance.pClamp

◆ pComponent

ECBehaviorComponent.Instance Dragengine.Scenery.ECBehaviorSkinSwitcher.Instance.pComponent

◆ pECBehavior

ECBehaviorSkinSwitcher Dragengine.Scenery.ECBehaviorSkinSwitcher.Instance.pECBehavior

◆ pSkins

Array Dragengine.Scenery.ECBehaviorSkinSwitcher.Instance.pSkins

◆ pTexture

String Dragengine.Scenery.ECBehaviorSkinSwitcher.Instance.pTexture

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