Drag[en]gine Script Module DragonScript 1.35
Loading...
Searching...
No Matches
Dragengine.Scenery.ECBehaviorInteractPrompt.Instance Class Reference

Behavior instance. More...

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

Public Member Functions

void forEachBone (Block ablock)
 Visit bones bones this prompt is limited to using block.
Array getAlternativeCommands ()
 Alternative commands as Array of String.
String getBoneAt (int index)
 Bone at index this prompt is limited to.
int getBoneCount ()
 Count of bones this prompt is limited to.
String getCommand ()
 Command.
UnicodeString getDescription ()
 Description.
ECBehaviorInteractPrompt getECBehavior ()
 Behavior.
bool getEnabled ()
 Prompt is enabled.
Image getImage ()
 Image.
float getMaximumDistance ()
 Maximum distance to show interact prompt for when looking at it.
String getSettings ()
 Optional settings to modify display in custom prompt widgets.
String getStyle ()
 Style.
UnicodeString getVerb ()
 Verb.
Video getVideo ()
 Video.
bool hasBone (String bone)
 Bone is included in list of bones this prompt is limited to.
void init (StubElement stub)
 Initialize element from stub.
Instance new (ECBehaviorInteractPrompt ecbehavior, BehaviorElement element)
 Create behavior instance.
void setCommand (String command)
 Set command.
void setDescription (UnicodeString description)
 Set description.
void setEnabled (bool enabled)
 Set if prompt is enabled.
void setImage (Image image)
 Set image.
void setMaximumDistance (float distance)
 Set maximum distance to show interact prompt for when looking at it.
void setSettings (String settings)
 Set optional settings to modify display in custom prompt widgets.
void setStyle (String style)
 Set style.
void setVerb (UnicodeString verb)
 Set verb.
void setVideo (Video video)
 Set video.
Public Member Functions inherited from Dragengine.Scenery.DefaultECBehaviorInstance
void addToGameWorld ()
 Add element to game world.
void attachToParent (Element parent)
 Attach element to object set by the mapper in the IGDE World Editor.
void dispose ()
 Dispose of behavior instance.
void enterFrame ()
 Frame update started.
void geometryChanged ()
 Position or orientation changed.
BehaviorElement getElement ()
 Behavior element to apply behavior to.
int getInstanceIndex ()
 Behavior instance index.
DefaultECBehaviorInstance new (BehaviorElement element)
 Create default composeable instance.
void postThink (float elapsed)
 Post thinking after physics processing is finished.
void readFromFile (PersistencyEnvironment env, FileReader reader)
 Read behavior instance from file.
void removeFromGameWorld ()
 Remove element from game world.
bool requiresEnterFrame ()
 Behavior instance requires enterFrame() to be called.
bool requiresThink ()
 Behavior instance requires think() to be called.
void stateChanged ()
 State changed (visble, touchable).
void think (float elapsed)
 Think about what to do for the next frame update.
void writeToFile (PersistencyEnvironment env, FileWriter writer)
 Write behavior instance to file.

Public Attributes

Array pAlternativeCommands
Array pBones
String pCommand
UnicodeString pDescription
String pDescriptionTranslate
ECBehaviorInteractPrompt pECBehavior
bool pEnabled
Image pImage
float pMaximumDistance
String pSettings
String pStyle
UnicodeString pVerb
String pVerbTranslate
Video pVideo
Public Attributes inherited from Dragengine.Scenery.DefaultECBehaviorInstance
BehaviorElement pElement
int pInstanceIndex
bool pRequiresEnterFrame
bool pRequiresThink

Protected Member Functions

void setBones (Array bones)
 Set list of bones this prompt is limited to as Array of String.
Protected Member Functions inherited from Dragengine.Scenery.DefaultECBehaviorInstance
void setRequiresEnterFrame (bool required)
 Set if behavior instance requires enterFrame() to be called.
void setRequiresThink (bool required)
 Set if behavior instance requires think() to be called.

