Drag[en]gine Script Module DragonScript 1.35
Loading...
Searching...
No Matches
Dragengine.Commands.CommandsBAAVRGrab.Base Class Reference

Base class operating only on actors with BAAVRGrab action. More...

Inheritance diagram for Dragengine.Commands.CommandsBAAVRGrab.Base:
Dragengine.Commands.Command Dragengine.Commands.CommandsBAAVRGrab.GrabAction Dragengine.Commands.CommandsBAAVRGrab.SqueezeAction

Public Member Functions

void analogAbsolute (BAAVRGrab action, float value)
 Analog absolute.
void analogAbsolute (float value)
 Absolute input device axis position changed.
Base new (ECBehaviorPlayerControllable.Tracker tracker, String name, String description, bool rightHand)
void press (BAAVRGrab action)
 Pressed.
void release (BAAVRGrab action)
 Released.
void start ()
 Input device key or button has been pressed.
void stop ()
 Input device key or button has been released.
Public Member Functions inherited from Dragengine.Commands.Command
void analogAbsolute (Binding binding, float value)
 Absolute input device axis position changed.
void analogRelative (Binding binding, float value)
 Relative input device axis position changed.
void analogRelative (float value)
 Relative input device axis position changed.
void approach ()
 User finger approached device button.
void approach (Binding binding)
 User finger approached device button.
String getDescription ()
 Description.
String getDisplayName ()
 Display name or null.
String getName ()
 Unique name.
String getTranslateDescription ()
 Translation description or null.
String getTranslateDisplayName ()
 Translation display name or null.
Command new ()
 Create command.
Command new (String name, String description)
 Create command.
void pulse ()
 Convenience method calling start() and stop() in succession.
void pulse (Binding binding)
 Convenience method calling start() and stop() in succession.
void setDescription (String description)
 Set description.
void setDisplayName (String displayName)
 Set display name or null.
void setName (String name)
 Set unique name of the command.
void setTranslateDescription (String translateName)
 Set translate description or null.
void setTranslateDisplayName (String translateName)
 Set translate display name or null.
void start (Binding binding)
 Input device key or button has been pressed.
void stop (Binding binding)
 Input device key or button has been released.
void touch ()
 Input device button has been touched.
void touch (Binding binding)
 Input device button has been touched.
String translateDescription ()
 Translated command description using default TranslationManager.
String translateDescription (TranslationManager translationManager)
 Translated command description.
String translateDisplayName ()
 Translated display name using default TranslationManager.
String translateDisplayName (TranslationManager translationManager)
 Translated display name.
void untouch ()
 Input device button has been untouched.
void untouch (Binding binding)
 Input device button has been untouched.
void withdraw ()
 User finger withdrew from device button.
void withdraw (Binding binding)
 User finger withdrew from device button.

Protected Member Functions

BAAVRGrab getGrab ()
ECBehaviorPlayerControllable.Tracker getTracker ()

Protected Attributes

bool pRightHand
ECBehaviorPlayerControllable.Tracker pTracker

Additional Inherited Members

Public Attributes inherited from Dragengine.Commands.Command
String pName

Detailed Description

Base class operating only on actors with BAAVRGrab action.

Member Function Documentation

◆ analogAbsolute() [1/2]

void Dragengine.Commands.CommandsBAAVRGrab.Base.analogAbsolute ( BAAVRGrab action,
float value )

◆ analogAbsolute() [2/2]

void Dragengine.Commands.CommandsBAAVRGrab.Base.analogAbsolute ( float value)

Absolute input device axis position changed.

Axis keeps position until next event. Gamepad events typically send this method when the stick is pushed to a new position.

Parameters
valueNew axis position in the range -1 to 1.

Reimplemented from Dragengine.Commands.Command.

References new().

◆ getGrab()

BAAVRGrab Dragengine.Commands.CommandsBAAVRGrab.Base.getGrab ( )
protected

◆ getTracker()

ECBehaviorPlayerControllable.Tracker Dragengine.Commands.CommandsBAAVRGrab.Base.getTracker ( )
protected

Referenced by release().

◆ new()

Base Dragengine.Commands.CommandsBAAVRGrab.Base.new ( ECBehaviorPlayerControllable.Tracker tracker,
String name,
String description,
bool rightHand )

◆ press()

void Dragengine.Commands.CommandsBAAVRGrab.Base.press ( BAAVRGrab action)

Pressed.

Reimplemented in Dragengine.Commands.CommandsBAAVRGrab.GrabAction.

References pRightHand, and pTracker.

◆ release()

void Dragengine.Commands.CommandsBAAVRGrab.Base.release ( BAAVRGrab action)

Released.

Reimplemented in Dragengine.Commands.CommandsBAAVRGrab.GrabAction.

References getTracker().

◆ start()

void Dragengine.Commands.CommandsBAAVRGrab.Base.start ( )

Input device key or button has been pressed.

Reimplemented from Dragengine.Commands.Command.

References pTracker.

Referenced by Dragengine.Commands.CommandsBAAVRGrab.SqueezeAction.analogAbsolute().

◆ stop()

void Dragengine.Commands.CommandsBAAVRGrab.Base.stop ( )

Input device key or button has been released.

Reimplemented from Dragengine.Commands.Command.

References pRightHand.

Member Data Documentation

◆ pRightHand

bool Dragengine.Commands.CommandsBAAVRGrab.Base.pRightHand
protected

◆ pTracker

ECBehaviorPlayerControllable.Tracker Dragengine.Commands.CommandsBAAVRGrab.Base.pTracker
protected

Referenced by analogAbsolute(), press(), and start().


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