Drag[en]gine Script Module DragonScript
1.23
|
Behavior instance. More...
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... | |
Behavior instance.
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.
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.
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.
void Dragengine.Scenery.ECBehaviorSkinSwitcher.Instance.dispose | ( | ) |
Dispose of behavior instance.
Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.
int Dragengine.Scenery.ECBehaviorSkinSwitcher.Instance.getActive | ( | ) |
Index of active skin.
bool Dragengine.Scenery.ECBehaviorSkinSwitcher.Instance.getClamp | ( | ) |
Prevent wrapping around when cycling skins.
ECBehaviorComponent.Instance Dragengine.Scenery.ECBehaviorSkinSwitcher.Instance.getComponent | ( | ) |
Component behavior.
String Dragengine.Scenery.ECBehaviorSkinSwitcher.Instance.getTexture | ( | ) |
Name of component texture to modify or empty string to modify entire component.
void Dragengine.Scenery.ECBehaviorSkinSwitcher.Instance.init | ( | StubElement | stub | ) |
Initialize element from stub.
Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.
Instance Dragengine.Scenery.ECBehaviorSkinSwitcher.Instance.new | ( | ECBehaviorSkinSwitcher | ecbehavior, |
BehaviorElement | element | ||
) |
Create element.
void Dragengine.Scenery.ECBehaviorSkinSwitcher.Instance.readFromFile | ( | PersistencyEnvironment | env, |
FileReader | reader | ||
) |
Read behavior from file.
Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.
void Dragengine.Scenery.ECBehaviorSkinSwitcher.Instance.setActive | ( | int | index | ) |
Set index of active skin.
|
protected |
Set prevent wrapping around when cycling skins.
|
protected |
Set skin.
|
protected |
Set name of component texture to modify or empty string to modify entire component.
void Dragengine.Scenery.ECBehaviorSkinSwitcher.Instance.writeToFile | ( | PersistencyEnvironment | env, |
FileWriter | writer | ||
) |
Write behavior to file.
Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.
int Dragengine.Scenery.ECBehaviorSkinSwitcher.Instance.pActive |
bool Dragengine.Scenery.ECBehaviorSkinSwitcher.Instance.pClamp |
ECBehaviorComponent.Instance Dragengine.Scenery.ECBehaviorSkinSwitcher.Instance.pComponent |
ECBehaviorSkinSwitcher Dragengine.Scenery.ECBehaviorSkinSwitcher.Instance.pECBehavior |
Array Dragengine.Scenery.ECBehaviorSkinSwitcher.Instance.pSkins |
String Dragengine.Scenery.ECBehaviorSkinSwitcher.Instance.pTexture |