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

Behavior instance. More...

Inheritance diagram for Dragengine.Scenery.ECBehaviorPlayerInputMove.Instance:
Dragengine.Scenery.DefaultECBehaviorInstance Dragengine.Scenery.ECBehaviorInstance

Public Member Functions

float calculateMovingDirection ()
 Calculate moving direction. More...
 
float calculateMovingSpeed ()
 Calculate moving speed. More...
 
void dispose ()
 Dispose of instance. More...
 
float getAnalogMoveForwardBackward ()
 Analog move forward backward. More...
 
float getAnalogMoveForwardBackwardSticky ()
 Sticky analog move forward backward. More...
 
float getAnalogMoveLeftRight ()
 Analog move left right. More...
 
float getAnalogMoveLeftRightSticky ()
 Sticky analog move left right. More...
 
bool getCanMove ()
 Player can move. More...
 
ECBehaviorPlayerInputMove getECBehavior ()
 Behavior. More...
 
ECBehaviorLocomotion.Instance getLocomotion ()
 Locomotion behavior or null if absent. More...
 
LocomotionType getLocomotionType ()
 Locomotion type. More...
 
bool getMoveBackward ()
 Move backward key is pressed. More...
 
bool getMoveForward ()
 Move forward key is pressed. More...
 
bool getMoveLeft ()
 Move left key is pressed. More...
 
bool getMoveRight ()
 Move right key is pressed. More...
 
float getMovingDirection ()
 Locomotion moving direction. More...
 
float getMovingSpeed ()
 Locomotion moving speed. More...
 
bool getRun ()
 Run key is pressed. More...
 
float getSpeedFactorRunBackward ()
 Speed factor run backward. More...
 
float getSpeedFactorRunForward ()
 Speed factor run forward. More...
 
float getSpeedFactorRunLeft ()
 Speed factor run left. More...
 
float getSpeedFactorRunRight ()
 Speed factor run right. More...
 
float getSpeedFactorWalkBackward ()
 Speed factor walk backward. More...
 
float getSpeedFactorWalkForward ()
 Speed factor Walk forward. More...
 
float getSpeedFactorWalkLeft ()
 Speed factor walk left. More...
 
float getSpeedFactorWalkRight ()
 Speed factor walk right. More...
 
float getSpeedRun ()
 Run speed. More...
 
float getSpeedWalk ()
 Walk speed. More...
 
void init (StubElement stub)
 Initialize element from stub. More...
 
bool isMoving ()
 Player is moving. More...
 
Instance new (ECBehaviorPlayerInputMove ecbehavior, BehaviorElement element)
 Create instance. More...
 
void readFromFile (PersistencyEnvironment env, FileReader reader)
 Read element from file. More...
 
void reset ()
 Reset input. More...
 
void resetAnalog ()
 Reset analog input. More...
 
void setAnalogMoveForwardBackward (float value)
 Set analog move forward backward. More...
 
void setAnalogMoveForwardBackwardSticky (float value)
 Set sticky analog move forward backward. More...
 
void setAnalogMoveLeftRight (float value)
 Set analog move left right. More...
 
void setAnalogMoveLeftRightSticky (float value)
 Set sticky analog move left right. More...
 
void setCanMove (bool canMove)
 Set if player can move. More...
 
void setLocomotionType (LocomotionType type)
 Set locomotion type. More...
 
void setMoveBackward (bool pressed)
 Set if move backward key is pressed. More...
 
void setMoveForward (bool pressed)
 Set if move forward key is pressed. More...
 
void setMoveLeft (bool pressed)
 Set if move left key is pressed. More...
 
void setMoveRight (bool pressed)
 Set if move right key is pressed. More...
 
void setMovingDirection (float direction)
 Set locomotion moving direction. More...
 
void setMovingSpeed (float speed)
 Set locomotion moving speed. More...
 
void setRun (bool pressed)
 Set if run key is pressed. More...
 
void setSpeedFactorRunBackward (float speed)
 Set speed factor walk backward. More...
 
void setSpeedFactorRunForward (float speed)
 Set speed factor walk forward. More...
 
void setSpeedFactorRunLeft (float speed)
 Set speed factor walk left. More...
 
void setSpeedFactorRunRight (float speed)
 Set speed factor walk right. More...
 
void setSpeedFactorWalkBackward (float speed)
 Set speed factor walk backward. More...
 
void setSpeedFactorWalkForward (float speed)
 Set speed factor walk forward. More...
 
void setSpeedFactorWalkLeft (float speed)
 Set speed factor walk left. More...
 