Detailed Description

Behavior instance.

Member Function Documentation

◆ forEachBone()

void Dragengine.Scenery.ECBehaviorInteractPrompt.Instance.forEachBone ( Block ablock)

Visit bones bones this prompt is limited to using block.

Block receives as argument "String bone".

References setDescription().

◆ getAlternativeCommands()

Array Dragengine.Scenery.ECBehaviorInteractPrompt.Instance.getAlternativeCommands ( )

Alternative commands as Array of String.

Version
1.20

References pImage.

Referenced by getStyle().

◆ getBoneAt()

String Dragengine.Scenery.ECBehaviorInteractPrompt.Instance.getBoneAt ( int index)

Bone at index this prompt is limited to.

◆ getBoneCount()

int Dragengine.Scenery.ECBehaviorInteractPrompt.Instance.getBoneCount ( )

Count of bones this prompt is limited to.

References pVerb, and pVerbTranslate.

◆ getCommand()

String Dragengine.Scenery.ECBehaviorInteractPrompt.Instance.getCommand ( )

Command.

Referenced by getStyle().

◆ getDescription()

UnicodeString Dragengine.Scenery.ECBehaviorInteractPrompt.Instance.getDescription ( )

Description.

Referenced by hasBone(), and setVerb().

◆ getECBehavior()

ECBehaviorInteractPrompt Dragengine.Scenery.ECBehaviorInteractPrompt.Instance.getECBehavior ( )

Behavior.

References new(), and pECBehavior.

Referenced by setDescription().

◆ getEnabled()

bool Dragengine.Scenery.ECBehaviorInteractPrompt.Instance.getEnabled ( )

Prompt is enabled.

References getVideo(), and pVideo.

Referenced by setStyle().

◆ getImage()

Image Dragengine.Scenery.ECBehaviorInteractPrompt.Instance.getImage ( )

Image.

References new(), and pAlternativeCommands.

Referenced by setCommand(), and setVideo().

◆ getMaximumDistance()

float Dragengine.Scenery.ECBehaviorInteractPrompt.Instance.getMaximumDistance ( )

Maximum distance to show interact prompt for when looking at it.

Version
1.18

References getStyle(), and pStyle.

Referenced by setStyle().

◆ getSettings()

String Dragengine.Scenery.ECBehaviorInteractPrompt.Instance.getSettings ( )

Optional settings to modify display in custom prompt widgets.

Version
1.19

Can be null.

References Dragengine.Scenery.ECBehaviorInteractPrompt.getTranslationManager(), getVerb(), pECBehavior, pVerb, and pVerbTranslate.

Referenced by getVerb().

◆ getStyle()

String Dragengine.Scenery.ECBehaviorInteractPrompt.Instance.getStyle ( )

◆ getVerb()

UnicodeString Dragengine.Scenery.ECBehaviorInteractPrompt.Instance.getVerb ( )

◆ getVideo()

Video Dragengine.Scenery.ECBehaviorInteractPrompt.Instance.getVideo ( )

◆ hasBone()

bool Dragengine.Scenery.ECBehaviorInteractPrompt.Instance.hasBone ( String bone)

Bone is included in list of bones this prompt is limited to.

References getDescription(), Dragengine.Scenery.ECBehaviorInteractPrompt.getTranslationManager(), pDescription, pDescriptionTranslate, and pECBehavior.

◆ init()

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

Initialize element from stub.

Reimplemented from Dragengine.Scenery.DefaultECBehaviorInstance.

References pMaximumDistance, and pSettings.

Referenced by getVideo().

◆ new()

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

◆ setBones()

void Dragengine.Scenery.ECBehaviorInteractPrompt.Instance.setBones ( Array bones)
protected

Set list of bones this prompt is limited to as Array of String.

References new(), pDescription, and pDescriptionTranslate.

◆ setCommand()

void Dragengine.Scenery.ECBehaviorInteractPrompt.Instance.setCommand ( String command)

Set command.

