Drag[en]gine Script Module DragonScript
1.23
|
Behavior instance. More...
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... | |
Behavior instance.
float Dragengine.Scenery.ECBehaviorPlayerInputMove.Instance.calculateMovingDirection | ( | ) |
Calculate moving direction.
float Dragengine.Scenery.ECBehaviorPlayerInputMove.Instance.calculateMovingSpeed | ( | ) |
Calculate moving speed.
void Dragengine.Scenery.ECBehaviorPlayerInputMove.Instance.dispose | ( | ) |
Dispose of instance.
Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.
float Dragengine.Scenery.ECBehaviorPlayerInputMove.Instance.getAnalogMoveForwardBackward | ( | ) |
Analog move forward backward.
float Dragengine.Scenery.ECBehaviorPlayerInputMove.Instance.getAnalogMoveForwardBackwardSticky | ( | ) |
Sticky analog move forward backward.
float Dragengine.Scenery.ECBehaviorPlayerInputMove.Instance.getAnalogMoveLeftRight | ( | ) |
Analog move left right.
float Dragengine.Scenery.ECBehaviorPlayerInputMove.Instance.getAnalogMoveLeftRightSticky | ( | ) |
Sticky analog move left right.
bool Dragengine.Scenery.ECBehaviorPlayerInputMove.Instance.getCanMove | ( | ) |
Player can move.
ECBehaviorPlayerInputMove Dragengine.Scenery.ECBehaviorPlayerInputMove.Instance.getECBehavior | ( | ) |
Behavior.
ECBehaviorLocomotion.Instance Dragengine.Scenery.ECBehaviorPlayerInputMove.Instance.getLocomotion | ( | ) |
Locomotion behavior or null if absent.
LocomotionType Dragengine.Scenery.ECBehaviorPlayerInputMove.Instance.getLocomotionType | ( | ) |
Locomotion type.
bool Dragengine.Scenery.ECBehaviorPlayerInputMove.Instance.getMoveBackward | ( | ) |
Move backward key is pressed.
bool Dragengine.Scenery.ECBehaviorPlayerInputMove.Instance.getMoveForward | ( | ) |
Move forward key is pressed.
bool Dragengine.Scenery.ECBehaviorPlayerInputMove.Instance.getMoveLeft | ( | ) |
Move left key is pressed.
bool Dragengine.Scenery.ECBehaviorPlayerInputMove.Instance.getMoveRight | ( | ) |
Move right key is pressed.
float Dragengine.Scenery.ECBehaviorPlayerInputMove.Instance.getMovingDirection | ( | ) |
Locomotion moving direction.
float Dragengine.Scenery.ECBehaviorPlayerInputMove.Instance.getMovingSpeed | ( | ) |
Locomotion moving speed.
bool Dragengine.Scenery.ECBehaviorPlayerInputMove.Instance.getRun | ( | ) |
Run key is pressed.
float Dragengine.Scenery.ECBehaviorPlayerInputMove.Instance.getSpeedFactorRunBackward | ( | ) |
Speed factor run backward.
float Dragengine.Scenery.ECBehaviorPlayerInputMove.Instance.getSpeedFactorRunForward | ( | ) |
Speed factor run forward.
float Dragengine.Scenery.ECBehaviorPlayerInputMove.Instance.getSpeedFactorRunLeft | ( | ) |
Speed factor run left.
float Dragengine.Scenery.ECBehaviorPlayerInputMove.Instance.getSpeedFactorRunRight | ( | ) |
Speed factor run right.
float Dragengine.Scenery.ECBehaviorPlayerInputMove.Instance.getSpeedFactorWalkBackward | ( | ) |
Speed factor walk backward.
float Dragengine.Scenery.ECBehaviorPlayerInputMove.Instance.getSpeedFactorWalkForward | ( | ) |
Speed factor Walk forward.
float Dragengine.Scenery.ECBehaviorPlayerInputMove.Instance.getSpeedFactorWalkLeft | ( | ) |
Speed factor walk left.
float Dragengine.Scenery.ECBehaviorPlayerInputMove.Instance.getSpeedFactorWalkRight | ( | ) |
Speed factor walk right.
float Dragengine.Scenery.ECBehaviorPlayerInputMove.Instance.getSpeedRun | ( | ) |
Run speed.
float Dragengine.Scenery.ECBehaviorPlayerInputMove.Instance.getSpeedWalk | ( | ) |
Walk speed.
void Dragengine.Scenery.ECBehaviorPlayerInputMove.Instance.init | ( | StubElement | stub | ) |
Initialize element from stub.
Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.
bool Dragengine.Scenery.ECBehaviorPlayerInputMove.Instance.isMoving | ( | ) |
Player is moving.
Instance Dragengine.Scenery.ECBehaviorPlayerInputMove.Instance.new | ( | ECBehaviorPlayerInputMove | ecbehavior, |
BehaviorElement | element | ||
) |
Create instance.
void Dragengine.Scenery.ECBehaviorPlayerInputMove.Instance.readFromFile | ( | PersistencyEnvironment | env, |
FileReader | reader | ||
) |
Read element from file.
Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.
void Dragengine.Scenery.ECBehaviorPlayerInputMove.Instance.reset | ( | ) |
Reset input.
void Dragengine.Scenery.ECBehaviorPlayerInputMove.Instance.resetAnalog | ( | ) |
Reset analog input.
void Dragengine.Scenery.ECBehaviorPlayerInputMove.Instance.setAnalogMoveForwardBackward | ( | float | value | ) |
Set analog move forward backward.
void Dragengine.Scenery.ECBehaviorPlayerInputMove.Instance.setAnalogMoveForwardBackwardSticky | ( | float | value | ) |
Set sticky analog move forward backward.
void Dragengine.Scenery.ECBehaviorPlayerInputMove.Instance.setAnalogMoveLeftRight | ( | float | value | ) |
Set analog move left right.
void Dragengine.Scenery.ECBehaviorPlayerInputMove.Instance.setAnalogMoveLeftRightSticky | ( | float | value | ) |
Set sticky analog move left right.
void Dragengine.Scenery.ECBehaviorPlayerInputMove.Instance.setCanMove | ( | bool | canMove | ) |
Set if player can move.
void Dragengine.Scenery.ECBehaviorPlayerInputMove.Instance.setLocomotionType | ( | LocomotionType | type | ) |
Set locomotion type.
void Dragengine.Scenery.ECBehaviorPlayerInputMove.Instance.setMoveBackward | ( | bool | pressed | ) |
Set if move backward key is pressed.
void Dragengine.Scenery.ECBehaviorPlayerInputMove.Instance.setMoveForward | ( | bool | pressed | ) |
Set if move forward key is pressed.
void Dragengine.Scenery.ECBehaviorPlayerInputMove.Instance.setMoveLeft | ( | bool | pressed | ) |
Set if move left key is pressed.
void Dragengine.Scenery.ECBehaviorPlayerInputMove.Instance.setMoveRight | ( | bool | pressed | ) |
Set if move right key is pressed.
void Dragengine.Scenery.ECBehaviorPlayerInputMove.Instance.setMovingDirection | ( | float | direction | ) |
Set locomotion moving direction.
void Dragengine.Scenery.ECBehaviorPlayerInputMove.Instance.setMovingSpeed | ( | float | speed | ) |
Set locomotion moving speed.
void Dragengine.Scenery.ECBehaviorPlayerInputMove.Instance.setRun | ( | bool | pressed | ) |
Set if run key is pressed.
void Dragengine.Scenery.ECBehaviorPlayerInputMove.Instance.setSpeedFactorRunBackward | ( | float | speed | ) |
Set speed factor walk backward.
void Dragengine.Scenery.ECBehaviorPlayerInputMove.Instance.setSpeedFactorRunForward | ( | float | speed | ) |
Set speed factor walk forward.
void Dragengine.Scenery.ECBehaviorPlayerInputMove.Instance.setSpeedFactorRunLeft | ( | float | speed | ) |
Set speed factor walk left.
void Dragengine.Scenery.ECBehaviorPlayerInputMove.Instance.setSpeedFactorRunRight | ( | float | speed | ) |
Set speed factor walk right.
void Dragengine.Scenery.ECBehaviorPlayerInputMove.Instance.setSpeedFactorWalkBackward | ( | float | speed | ) |
Set speed factor walk backward.
void Dragengine.Scenery.ECBehaviorPlayerInputMove.Instance.setSpeedFactorWalkForward | ( | float | speed | ) |
Set speed factor walk forward.
void Dragengine.Scenery.ECBehaviorPlayerInputMove.Instance.setSpeedFactorWalkLeft | ( | float | speed | ) |
Set speed factor walk left.
void Dragengine.Scenery.ECBehaviorPlayerInputMove.Instance.setSpeedFactorWalkRight | ( | float | speed | ) |
Set speed factor walk right.
void Dragengine.Scenery.ECBehaviorPlayerInputMove.Instance.setSpeedRun | ( | float | speed | ) |
Set run speed.
void Dragengine.Scenery.ECBehaviorPlayerInputMove.Instance.setSpeedWalk | ( | float | speed | ) |
Set walk speed.
void Dragengine.Scenery.ECBehaviorPlayerInputMove.Instance.toggleCanMove | ( | ) |
Toggle can move.
void Dragengine.Scenery.ECBehaviorPlayerInputMove.Instance.toggleMoveBackward | ( | ) |
Toggle move backward key pressed.
void Dragengine.Scenery.ECBehaviorPlayerInputMove.Instance.toggleMoveForward | ( | ) |
Toggle move forward key pressed.
void Dragengine.Scenery.ECBehaviorPlayerInputMove.Instance.toggleMoveLeft | ( | ) |
Toggle move left key pressed.
void Dragengine.Scenery.ECBehaviorPlayerInputMove.Instance.toggleMoveRight | ( | ) |
Toggle move right key pressed.
void Dragengine.Scenery.ECBehaviorPlayerInputMove.Instance.toggleRun | ( | ) |
Toggle run key pressed.
void Dragengine.Scenery.ECBehaviorPlayerInputMove.Instance.updateLocomotion | ( | float | elapsed | ) |
Update locomotion.
void Dragengine.Scenery.ECBehaviorPlayerInputMove.Instance.updateMovingDirection | ( | ) |
Update moving direction and moving body turn.
void Dragengine.Scenery.ECBehaviorPlayerInputMove.Instance.updateMovingSpeed | ( | ) |
Update moving speed.
void Dragengine.Scenery.ECBehaviorPlayerInputMove.Instance.writeToFile | ( | PersistencyEnvironment | env, |
FileWriter | writer | ||
) |
Write element to file.
Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.
float Dragengine.Scenery.ECBehaviorPlayerInputMove.Instance.pAnalogMoveForwardBackward |
float Dragengine.Scenery.ECBehaviorPlayerInputMove.Instance.pAnalogMoveForwardBackwardSticky |
float Dragengine.Scenery.ECBehaviorPlayerInputMove.Instance.pAnalogMoveLeftRight |
float Dragengine.Scenery.ECBehaviorPlayerInputMove.Instance.pAnalogMoveLeftRightSticky |
bool Dragengine.Scenery.ECBehaviorPlayerInputMove.Instance.pCanMove |
ECBehaviorPlayerInputMove Dragengine.Scenery.ECBehaviorPlayerInputMove.Instance.pECBehavior |
ECBehaviorLocomotion.Instance Dragengine.Scenery.ECBehaviorPlayerInputMove.Instance.pLocomotion |
LocomotionType Dragengine.Scenery.ECBehaviorPlayerInputMove.Instance.pLocomotionType |
bool Dragengine.Scenery.ECBehaviorPlayerInputMove.Instance.pMoveBackward |
bool Dragengine.Scenery.ECBehaviorPlayerInputMove.Instance.pMoveForward |
bool Dragengine.Scenery.ECBehaviorPlayerInputMove.Instance.pMoveLeft |
bool Dragengine.Scenery.ECBehaviorPlayerInputMove.Instance.pMoveRight |
float Dragengine.Scenery.ECBehaviorPlayerInputMove.Instance.pMovingBodyTurn |
float Dragengine.Scenery.ECBehaviorPlayerInputMove.Instance.pMovingDirection |
float Dragengine.Scenery.ECBehaviorPlayerInputMove.Instance.pMovingSpeed |
bool Dragengine.Scenery.ECBehaviorPlayerInputMove.Instance.pRun |
float Dragengine.Scenery.ECBehaviorPlayerInputMove.Instance.pSpeedFactorRunBackward |
float Dragengine.Scenery.ECBehaviorPlayerInputMove.Instance.pSpeedFactorRunForward |
float Dragengine.Scenery.ECBehaviorPlayerInputMove.Instance.pSpeedFactorRunLeft |
float Dragengine.Scenery.ECBehaviorPlayerInputMove.Instance.pSpeedFactorRunRight |
float Dragengine.Scenery.ECBehaviorPlayerInputMove.Instance.pSpeedFactorWalkBackward |
float Dragengine.Scenery.ECBehaviorPlayerInputMove.Instance.pSpeedFactorWalkForward |
float Dragengine.Scenery.ECBehaviorPlayerInputMove.Instance.pSpeedFactorWalkLeft |
float Dragengine.Scenery.ECBehaviorPlayerInputMove.Instance.pSpeedFactorWalkRight |
float Dragengine.Scenery.ECBehaviorPlayerInputMove.Instance.pSpeedRun |
float Dragengine.Scenery.ECBehaviorPlayerInputMove.Instance.pSpeedWalk |