void setSpeedFactorWalkRight (float speed)
 Set speed factor walk right. More...
 
void setSpeedRun (float speed)
 Set run speed. More...
 
void setSpeedWalk (float speed)
 Set walk speed. More...
 
void toggleCanMove ()
 Toggle can move. More...
 
void toggleMoveBackward ()
 Toggle move backward key pressed. More...
 
void toggleMoveForward ()
 Toggle move forward key pressed. More...
 
void toggleMoveLeft ()
 Toggle move left key pressed. More...
 
void toggleMoveRight ()
 Toggle move right key pressed. More...
 
void toggleRun ()
 Toggle run key pressed. More...
 
void updateLocomotion (float elapsed)
 Update locomotion. More...
 
void updateMovingDirection ()
 Update moving direction and moving body turn. More...
 
void updateMovingSpeed ()
 Update moving speed. 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...
 

Public Attributes

float pAnalogMoveForwardBackward
 
float pAnalogMoveForwardBackwardSticky
 
float pAnalogMoveLeftRight
 
float pAnalogMoveLeftRightSticky
 
bool pCanMove
 
ECBehaviorPlayerInputMove pECBehavior
 
ECBehaviorLocomotion.Instance pLocomotion
 
LocomotionType pLocomotionType
 
bool pMoveBackward
 
bool pMoveForward
 
bool pMoveLeft
 
bool pMoveRight
 
float pMovingBodyTurn
 
float pMovingDirection
 
float pMovingSpeed
 
bool pRun
 
float pSpeedFactorRunBackward
 
float pSpeedFactorRunForward
 
float pSpeedFactorRunLeft
 
float pSpeedFactorRunRight
 
float pSpeedFactorWalkBackward
 
float pSpeedFactorWalkForward
 
float pSpeedFactorWalkLeft
 
float pSpeedFactorWalkRight
 
float pSpeedRun
 
float pSpeedWalk
 

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

Detailed Description

Behavior instance.

Member Function Documentation

◆ calculateMovingDirection()

float Dragengine.Scenery.ECBehaviorPlayerInputMove.Instance.calculateMovingDirection ( )

Calculate moving direction.

◆ calculateMovingSpeed()

float Dragengine.Scenery.ECBehaviorPlayerInputMove.Instance.calculateMovingSpeed ( )

Calculate moving speed.

◆ dispose()

void Dragengine.Scenery.ECBehaviorPlayerInputMove.Instance.dispose ( )

Dispose of instance.

Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.

◆ getAnalogMoveForwardBackward()

float Dragengine.Scenery.ECBehaviorPlayerInputMove.Instance.getAnalogMoveForwardBackward ( )

Analog move forward backward.

◆ getAnalogMoveForwardBackwardSticky()

float Dragengine.Scenery.ECBehaviorPlayerInputMove.Instance.getAnalogMoveForwardBackwardSticky ( )

Sticky analog move forward backward.

◆ getAnalogMoveLeftRight()

float Dragengine.Scenery.ECBehaviorPlayerInputMove.Instance.getAnalogMoveLeftRight ( )

Analog move left right.

◆ getAnalogMoveLeftRightSticky()

float Dragengine.Scenery.ECBehaviorPlayerInputMove.Instance.getAnalogMoveLeftRightSticky ( )

Sticky analog move left right.

◆ getCanMove()

bool Dragengine.Scenery.ECBehaviorPlayerInputMove.Instance.getCanMove ( )

Player can move.

◆ getECBehavior()

ECBehaviorPlayerInputMove Dragengine.Scenery.ECBehaviorPlayerInputMove.Instance.getECBehavior ( )

Behavior.

◆ getLocomotion()

ECBehaviorLocomotion.Instance Dragengine.Scenery.ECBehaviorPlayerInputMove.Instance.getLocomotion ( )

Locomotion behavior or null if absent.

◆ getLocomotionType()

LocomotionType Dragengine.Scenery.ECBehaviorPlayerInputMove.Instance.getLocomotionType ( )

Locomotion type.

◆ getMoveBackward()

bool Dragengine.Scenery.ECBehaviorPlayerInputMove.Instance.getMoveBackward ( )

Move backward key is pressed.

◆ getMoveForward()

bool Dragengine.Scenery.ECBehaviorPlayerInputMove.Instance.getMoveForward ( )

Move forward key is pressed.

◆ getMoveLeft()

bool Dragengine.Scenery.ECBehaviorPlayerInputMove.Instance.getMoveLeft ( )

Move left key is pressed.

◆ getMoveRight()