References getImage(), pImage, and setImage().

◆ setDescription()

void Dragengine.Scenery.ECBehaviorInteractPrompt.Instance.setDescription ( UnicodeString description)

Set description.

References getECBehavior(), and pECBehavior.

Referenced by forEachBone().

◆ setEnabled()

void Dragengine.Scenery.ECBehaviorInteractPrompt.Instance.setEnabled ( bool enabled)

Set if prompt is enabled.

References pVideo, and setVideo().

◆ setImage()

void Dragengine.Scenery.ECBehaviorInteractPrompt.Instance.setImage ( Image image)

Set image.

Referenced by setCommand().

◆ setMaximumDistance()

void Dragengine.Scenery.ECBehaviorInteractPrompt.Instance.setMaximumDistance ( float distance)

Set maximum distance to show interact prompt for when looking at it.

Version
1.18

References new(), pStyle, and setStyle().

◆ setSettings()

void Dragengine.Scenery.ECBehaviorInteractPrompt.Instance.setSettings ( String settings)

Set optional settings to modify display in custom prompt widgets.

Version
1.19

Can be null.

References new(), and setVerb().

◆ setStyle()

void Dragengine.Scenery.ECBehaviorInteractPrompt.Instance.setStyle ( String style)

◆ setVerb()

void Dragengine.Scenery.ECBehaviorInteractPrompt.Instance.setVerb ( UnicodeString verb)

◆ setVideo()

void Dragengine.Scenery.ECBehaviorInteractPrompt.Instance.setVideo ( Video video)

Set video.

References getImage(), getVideo(), pECBehavior, pImage, and pVideo.

Referenced by setEnabled().

Member Data Documentation

◆ pAlternativeCommands

Array Dragengine.Scenery.ECBehaviorInteractPrompt.Instance.pAlternativeCommands

Referenced by getImage(), getStyle(), and new().

◆ pBones

Array Dragengine.Scenery.ECBehaviorInteractPrompt.Instance.pBones

Referenced by new(), and setStyle().

◆ pCommand

String Dragengine.Scenery.ECBehaviorInteractPrompt.Instance.pCommand

Referenced by getStyle(), and new().

◆ pDescription

UnicodeString Dragengine.Scenery.ECBehaviorInteractPrompt.Instance.pDescription

Referenced by hasBone(), setBones(), and setVerb().

◆ pDescriptionTranslate

String Dragengine.Scenery.ECBehaviorInteractPrompt.Instance.pDescriptionTranslate

Referenced by hasBone(), new(), setBones(), and setVerb().

◆ pECBehavior

ECBehaviorInteractPrompt Dragengine.Scenery.ECBehaviorInteractPrompt.Instance.pECBehavior

◆ pEnabled

bool Dragengine.Scenery.ECBehaviorInteractPrompt.Instance.pEnabled

Referenced by new(), and setStyle().

◆ pImage

Image Dragengine.Scenery.ECBehaviorInteractPrompt.Instance.pImage

◆ pMaximumDistance

float Dragengine.Scenery.ECBehaviorInteractPrompt.Instance.pMaximumDistance

Referenced by init(), and setStyle().

◆ pSettings

String Dragengine.Scenery.ECBehaviorInteractPrompt.Instance.pSettings

Referenced by getVerb(), and init().

◆ pStyle

String Dragengine.Scenery.ECBehaviorInteractPrompt.Instance.pStyle

◆ pVerb

UnicodeString Dragengine.Scenery.ECBehaviorInteractPrompt.Instance.pVerb

Referenced by getBoneCount(), getSettings(), and getVerb().

◆ pVerbTranslate

String Dragengine.Scenery.ECBehaviorInteractPrompt.Instance.pVerbTranslate

Referenced by getBoneCount(), getSettings(), and getVerb().

◆ pVideo

Video Dragengine.Scenery.ECBehaviorInteractPrompt.Instance.pVideo

Referenced by getEnabled(), setEnabled(), and setVideo().


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