Drag[en]gine Script Module DragonScript
1.21
|
Behavior element behavior adding moving player input. More...
Classes | |
class | Instance |
Behavior instance. More... | |
enum | LocomotionType |
Locomotion type. More... | |
Public Member Functions | |
void | dispose () |
Dispose of behavior. More... | |
ECBehaviorLocomotion | getLocomotion () |
Locomotion behavior or null. More... | |
ECPFloat | getSpeedFactorRunBackward () |
Speed factor run backward. More... | |
ECPFloat | getSpeedFactorRunForward () |
Speed factor Run forward. More... | |
ECPFloat | getSpeedFactorRunLeft () |
Speed factor run left. More... | |
ECPFloat | getSpeedFactorRunRight () |
Speed factor run right. More... | |
ECPFloat | getSpeedFactorWalkBackward () |
Speed factor walk backward. More... | |
ECPFloat | getSpeedFactorWalkForward () |
Speed factor Walk forward. More... | |
ECPFloat | getSpeedFactorWalkLeft () |
Speed factor walk left. More... | |
ECPFloat | getSpeedFactorWalkRight () |
Speed factor walk right. More... | |
ECPFloat | getSpeedRun () |
Run speed. More... | |
ECPFloat | getSpeedWalk () |
Walk speed. More... | |
Instance | instance (BehaviorElement element) |
Get instance in element from owner element class. More... | |
ECBehaviorPlayerInputMove | new (BehaviorElementClass eclass, ECBehaviorLocomotion locomotion) |
Create behavior element class. More... | |
ECBehaviorPlayerInputMove | new (BehaviorElementClass eclass, ECBehaviorLocomotion locomotion, String prefix) |
Public Member Functions inherited from Dragengine.Scenery.DefaultECBehavior | |
void | assignInstanceIndex (int instanceIndex) |
Assign instance index. More... | |
String | getBehaviorID () |
Unique identifier of behavior. More... | |
String | getID () |
Identifier. More... | |
int | getInstanceIndex () |
Instance index. More... | |
void | loadSupportedData (String identifier, PersistencyEnvironment env, FileReader reader, ECBehaviorInstance instance) |
Load instance data of another behavior. More... | |
bool | supportsBehaviorID (String identifier) |
Behavior supports loading instance data of another behavior. More... | |
Public Member Functions inherited from Dragengine.Scenery.ECBehavior | |
ECBehaviorInstance | createInstance (BehaviorElement element) |
Create Behavior instance. More... | |
Static Public Member Functions | |
static ECBehaviorPlayerInputMove | getBehaviorIn (BehaviorElementClass eclass) |
Get behavior in element class or null if absent. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from Dragengine.Scenery.DefaultECBehavior | |
DefaultECBehavior | new (BehaviorElementClass eclass) |
Create default composeable behavior with empty identifier. More... | |
DefaultECBehavior | new (BehaviorElementClass eclass, String id) |
Create default composeable behavior. More... | |
void | setBehaviorID (String identifier) |
Set behavior identifier. More... | |
void | useClassNameAsBehaviorID () |
Set behavior identifier to "<class-name>:<identifier>". More... | |
void | useFullyQualifiedClassNameAsBehaviorID () |
Set behavior identifier to "<fully-qualified-class-name>:<identifier>". More... | |
Behavior element behavior adding moving player input.
Keeps track of moving player input and applies them to actor locomotion. The type of locomotion can be set to one of three typical configurations.
This behavior can be used for human actor and vehicle movement.
This behavior supports persistable element class (setPersistable).
void Dragengine.Scenery.ECBehaviorPlayerInputMove.dispose | ( | ) |
Dispose of behavior.
Reimplemented from Dragengine.Scenery.DefaultECBehavior.
|
static |
Get behavior in element class or null if absent.
Use this method to check if a particular BehaviorElementClass contains a behavior of type ECBehaviorPlayerInputMove.
ECBehaviorLocomotion Dragengine.Scenery.ECBehaviorPlayerInputMove.getLocomotion | ( | ) |
Locomotion behavior or null.
ECPFloat Dragengine.Scenery.ECBehaviorPlayerInputMove.getSpeedFactorRunBackward | ( | ) |
Speed factor run backward.
ECPFloat Dragengine.Scenery.ECBehaviorPlayerInputMove.getSpeedFactorRunForward | ( | ) |
Speed factor Run forward.
ECPFloat Dragengine.Scenery.ECBehaviorPlayerInputMove.getSpeedFactorRunLeft | ( | ) |
Speed factor run left.
ECPFloat Dragengine.Scenery.ECBehaviorPlayerInputMove.getSpeedFactorRunRight | ( | ) |
Speed factor run right.
ECPFloat Dragengine.Scenery.ECBehaviorPlayerInputMove.getSpeedFactorWalkBackward | ( | ) |
Speed factor walk backward.
ECPFloat Dragengine.Scenery.ECBehaviorPlayerInputMove.getSpeedFactorWalkForward | ( | ) |
Speed factor Walk forward.
ECPFloat Dragengine.Scenery.ECBehaviorPlayerInputMove.getSpeedFactorWalkLeft | ( | ) |
Speed factor walk left.
ECPFloat Dragengine.Scenery.ECBehaviorPlayerInputMove.getSpeedFactorWalkRight | ( | ) |
Speed factor walk right.
ECPFloat Dragengine.Scenery.ECBehaviorPlayerInputMove.getSpeedRun | ( | ) |
Run speed.
ECPFloat Dragengine.Scenery.ECBehaviorPlayerInputMove.getSpeedWalk | ( | ) |
Walk speed.
Instance Dragengine.Scenery.ECBehaviorPlayerInputMove.instance | ( | BehaviorElement | element | ) |
Get instance in element from owner element class.
ECBehaviorPlayerInputMove Dragengine.Scenery.ECBehaviorPlayerInputMove.new | ( | BehaviorElementClass | eclass, |
ECBehaviorLocomotion | locomotion | ||
) |
Create behavior element class.
ECBehaviorPlayerInputMove Dragengine.Scenery.ECBehaviorPlayerInputMove.new | ( | BehaviorElementClass | eclass, |
ECBehaviorLocomotion | locomotion, | ||
String | prefix | ||
) |
ECBehaviorLocomotion Dragengine.Scenery.ECBehaviorPlayerInputMove.pLocomotion |
ECPFloat Dragengine.Scenery.ECBehaviorPlayerInputMove.pSpeedFactorRunBackward |
ECPFloat Dragengine.Scenery.ECBehaviorPlayerInputMove.pSpeedFactorRunForward |
ECPFloat Dragengine.Scenery.ECBehaviorPlayerInputMove.pSpeedFactorRunLeft |
ECPFloat Dragengine.Scenery.ECBehaviorPlayerInputMove.pSpeedFactorRunRight |
ECPFloat Dragengine.Scenery.ECBehaviorPlayerInputMove.pSpeedFactorWalkBackward |
ECPFloat Dragengine.Scenery.ECBehaviorPlayerInputMove.pSpeedFactorWalkForward |
ECPFloat Dragengine.Scenery.ECBehaviorPlayerInputMove.pSpeedFactorWalkLeft |
ECPFloat Dragengine.Scenery.ECBehaviorPlayerInputMove.pSpeedFactorWalkRight |
ECPFloat Dragengine.Scenery.ECBehaviorPlayerInputMove.pSpeedRun |
ECPFloat Dragengine.Scenery.ECBehaviorPlayerInputMove.pSpeedWalk |