bool Dragengine.Scenery.ECBehaviorPlayerInputMove.Instance.getMoveRight ( )

Move right key is pressed.

◆ getMovingDirection()

float Dragengine.Scenery.ECBehaviorPlayerInputMove.Instance.getMovingDirection ( )

Locomotion moving direction.

◆ getMovingSpeed()

float Dragengine.Scenery.ECBehaviorPlayerInputMove.Instance.getMovingSpeed ( )

Locomotion moving speed.

◆ getRun()

bool Dragengine.Scenery.ECBehaviorPlayerInputMove.Instance.getRun ( )

Run key is pressed.

◆ getSpeedFactorRunBackward()

float Dragengine.Scenery.ECBehaviorPlayerInputMove.Instance.getSpeedFactorRunBackward ( )

Speed factor run backward.

◆ getSpeedFactorRunForward()

float Dragengine.Scenery.ECBehaviorPlayerInputMove.Instance.getSpeedFactorRunForward ( )

Speed factor run forward.

◆ getSpeedFactorRunLeft()

float Dragengine.Scenery.ECBehaviorPlayerInputMove.Instance.getSpeedFactorRunLeft ( )

Speed factor run left.

◆ getSpeedFactorRunRight()

float Dragengine.Scenery.ECBehaviorPlayerInputMove.Instance.getSpeedFactorRunRight ( )

Speed factor run right.

◆ getSpeedFactorWalkBackward()

float Dragengine.Scenery.ECBehaviorPlayerInputMove.Instance.getSpeedFactorWalkBackward ( )

Speed factor walk backward.

◆ getSpeedFactorWalkForward()

float Dragengine.Scenery.ECBehaviorPlayerInputMove.Instance.getSpeedFactorWalkForward ( )

Speed factor Walk forward.

◆ getSpeedFactorWalkLeft()

float Dragengine.Scenery.ECBehaviorPlayerInputMove.Instance.getSpeedFactorWalkLeft ( )

Speed factor walk left.

◆ getSpeedFactorWalkRight()

float Dragengine.Scenery.ECBehaviorPlayerInputMove.Instance.getSpeedFactorWalkRight ( )

Speed factor walk right.

◆ getSpeedRun()

float Dragengine.Scenery.ECBehaviorPlayerInputMove.Instance.getSpeedRun ( )

Run speed.

◆ getSpeedWalk()

float Dragengine.Scenery.ECBehaviorPlayerInputMove.Instance.getSpeedWalk ( )

Walk speed.

◆ init()

void Dragengine.Scenery.ECBehaviorPlayerInputMove.Instance.init ( StubElement  stub)

Initialize element from stub.

Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.

◆ isMoving()

bool Dragengine.Scenery.ECBehaviorPlayerInputMove.Instance.isMoving ( )

Player is moving.

◆ new()

Instance Dragengine.Scenery.ECBehaviorPlayerInputMove.Instance.new ( ECBehaviorPlayerInputMove  ecbehavior,
BehaviorElement  element 
)

Create instance.

◆ readFromFile()

void Dragengine.Scenery.ECBehaviorPlayerInputMove.Instance.readFromFile ( PersistencyEnvironment  env,
FileReader  reader 
)

Read element from file.

Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.

◆ reset()

void Dragengine.Scenery.ECBehaviorPlayerInputMove.Instance.reset ( )

Reset input.

◆ resetAnalog()

void Dragengine.Scenery.ECBehaviorPlayerInputMove.Instance.resetAnalog ( )

Reset analog input.

Version
1.20

◆ setAnalogMoveForwardBackward()

void Dragengine.Scenery.ECBehaviorPlayerInputMove.Instance.setAnalogMoveForwardBackward ( float  value)

Set analog move forward backward.

◆ setAnalogMoveForwardBackwardSticky()

void Dragengine.Scenery.ECBehaviorPlayerInputMove.Instance.setAnalogMoveForwardBackwardSticky ( float  value)

Set sticky analog move forward backward.

◆ setAnalogMoveLeftRight()

void Dragengine.Scenery.ECBehaviorPlayerInputMove.Instance.setAnalogMoveLeftRight ( float  value)

Set analog move left right.

◆ setAnalogMoveLeftRightSticky()

void Dragengine.Scenery.ECBehaviorPlayerInputMove.Instance.setAnalogMoveLeftRightSticky ( float  value)

Set sticky analog move left right.

◆ setCanMove()

void Dragengine.Scenery.ECBehaviorPlayerInputMove.Instance.setCanMove ( bool  canMove)

