|
Drag[en]gine Script Module DragonScript 1.35
|
Behavior instance. More...
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. | |
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.
References getActive(), and getCount().
| 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.
References getActive().
| void Dragengine.Scenery.ECBehaviorSkinSwitcher.Instance.dispose | ( | ) |
Dispose of behavior instance.
Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.
References setActive().
| int Dragengine.Scenery.ECBehaviorSkinSwitcher.Instance.getActive | ( | ) |
Index of active skin.
References getActive().
Referenced by activateNext(), activatePrevious(), getActive(), getCount(), and setActive().
| bool Dragengine.Scenery.ECBehaviorSkinSwitcher.Instance.getClamp | ( | ) |
Prevent wrapping around when cycling skins.
| ECBehaviorComponent.Instance Dragengine.Scenery.ECBehaviorSkinSwitcher.Instance.getComponent | ( | ) |
Component behavior.
| int Dragengine.Scenery.ECBehaviorSkinSwitcher.Instance.getCount | ( | ) |
Count of skins.
References getActive().
Referenced by activateNext(), readFromFile(), setActive(), and setSkin().
| 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 ) |
| void Dragengine.Scenery.ECBehaviorSkinSwitcher.Instance.readFromFile | ( | PersistencyEnvironment | env, |
| FileReader | reader ) |
Read behavior from file.
Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.
References getCount().
| void Dragengine.Scenery.ECBehaviorSkinSwitcher.Instance.setActive | ( | int | index | ) |
Set index of active skin.
References getActive(), and getCount().
|
protected |
Set prevent wrapping around when cycling skins.
|
protected |
Set skin.
References getCount().
|
protected |
Set name of component texture to modify or empty string to modify entire component.
References new().
| 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 |
| ECComposeBTSM.Instance Dragengine.Scenery.ECBehaviorSkinSwitcher.Instance.pBTSMs |
| 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 |