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

Behavior instance. More...

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

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

Detailed Description

Behavior instance.

Member Function Documentation

◆ calculateLookHorizontal()

float Dragengine.Scenery.ECBehaviorPlayerInputLook.Instance.calculateLookHorizontal ( float  elapsed)

Calculate look left right delta value and reset analog input.

◆ calculateLookVertical()

float Dragengine.Scenery.ECBehaviorPlayerInputLook.Instance.calculateLookVertical ( float  elapsed)

Calculate look up down delta value and reset analog input.

◆ dispose()

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

Dispose of instance.

Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.

◆ getAnalogFactorLookHorizontal()

float Dragengine.Scenery.ECBehaviorPlayerInputLook.Instance.getAnalogFactorLookHorizontal ( )

Analog Look left right factor relative to left right input speed.

◆ getAnalogFactorLookVertical()

float Dragengine.Scenery.ECBehaviorPlayerInputLook.Instance.getAnalogFactorLookVertical ( )

Analog Look up down factor relative to up down input speed.

◆ getAnalogLookHorizontal()

float Dragengine.Scenery.ECBehaviorPlayerInputLook.Instance.getAnalogLookHorizontal ( )

Analog look left right.

◆ getAnalogLookHorizontalSticky()

float Dragengine.Scenery.ECBehaviorPlayerInputLook.Instance.getAnalogLookHorizontalSticky ( )

Sticky analog look left right.

◆ getAnalogLookVertical()

float Dragengine.Scenery.ECBehaviorPlayerInputLook.Instance.getAnalogLookVertical ( )

Analog look up down.

◆ getAnalogLookVerticalSticky()

float Dragengine.Scenery.ECBehaviorPlayerInputLook.Instance.getAnalogLookVerticalSticky ( )

Sticky analog look up down.

◆ getECBehavior()

ECBehaviorPlayerInputLook Dragengine.Scenery.ECBehaviorPlayerInputLook.Instance.getECBehavior ( )

Behavior.

◆ getLocomotion()

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

Locomotion behavior or null if absent.

◆ getLookDown()

bool Dragengine.Scenery.ECBehaviorPlayerInputLook.Instance.getLookDown ( )

Look down key is pressed.

◆ getLookLeft()

bool Dragengine.Scenery.ECBehaviorPlayerInputLook.Instance.getLookLeft ( )

Llook left key is pressed.

◆ getLookRight()

bool Dragengine.Scenery.ECBehaviorPlayerInputLook.Instance.getLookRight ( )

Look right key is pressed.

◆ getLookUp()

bool Dragengine.Scenery.ECBehaviorPlayerInputLook.Instance.getLookUp ( )

Look up key is pressed.

◆ getSpeedLookHorizontal()

float Dragengine.Scenery.ECBehaviorPlayerInputLook.Instance.getSpeedLookHorizontal ( )

Look left right speed in degrees per second.

◆ getSpeedLookVertical()

float Dragengine.Scenery.ECBehaviorPlayerInputLook.Instance.getSpeedLookVertical ( )

Look up down speed in degrees per second.

◆ init()

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

Initialize element from stub.

Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.

◆ new()

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

Create instance.

◆ readFromFile()

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

Read element from file.

Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.

◆ reset()

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

Reset input.

◆ setAnalogFactorLookHorizontal()

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.

◆ setAnalogFactorLookVertical()

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.

◆ setAnalogLookHorizontal()

void Dragengine.Scenery.ECBehaviorPlayerInputLook.Instance.setAnalogLookHorizontal ( float  value)

Set analog look left right.

◆ setAnalogLookHorizontalSticky()

void Dragengine.Scenery.ECBehaviorPlayerInputLook.Instance.setAnalogLookHorizontalSticky ( float  value)

Set sticky analog look left right.

◆ setAnalogLookVertical()

void Dragengine.Scenery.ECBehaviorPlayerInputLook.Instance.setAnalogLookVertical ( float  value)

Set analog look up down.

◆ setAnalogLookVerticalSticky()

void Dragengine.Scenery.ECBehaviorPlayerInputLook.Instance.setAnalogLookVerticalSticky ( float  value)

Set sticky analog look up down.

◆ setLookDown()

void Dragengine.Scenery.ECBehaviorPlayerInputLook.Instance.setLookDown ( bool  pressed)

Set if look down key is pressed.

◆ setLookLeft()

void Dragengine.Scenery.ECBehaviorPlayerInputLook.Instance.setLookLeft ( bool  pressed)

Set if look left key is pressed.

◆ setLookRight()

void Dragengine.Scenery.ECBehaviorPlayerInputLook.Instance.setLookRight ( bool  pressed)

Set if look right key is pressed.

◆ setLookUp()

void Dragengine.Scenery.ECBehaviorPlayerInputLook.Instance.setLookUp ( bool  pressed)

Set if look up key is pressed.

◆ setSpeedLookHorizontal()

void Dragengine.Scenery.ECBehaviorPlayerInputLook.Instance.setSpeedLookHorizontal ( float  speed)

Set look left right speed in degrees per second.

◆ setSpeedLookVertical()

void Dragengine.Scenery.ECBehaviorPlayerInputLook.Instance.setSpeedLookVertical ( float  speed)

Set look up down speed in degrees per second.

◆ toggleLookDown()

void Dragengine.Scenery.ECBehaviorPlayerInputLook.Instance.toggleLookDown ( )

Toggle look down key pressed.

◆ toggleLookLeft()

void Dragengine.Scenery.ECBehaviorPlayerInputLook.Instance.toggleLookLeft ( )

Toggle look left key pressed.

◆ toggleLookRight()

void Dragengine.Scenery.ECBehaviorPlayerInputLook.Instance.toggleLookRight ( )

Toggle look right key pressed.

◆ toggleLookUp()

void Dragengine.Scenery.ECBehaviorPlayerInputLook.Instance.toggleLookUp ( )

Toggle look up key pressed.

◆ updateLocomotion()

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

Update locomotion.

Calls calculateLookHorizontal() and calculateLookVertical() to obtain the looking changes and applies using ECBehaviorLocomotion.applyLookAround().

◆ writeToFile()

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

Write element to file.

Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.


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