Set if player can move.

◆ setLocomotionType()

void Dragengine.Scenery.ECBehaviorPlayerInputMove.Instance.setLocomotionType ( LocomotionType  type)

Set locomotion type.

◆ setMoveBackward()

void Dragengine.Scenery.ECBehaviorPlayerInputMove.Instance.setMoveBackward ( bool  pressed)

Set if move backward key is pressed.

◆ setMoveForward()

void Dragengine.Scenery.ECBehaviorPlayerInputMove.Instance.setMoveForward ( bool  pressed)

Set if move forward key is pressed.

◆ setMoveLeft()

void Dragengine.Scenery.ECBehaviorPlayerInputMove.Instance.setMoveLeft ( bool  pressed)

Set if move left key is pressed.

◆ setMoveRight()

void Dragengine.Scenery.ECBehaviorPlayerInputMove.Instance.setMoveRight ( bool  pressed)

Set if move right key is pressed.

◆ setMovingDirection()

void Dragengine.Scenery.ECBehaviorPlayerInputMove.Instance.setMovingDirection ( float  direction)

Set locomotion moving direction.

◆ setMovingSpeed()

void Dragengine.Scenery.ECBehaviorPlayerInputMove.Instance.setMovingSpeed ( float  speed)

Set locomotion moving speed.

◆ setRun()

void Dragengine.Scenery.ECBehaviorPlayerInputMove.Instance.setRun ( bool  pressed)

Set if run key is pressed.

◆ setSpeedFactorRunBackward()

void Dragengine.Scenery.ECBehaviorPlayerInputMove.Instance.setSpeedFactorRunBackward ( float  speed)

Set speed factor walk backward.

◆ setSpeedFactorRunForward()

void Dragengine.Scenery.ECBehaviorPlayerInputMove.Instance.setSpeedFactorRunForward ( float  speed)

Set speed factor walk forward.

◆ setSpeedFactorRunLeft()

void Dragengine.Scenery.ECBehaviorPlayerInputMove.Instance.setSpeedFactorRunLeft ( float  speed)

Set speed factor walk left.

◆ setSpeedFactorRunRight()

void Dragengine.Scenery.ECBehaviorPlayerInputMove.Instance.setSpeedFactorRunRight ( float  speed)

Set speed factor walk right.

◆ setSpeedFactorWalkBackward()

void Dragengine.Scenery.ECBehaviorPlayerInputMove.Instance.setSpeedFactorWalkBackward ( float  speed)

Set speed factor walk backward.

◆ setSpeedFactorWalkForward()

void Dragengine.Scenery.ECBehaviorPlayerInputMove.Instance.setSpeedFactorWalkForward ( float  speed)

Set speed factor walk forward.

◆ setSpeedFactorWalkLeft()

void Dragengine.Scenery.ECBehaviorPlayerInputMove.Instance.setSpeedFactorWalkLeft ( float  speed)

Set speed factor walk left.

◆ setSpeedFactorWalkRight()

void Dragengine.Scenery.ECBehaviorPlayerInputMove.Instance.setSpeedFactorWalkRight ( float  speed)

Set speed factor walk right.

◆ setSpeedRun()

void Dragengine.Scenery.ECBehaviorPlayerInputMove.Instance.setSpeedRun ( float  speed)

Set run speed.

◆ setSpeedWalk()

void Dragengine.Scenery.ECBehaviorPlayerInputMove.Instance.setSpeedWalk ( float  speed)

Set walk speed.

◆ toggleCanMove()

void Dragengine.Scenery.ECBehaviorPlayerInputMove.Instance.toggleCanMove ( )

Toggle can move.

◆ toggleMoveBackward()

void Dragengine.Scenery.ECBehaviorPlayerInputMove.Instance.toggleMoveBackward ( )

Toggle move backward key pressed.

◆ toggleMoveForward()

void Dragengine.Scenery.ECBehaviorPlayerInputMove.Instance.toggleMoveForward ( )

Toggle move forward key pressed.

◆ toggleMoveLeft()

void Dragengine.Scenery.ECBehaviorPlayerInputMove.Instance.toggleMoveLeft ( )

Toggle move left key pressed.

◆ toggleMoveRight()

void Dragengine.Scenery.ECBehaviorPlayerInputMove.Instance.toggleMoveRight ( )

Toggle move right key pressed.

◆ toggleRun()

void Dragengine.Scenery.ECBehaviorPlayerInputMove.Instance.toggleRun ( )

Toggle run key pressed.

◆ updateLocomotion()

