Drag[en]gine Script Module DragonScript  1.21
Dragengine.Scenery.ECBehaviorPlayerInputMove Class Reference

Behavior element behavior adding moving player input. More...

Inheritance diagram for Dragengine.Scenery.ECBehaviorPlayerInputMove:
Dragengine.Scenery.DefaultECBehavior Dragengine.Scenery.ECBehavior Dragengine.Scenery.BehaviorCompatiblePersistency

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

Public Attributes

ECBehaviorLocomotion pLocomotion
 
ECPFloat pSpeedFactorRunBackward
 
ECPFloat pSpeedFactorRunForward
 
ECPFloat pSpeedFactorRunLeft
 
ECPFloat pSpeedFactorRunRight
 
ECPFloat pSpeedFactorWalkBackward
 
ECPFloat pSpeedFactorWalkForward
 
ECPFloat pSpeedFactorWalkLeft
 
ECPFloat pSpeedFactorWalkRight
 
ECPFloat pSpeedRun
 
ECPFloat pSpeedWalk
 

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

Detailed Description

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

Member Function Documentation

◆ dispose()

void Dragengine.Scenery.ECBehaviorPlayerInputMove.dispose ( )

Dispose of behavior.

Reimplemented from Dragengine.Scenery.DefaultECBehavior.

◆ getBehaviorIn()

static ECBehaviorPlayerInputMove Dragengine.Scenery.ECBehaviorPlayerInputMove.getBehaviorIn ( BehaviorElementClass  eclass)
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.

◆ getLocomotion()

ECBehaviorLocomotion Dragengine.Scenery.ECBehaviorPlayerInputMove.getLocomotion ( )

Locomotion behavior or null.

◆ getSpeedFactorRunBackward()

ECPFloat Dragengine.Scenery.ECBehaviorPlayerInputMove.getSpeedFactorRunBackward ( )

Speed factor run backward.

◆ getSpeedFactorRunForward()

ECPFloat Dragengine.Scenery.ECBehaviorPlayerInputMove.getSpeedFactorRunForward ( )

Speed factor Run forward.

◆ getSpeedFactorRunLeft()

ECPFloat Dragengine.Scenery.ECBehaviorPlayerInputMove.getSpeedFactorRunLeft ( )

Speed factor run left.

◆ getSpeedFactorRunRight()

ECPFloat Dragengine.Scenery.ECBehaviorPlayerInputMove.getSpeedFactorRunRight ( )

Speed factor run right.

◆ getSpeedFactorWalkBackward()

ECPFloat Dragengine.Scenery.ECBehaviorPlayerInputMove.getSpeedFactorWalkBackward ( )

Speed factor walk backward.

◆ getSpeedFactorWalkForward()

ECPFloat Dragengine.Scenery.ECBehaviorPlayerInputMove.getSpeedFactorWalkForward ( )

Speed factor Walk forward.

◆ getSpeedFactorWalkLeft()

ECPFloat Dragengine.Scenery.ECBehaviorPlayerInputMove.getSpeedFactorWalkLeft ( )

Speed factor walk left.

◆ getSpeedFactorWalkRight()

ECPFloat Dragengine.Scenery.ECBehaviorPlayerInputMove.getSpeedFactorWalkRight ( )

Speed factor walk right.

◆ getSpeedRun()

ECPFloat Dragengine.Scenery.ECBehaviorPlayerInputMove.getSpeedRun ( )

Run speed.

◆ getSpeedWalk()

ECPFloat Dragengine.Scenery.ECBehaviorPlayerInputMove.getSpeedWalk ( )

Walk speed.

◆ instance()

Instance Dragengine.Scenery.ECBehaviorPlayerInputMove.instance ( BehaviorElement  element)

Get instance in element from owner element class.

◆ new() [1/2]

ECBehaviorPlayerInputMove Dragengine.Scenery.ECBehaviorPlayerInputMove.new ( BehaviorElementClass  eclass,
ECBehaviorLocomotion  locomotion 
)

Create behavior element class.

◆ new() [2/2]

ECBehaviorPlayerInputMove Dragengine.Scenery.ECBehaviorPlayerInputMove.new ( BehaviorElementClass  eclass,
ECBehaviorLocomotion  locomotion,
String  prefix 
)

Member Data Documentation

◆ pLocomotion

ECBehaviorLocomotion Dragengine.Scenery.ECBehaviorPlayerInputMove.pLocomotion

◆ pSpeedFactorRunBackward

ECPFloat Dragengine.Scenery.ECBehaviorPlayerInputMove.pSpeedFactorRunBackward

◆ pSpeedFactorRunForward

ECPFloat Dragengine.Scenery.ECBehaviorPlayerInputMove.pSpeedFactorRunForward

◆ pSpeedFactorRunLeft

ECPFloat Dragengine.Scenery.ECBehaviorPlayerInputMove.pSpeedFactorRunLeft

◆ pSpeedFactorRunRight

ECPFloat Dragengine.Scenery.ECBehaviorPlayerInputMove.pSpeedFactorRunRight

◆ pSpeedFactorWalkBackward

ECPFloat Dragengine.Scenery.ECBehaviorPlayerInputMove.pSpeedFactorWalkBackward

◆ pSpeedFactorWalkForward

ECPFloat Dragengine.Scenery.ECBehaviorPlayerInputMove.pSpeedFactorWalkForward

◆ pSpeedFactorWalkLeft

ECPFloat Dragengine.Scenery.ECBehaviorPlayerInputMove.pSpeedFactorWalkLeft

◆ pSpeedFactorWalkRight

ECPFloat Dragengine.Scenery.ECBehaviorPlayerInputMove.pSpeedFactorWalkRight

◆ pSpeedRun

ECPFloat Dragengine.Scenery.ECBehaviorPlayerInputMove.pSpeedRun

◆ pSpeedWalk

ECPFloat Dragengine.Scenery.ECBehaviorPlayerInputMove.pSpeedWalk

The documentation for this class was generated from the following file: