Drag[en]gine Script Module DragonScript
1.23
|
Behavior instance. More...
Public Member Functions | |
float | calculateLookHorizontal (float elapsed) |
Calculate look left right delta value and reset analog input. More... | |
float | calculateLookVertical (float elapsed) |
Calculate look up down delta value and reset analog input. More... | |
void | dispose () |
Dispose of instance. More... | |
float | getAnalogFactorLookHorizontal () |
Analog Look left right factor relative to left right input speed. More... | |
float | getAnalogFactorLookVertical () |
Analog Look up down factor relative to up down input speed. More... | |
float | getAnalogLookHorizontal () |
Analog look left right. More... | |
float | getAnalogLookHorizontalSticky () |
Sticky analog look left right. More... | |
float | getAnalogLookVertical () |
Analog look up down. More... | |
float | getAnalogLookVerticalSticky () |
Sticky analog look up down. More... | |
ECBehaviorPlayerInputLook | getECBehavior () |
Behavior. More... | |
ECBehaviorLocomotion.Instance | getLocomotion () |
Locomotion behavior or null if absent. More... | |
bool | getLookDown () |
Look down key is pressed. More... | |
bool | getLookLeft () |
Llook left key is pressed. More... | |
bool | getLookRight () |
Look right key is pressed. More... | |
bool | getLookUp () |
Look up key is pressed. More... | |
float | getSpeedLookHorizontal () |
Look left right speed in degrees per second. More... | |
float | getSpeedLookVertical () |
Look up down speed in degrees per second. More... | |
void | init (StubElement stub) |
Initialize element from stub. More... | |
Instance | new (ECBehaviorPlayerInputLook ecbehavior, BehaviorElement element) |
Create instance. More... | |
void | readFromFile (PersistencyEnvironment env, FileReader reader) |
Read element from file. More... | |
void | reset () |
Reset input. More... | |
void | setAnalogFactorLookHorizontal (float factor) |
Set analog look left right factor relative to left right input speed. More... | |
void | setAnalogFactorLookVertical (float factor) |
Set analog look up down factor relative to up down input speed. More... | |
void | setAnalogLookHorizontal (float value) |
Set analog look left right. More... | |
void | setAnalogLookHorizontalSticky (float value) |
Set sticky analog look left right. More... | |
void | setAnalogLookVertical (float value) |
Set analog look up down. More... | |
void | setAnalogLookVerticalSticky (float value) |
Set sticky analog look up down. More... | |
void | setLookDown (bool pressed) |
Set if look down key is pressed. More... | |
void | setLookLeft (bool pressed) |
Set if look left key is pressed. More... | |
void | setLookRight (bool pressed) |
Set if look right key is pressed. More... | |
void | setLookUp (bool pressed) |
Set if look up key is pressed. More... | |
void | setSpeedLookHorizontal (float speed) |
Set look left right speed in degrees per second. More... | |
void | setSpeedLookVertical (float speed) |
Set look up down speed in degrees per second. More... | |
void | toggleLookDown () |
Toggle look down key pressed. More... | |
void | toggleLookLeft () |
Toggle look left key pressed. More... | |
void | toggleLookRight () |
Toggle look right key pressed. More... | |
void | toggleLookUp () |
Toggle look up key pressed. More... | |
void | updateLocomotion (float elapsed) |
Update locomotion. More... | |
void | writeToFile (PersistencyEnvironment env, FileWriter writer) |
Write element 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... | |
Additional Inherited Members | |
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.
float Dragengine.Scenery.ECBehaviorPlayerInputLook.Instance.calculateLookHorizontal | ( | float | elapsed | ) |
Calculate look left right delta value and reset analog input.
float Dragengine.Scenery.ECBehaviorPlayerInputLook.Instance.calculateLookVertical | ( | float | elapsed | ) |
Calculate look up down delta value and reset analog input.
void Dragengine.Scenery.ECBehaviorPlayerInputLook.Instance.dispose | ( | ) |
Dispose of instance.
Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.
float Dragengine.Scenery.ECBehaviorPlayerInputLook.Instance.getAnalogFactorLookHorizontal | ( | ) |
Analog Look left right factor relative to left right input speed.
float Dragengine.Scenery.ECBehaviorPlayerInputLook.Instance.getAnalogFactorLookVertical | ( | ) |
Analog Look up down factor relative to up down input speed.
float Dragengine.Scenery.ECBehaviorPlayerInputLook.Instance.getAnalogLookHorizontal | ( | ) |
Analog look left right.
float Dragengine.Scenery.ECBehaviorPlayerInputLook.Instance.getAnalogLookHorizontalSticky | ( | ) |
Sticky analog look left right.
float Dragengine.Scenery.ECBehaviorPlayerInputLook.Instance.getAnalogLookVertical | ( | ) |
Analog look up down.
float Dragengine.Scenery.ECBehaviorPlayerInputLook.Instance.getAnalogLookVerticalSticky | ( | ) |
Sticky analog look up down.
ECBehaviorPlayerInputLook Dragengine.Scenery.ECBehaviorPlayerInputLook.Instance.getECBehavior | ( | ) |
Behavior.
ECBehaviorLocomotion.Instance Dragengine.Scenery.ECBehaviorPlayerInputLook.Instance.getLocomotion | ( | ) |
Locomotion behavior or null if absent.
bool Dragengine.Scenery.ECBehaviorPlayerInputLook.Instance.getLookDown | ( | ) |
Look down key is pressed.
bool Dragengine.Scenery.ECBehaviorPlayerInputLook.Instance.getLookLeft | ( | ) |
Llook left key is pressed.
bool Dragengine.Scenery.ECBehaviorPlayerInputLook.Instance.getLookRight | ( | ) |
Look right key is pressed.
bool Dragengine.Scenery.ECBehaviorPlayerInputLook.Instance.getLookUp | ( | ) |
Look up key is pressed.
float Dragengine.Scenery.ECBehaviorPlayerInputLook.Instance.getSpeedLookHorizontal | ( | ) |
Look left right speed in degrees per second.
float Dragengine.Scenery.ECBehaviorPlayerInputLook.Instance.getSpeedLookVertical | ( | ) |
Look up down speed in degrees per second.
void Dragengine.Scenery.ECBehaviorPlayerInputLook.Instance.init | ( | StubElement | stub | ) |
Initialize element from stub.
Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.
Instance Dragengine.Scenery.ECBehaviorPlayerInputLook.Instance.new | ( | ECBehaviorPlayerInputLook | ecbehavior, |
BehaviorElement | element | ||
) |
Create instance.
void Dragengine.Scenery.ECBehaviorPlayerInputLook.Instance.readFromFile | ( | PersistencyEnvironment | env, |
FileReader | reader | ||
) |
Read element from file.
Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.
void Dragengine.Scenery.ECBehaviorPlayerInputLook.Instance.reset | ( | ) |
Reset input.
void Dragengine.Scenery.ECBehaviorPlayerInputLook.Instance.setAnalogFactorLookHorizontal | ( | float | factor | ) |
Set analog look left right factor relative to left right input speed.
Use negative value to flip analog input direction.
void Dragengine.Scenery.ECBehaviorPlayerInputLook.Instance.setAnalogFactorLookVertical | ( | float | factor | ) |
Set analog look up down factor relative to up down input speed.
Use negative value to flip analog input direction.
void Dragengine.Scenery.ECBehaviorPlayerInputLook.Instance.setAnalogLookHorizontal | ( | float | value | ) |
Set analog look left right.
void Dragengine.Scenery.ECBehaviorPlayerInputLook.Instance.setAnalogLookHorizontalSticky | ( | float | value | ) |
Set sticky analog look left right.
void Dragengine.Scenery.ECBehaviorPlayerInputLook.Instance.setAnalogLookVertical | ( | float | value | ) |
Set analog look up down.
void Dragengine.Scenery.ECBehaviorPlayerInputLook.Instance.setAnalogLookVerticalSticky | ( | float | value | ) |
Set sticky analog look up down.
void Dragengine.Scenery.ECBehaviorPlayerInputLook.Instance.setLookDown | ( | bool | pressed | ) |
Set if look down key is pressed.
void Dragengine.Scenery.ECBehaviorPlayerInputLook.Instance.setLookLeft | ( | bool | pressed | ) |
Set if look left key is pressed.
void Dragengine.Scenery.ECBehaviorPlayerInputLook.Instance.setLookRight | ( | bool | pressed | ) |
Set if look right key is pressed.
void Dragengine.Scenery.ECBehaviorPlayerInputLook.Instance.setLookUp | ( | bool | pressed | ) |
Set if look up key is pressed.
void Dragengine.Scenery.ECBehaviorPlayerInputLook.Instance.setSpeedLookHorizontal | ( | float | speed | ) |
Set look left right speed in degrees per second.
void Dragengine.Scenery.ECBehaviorPlayerInputLook.Instance.setSpeedLookVertical | ( | float | speed | ) |
Set look up down speed in degrees per second.
void Dragengine.Scenery.ECBehaviorPlayerInputLook.Instance.toggleLookDown | ( | ) |
Toggle look down key pressed.
void Dragengine.Scenery.ECBehaviorPlayerInputLook.Instance.toggleLookLeft | ( | ) |
Toggle look left key pressed.
void Dragengine.Scenery.ECBehaviorPlayerInputLook.Instance.toggleLookRight | ( | ) |
Toggle look right key pressed.
void Dragengine.Scenery.ECBehaviorPlayerInputLook.Instance.toggleLookUp | ( | ) |
Toggle look up key pressed.
void Dragengine.Scenery.ECBehaviorPlayerInputLook.Instance.updateLocomotion | ( | float | elapsed | ) |
Update locomotion.
Calls calculateLookHorizontal() and calculateLookVertical() to obtain the looking changes and applies using ECBehaviorLocomotion.applyLookAround().
void Dragengine.Scenery.ECBehaviorPlayerInputLook.Instance.writeToFile | ( | PersistencyEnvironment | env, |
FileWriter | writer | ||
) |
Write element to file.
Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.