void Dragengine.Scenery.ECBehaviorPlayerInputMove.Instance.updateLocomotion ( float  elapsed)

Update locomotion.

◆ updateMovingDirection()

void Dragengine.Scenery.ECBehaviorPlayerInputMove.Instance.updateMovingDirection ( )

Update moving direction and moving body turn.

◆ updateMovingSpeed()

void Dragengine.Scenery.ECBehaviorPlayerInputMove.Instance.updateMovingSpeed ( )

Update moving speed.

◆ writeToFile()

void Dragengine.Scenery.ECBehaviorPlayerInputMove.Instance.writeToFile ( PersistencyEnvironment  env,
FileWriter  writer 
)

Write element to file.

Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.

Member Data Documentation

◆ pAnalogMoveForwardBackward

float Dragengine.Scenery.ECBehaviorPlayerInputMove.Instance.pAnalogMoveForwardBackward

◆ pAnalogMoveForwardBackwardSticky

float Dragengine.Scenery.ECBehaviorPlayerInputMove.Instance.pAnalogMoveForwardBackwardSticky

◆ pAnalogMoveLeftRight

float Dragengine.Scenery.ECBehaviorPlayerInputMove.Instance.pAnalogMoveLeftRight

◆ pAnalogMoveLeftRightSticky

float Dragengine.Scenery.ECBehaviorPlayerInputMove.Instance.pAnalogMoveLeftRightSticky

◆ pCanMove

bool Dragengine.Scenery.ECBehaviorPlayerInputMove.Instance.pCanMove

◆ pECBehavior

ECBehaviorPlayerInputMove Dragengine.Scenery.ECBehaviorPlayerInputMove.Instance.pECBehavior

◆ pLocomotion

ECBehaviorLocomotion.Instance Dragengine.Scenery.ECBehaviorPlayerInputMove.Instance.pLocomotion

◆ pLocomotionType

LocomotionType Dragengine.Scenery.ECBehaviorPlayerInputMove.Instance.pLocomotionType

◆ pMoveBackward

bool Dragengine.Scenery.ECBehaviorPlayerInputMove.Instance.pMoveBackward

◆ pMoveForward

bool Dragengine.Scenery.ECBehaviorPlayerInputMove.Instance.pMoveForward

◆ pMoveLeft

bool Dragengine.Scenery.ECBehaviorPlayerInputMove.Instance.pMoveLeft

◆ pMoveRight

bool Dragengine.Scenery.ECBehaviorPlayerInputMove.Instance.pMoveRight

◆ pMovingBodyTurn

float Dragengine.Scenery.ECBehaviorPlayerInputMove.Instance.pMovingBodyTurn

◆ pMovingDirection

float Dragengine.Scenery.ECBehaviorPlayerInputMove.Instance.pMovingDirection

◆ pMovingSpeed

float Dragengine.Scenery.ECBehaviorPlayerInputMove.Instance.pMovingSpeed

◆ pRun

bool Dragengine.Scenery.ECBehaviorPlayerInputMove.Instance.pRun

◆ pSpeedFactorRunBackward

float Dragengine.Scenery.ECBehaviorPlayerInputMove.Instance.pSpeedFactorRunBackward

◆ pSpeedFactorRunForward

float Dragengine.Scenery.ECBehaviorPlayerInputMove.Instance.pSpeedFactorRunForward

◆ pSpeedFactorRunLeft

float Dragengine.Scenery.ECBehaviorPlayerInputMove.Instance.pSpeedFactorRunLeft

◆ pSpeedFactorRunRight

float Dragengine.Scenery.ECBehaviorPlayerInputMove.Instance.pSpeedFactorRunRight

◆ pSpeedFactorWalkBackward

float Dragengine.Scenery.ECBehaviorPlayerInputMove.Instance.pSpeedFactorWalkBackward

◆ pSpeedFactorWalkForward

float Dragengine.Scenery.ECBehaviorPlayerInputMove.Instance.pSpeedFactorWalkForward

◆ pSpeedFactorWalkLeft

float Dragengine.Scenery.ECBehaviorPlayerInputMove.Instance.pSpeedFactorWalkLeft

◆ pSpeedFactorWalkRight

float Dragengine.Scenery.ECBehaviorPlayerInputMove.Instance.pSpeedFactorWalkRight

◆ pSpeedRun

float Dragengine.Scenery.ECBehaviorPlayerInputMove.Instance.pSpeedRun

◆ pSpeedWalk

float Dragengine.Scenery.ECBehaviorPlayerInputMove.Instance.pSpeedWalk

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