Drag[en]gine Script Module DragonScript  1.23
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. More...
 
void activateNext (int distance)
 Cycle active skin by distance. More...
 
void activatePrevious ()
 Cycle to the previous active skin. More...
 
void dispose ()
 Dispose of behavior instance. More...
 
int getActive ()
 Index of active skin. More...
 
bool getClamp ()
 Prevent wrapping around when cycling skins. More...
 
ECBehaviorComponent.Instance getComponent ()
 Component behavior. More...
 
String getTexture ()
 Name of component texture to modify or empty string to modify entire component. More...
 
void init (StubElement stub)
 Initialize element from stub. More...
 
Instance new (ECBehaviorSkinSwitcher ecbehavior, BehaviorElement element)
 Create element. More...
 
void readFromFile (PersistencyEnvironment env, FileReader reader)
 Read behavior from file. More...
 
void setActive (int index)
 Set index of active skin. More...
 
void writeToFile (PersistencyEnvironment env, FileWriter writer)
 Write behavior to file. 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 enterFrame ()
 Frame update started. 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...
 

Public Attributes

int pActive
 
bool pClamp
 
ECBehaviorComponent.Instance pComponent
 
ECBehaviorSkinSwitcher pECBehavior
 
Array pSkins
 
String pTexture
 

Protected Member Functions

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

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

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

◆ dispose()

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

Dispose of behavior instance.

Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.

◆ getActive()

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

Index of active skin.

◆ getClamp()

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

Prevent wrapping around when cycling skins.

◆ getComponent()

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

Component behavior.

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

◆ readFromFile()

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

Read behavior from file.

Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.

◆ setActive()

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

Set index of active skin.

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

◆ setTexture()

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

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

◆ 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

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