Drag[en]gine Script Module DragonScript 1.35
Loading...
Searching...
No Matches
Dragengine.ConversationSystem.CActionActorSpeak Class Reference

Conversation action making actors speak. More...

Inheritance diagram for Dragengine.ConversationSystem.CActionActorSpeak:
Dragengine.ConversationSystem.ConversationAction Dragengine.LoadSave.Persistable

Classes

class  Factory
 Factory for loading actor actions. More...

Public Member Functions

void addBodyLookAt (ConversationStrip lookAt)
 Adds a body look-at.
void addEyesLookAt (ConversationStrip lookAt)
 Adds a eyes look-at.
void addFacePose (ConversationStrip facePose)
 Add face pose.
void addGesture (ConversationStrip gesture)
 Adds a gesture.
void addHeadLookAt (ConversationStrip lookAt)
 Adds a head look-at.
void addWord (ConversationStrip word)
 Add word.
void execute (ConversationPlayback playback)
 Execute action.
void executeGesture (ConversationPlayback playback, ConversationActor actor)
 Execute gesture.
float executeSpeechAnimation (ConversationPlayback playback, ConversationActor actor)
 Execute speech animation.
float executeVoiceSound (ConversationPlayback playback, ConversationActor actor)
 Execute voice sound.
void forEachBodyLookAt (Block aBlock)
 Visits all body look-ats.
void forEachEyesLookAt (Block aBlock)
 Visits all eyes look-ats.
void forEachFacePose (Block aBlock)
 Visits all face poses.
void forEachGesture (Block aBlock)
 Visits all gestures.
void forEachHeadLookAt (Block aBlock)
 Visits all head look-ats.
void forEachWord (Block aBlock)
 Visits all words.
StringID getActorID ()
 Actor ID or null if not set.
int getBodyLookAtCount ()
 Count of body look-ats.
int getEyeLookAtCount ()
 Count of eye look-ats.
int getFacePoseCount ()
 Count of face poses.
int getGestureCount ()
 Count of gestures.
int getHeadLookAtCount ()
 Count of head look-ats.
float getMinSpeechTime ()
 Minimum time the actor is speaking.
float getMissingPhonemeLength ()
 Length to use for missing phoneme.
String getPathSound ()
 Path to the sound file or null to not play sound.
Sound getSound ()
 Sound file loading it if not loaded already.
UnicodeString getTextBoxText ()
 Text box text or null to not set the text.
StringID getTextBoxTextStyle ()
 Text box text style id.
String getTextBoxTextTranslate ()
 Translated text box text or null to use regular text box text.
bool getUseSpeechAnimation ()
 Speech animation is used for this action.
int getWordCount ()
 Count of words.
CActionActorSpeak new ()
 Create conversation action.
CActionActorSpeak new (PersistencyEnvironment env, FileReader reader)
 Read from file.
void playVoiceAudio (ConversationActor actor, Sound sound)
 Play back a sound file as voice of a conversation actor.
void removeAllBodyLookAt ()
 Remove all body look-at.
void removeAllEyeLookAt ()
 Remove all eye look-at.
void removeAllFacePoses ()
 Remove all face poses.
void removeAllGestures ()
 Remove all gestues.
void removeAllHeadLookAt ()
 Remove all head look-at.
void removeAllWords ()
 Remove all words.
void setActorID (StringID id)
 Set actor ID or null if not set.
void setMinSpeechTime (float minSpeechTime)
 Set minimum time the actor is speaking.
void setMissingPhonemeLength (float length)
 Set length to use for missing phoneme.
void setPathSound (String path)
 Set path to the sound file or null to not play sound.
void setTextBoxText (UnicodeString text)
 Set text box text or null to not set the text.
void setTextBoxTextStyle (StringID styleID)
 Set text box text style.
void setTextBoxTextTranslate (String name)
 Set translated text box text or null to use regular text box text.
void setUseSpeechAnimation (bool useSpeechAnimation)
 Set if speech animation is used for this action.
Public Member Functions inherited from Dragengine.ConversationSystem.ConversationAction
float getDelay ()
 Delay in seconds before processing this action.
bool getWaitForActor ()
 Wait for actor.
String getWaitForActorID ()
 ID of actor to wait for or null to wait for all actors.
bool getWaitSpeakOnly ()
 Waiting considers only actor speaking not actor waiting.
void setDelay (float delay)
 Set delay in seconds before processing this action.
void setWaitForActor (bool wait)
 Set wait for actor.
void setWaitForActorID (String id)
 Set ID of actor to wait for or null to wait for all actors.
void setWaitSpeakOnly (bool speakOnly)
 Set waiting considers only actor speaking not actor waiting.
Public Member Functions inherited from Dragengine.LoadSave.Persistable
String persistencyFactoryName ()
 Name of PersistencyFactory required to load object from file.
void writeObjectToFile (PersistencyEnvironment env, FileWriter writer)
 Write object to file writer.

Public Attributes

StringID pActorID
Array pBodyLookAts
Array pEyesLookAts
Array pFacePoses
Array pGestures
Array pHeadLookAts
float pMinSpeechTime
float pMissingPhonemeLength
String pPathSound
Sound pSound
UnicodeString pTextBoxText
StringID pTextBoxTextStyle
String pTextBoxTextTranslate
bool pUseSpeechAnimation
Array pWords
Public Attributes inherited from Dragengine.ConversationSystem.ConversationAction
float pDelay
bool pWaitForActor
String pWaitForActorID

Protected Member Functions

void readV0 (PersistencyEnvironment env, FileReader reader)

Detailed Description

Conversation action making actors speak.

Member Function Documentation

◆ addBodyLookAt()

void Dragengine.ConversationSystem.CActionActorSpeak.addBodyLookAt ( ConversationStrip lookAt)

Adds a body look-at.

References pPathSound, and setPathSound().

Referenced by executeGesture().

◆ addEyesLookAt()

void Dragengine.ConversationSystem.CActionActorSpeak.addEyesLookAt ( ConversationStrip lookAt)

Adds a eyes look-at.

References pMissingPhonemeLength, and setMissingPhonemeLength().

Referenced by executeGesture().

◆ addFacePose()

void Dragengine.ConversationSystem.CActionActorSpeak.addFacePose ( ConversationStrip facePose)

Add face pose.

References getTextBoxText(), and pTextBoxText.

Referenced by executeGesture().

◆ addGesture()

void Dragengine.ConversationSystem.CActionActorSpeak.addGesture ( ConversationStrip gesture)

Adds a gesture.

References pTextBoxTextTranslate, and setTextBoxTextTranslate().

Referenced by executeGesture().

◆ addHeadLookAt()

void Dragengine.ConversationSystem.CActionActorSpeak.addHeadLookAt ( ConversationStrip lookAt)

Adds a head look-at.

References pMinSpeechTime, and setMinSpeechTime().

Referenced by executeGesture().

◆ addWord()

void Dragengine.ConversationSystem.CActionActorSpeak.addWord ( ConversationStrip word)

Add word.

References getSound(), pPathSound, and pSound.

Referenced by executeVoiceSound().

◆ execute()

void Dragengine.ConversationSystem.CActionActorSpeak.execute ( ConversationPlayback playback)

Execute action.

Reimplemented from Dragengine.ConversationSystem.ConversationAction.

References forEachWord(), and pWords.

Referenced by executeGesture().

◆ executeGesture()

◆ executeSpeechAnimation()

float Dragengine.ConversationSystem.CActionActorSpeak.executeSpeechAnimation ( ConversationPlayback playback,
ConversationActor actor )

Execute speech animation.

Returns
speech time or 0 if no sound is played.

Referenced by executeGesture().

◆ executeVoiceSound()

float Dragengine.ConversationSystem.CActionActorSpeak.executeVoiceSound ( ConversationPlayback playback,
ConversationActor actor )

Execute voice sound.

Returns
speech time or 0 if no sound is played.

References addWord(), new(), and pWords.

Referenced by executeGesture().

◆ forEachBodyLookAt()

void Dragengine.ConversationSystem.CActionActorSpeak.forEachBodyLookAt ( Block aBlock)

Visits all body look-ats.

References getPathSound().

Referenced by executeGesture().

◆ forEachEyesLookAt()

void Dragengine.ConversationSystem.CActionActorSpeak.forEachEyesLookAt ( Block aBlock)

Visits all eyes look-ats.

Referenced by executeGesture().

◆ forEachFacePose()

void Dragengine.ConversationSystem.CActionActorSpeak.forEachFacePose ( Block aBlock)

Visits all face poses.

References pActorID, and setActorID().

Referenced by executeGesture().

◆ forEachGesture()

void Dragengine.ConversationSystem.CActionActorSpeak.forEachGesture ( Block aBlock)

Visits all gestures.

References pTextBoxTextTranslate.

Referenced by executeGesture().

◆ forEachHeadLookAt()

void Dragengine.ConversationSystem.CActionActorSpeak.forEachHeadLookAt ( Block aBlock)

Visits all head look-ats.

References getMinSpeechTime().

Referenced by executeGesture().

◆ forEachWord()

void Dragengine.ConversationSystem.CActionActorSpeak.forEachWord ( Block aBlock)

Visits all words.

References pMinSpeechTime.

Referenced by execute().

◆ getActorID()

StringID Dragengine.ConversationSystem.CActionActorSpeak.getActorID ( )

Actor ID or null if not set.

References pMinSpeechTime, and pMissingPhonemeLength.

Referenced by removeAllWords().

◆ getBodyLookAtCount()

int Dragengine.ConversationSystem.CActionActorSpeak.getBodyLookAtCount ( )

Count of body look-ats.

Version
1.25

References pTextBoxTextStyle, and setTextBoxTextStyle().

Referenced by executeGesture().

◆ getEyeLookAtCount()

int Dragengine.ConversationSystem.CActionActorSpeak.getEyeLookAtCount ( )

Count of eye look-ats.

Version
1.25

Referenced by executeGesture().

◆ getFacePoseCount()

int Dragengine.ConversationSystem.CActionActorSpeak.getFacePoseCount ( )

Count of face poses.

Version
1.25

References pActorID.

Referenced by executeGesture().

◆ getGestureCount()

int Dragengine.ConversationSystem.CActionActorSpeak.getGestureCount ( )

Count of gestures.

Version
1.25

References getTextBoxTextTranslate().

Referenced by executeGesture().

◆ getHeadLookAtCount()

int Dragengine.ConversationSystem.CActionActorSpeak.getHeadLookAtCount ( )

Count of head look-ats.

Version
1.25

References pUseSpeechAnimation, and setUseSpeechAnimation().

Referenced by executeGesture().

◆ getMinSpeechTime()

float Dragengine.ConversationSystem.CActionActorSpeak.getMinSpeechTime ( )

Minimum time the actor is speaking.

References pFacePoses.

Referenced by forEachHeadLookAt().

◆ getMissingPhonemeLength()

float Dragengine.ConversationSystem.CActionActorSpeak.getMissingPhonemeLength ( )

Length to use for missing phoneme.

Version
1.25

References new(), and pBodyLookAts.

Referenced by removeAllHeadLookAt().

◆ getPathSound()

String Dragengine.ConversationSystem.CActionActorSpeak.getPathSound ( )

Path to the sound file or null to not play sound.

References pPathSound, and pTextBoxTextStyle.

Referenced by forEachBodyLookAt().

◆ getSound()

Sound Dragengine.ConversationSystem.CActionActorSpeak.getSound ( )

Sound file loading it if not loaded already.

References new(), pEyesLookAts, pHeadLookAts, and pUseSpeechAnimation.

Referenced by addWord(), and executeGesture().

◆ getTextBoxText()

UnicodeString Dragengine.ConversationSystem.CActionActorSpeak.getTextBoxText ( )

Text box text or null to not set the text.

References readV0().

Referenced by addFacePose().

◆ getTextBoxTextStyle()

StringID Dragengine.ConversationSystem.CActionActorSpeak.getTextBoxTextStyle ( )

Text box text style id.

Referenced by removeAllGestures().

◆ getTextBoxTextTranslate()

String Dragengine.ConversationSystem.CActionActorSpeak.getTextBoxTextTranslate ( )

Translated text box text or null to use regular text box text.

Version
1.16

References new(), and readV0().

Referenced by getGestureCount().

◆ getUseSpeechAnimation()

bool Dragengine.ConversationSystem.CActionActorSpeak.getUseSpeechAnimation ( )

Speech animation is used for this action.

References pWords.

Referenced by removeAllBodyLookAt().

◆ getWordCount()

int Dragengine.ConversationSystem.CActionActorSpeak.getWordCount ( )

Count of words.

Version
1.25

References pEyesLookAts.

Referenced by removeAllEyeLookAt().

◆ new() [1/2]

◆ new() [2/2]

CActionActorSpeak Dragengine.ConversationSystem.CActionActorSpeak.new ( PersistencyEnvironment env,
FileReader reader )

Read from file.

Reimplemented from Dragengine.ConversationSystem.ConversationAction.

◆ playVoiceAudio()

void Dragengine.ConversationSystem.CActionActorSpeak.playVoiceAudio ( ConversationActor actor,
Sound sound )

Play back a sound file as voice of a conversation actor.

References pWords.

Referenced by executeGesture().

◆ readV0()

void Dragengine.ConversationSystem.CActionActorSpeak.readV0 ( PersistencyEnvironment env,
FileReader reader )
protected

◆ removeAllBodyLookAt()

void Dragengine.ConversationSystem.CActionActorSpeak.removeAllBodyLookAt ( )

Remove all body look-at.

Version
1.25

References getUseSpeechAnimation(), and pUseSpeechAnimation.

Referenced by executeGesture().

◆ removeAllEyeLookAt()

void Dragengine.ConversationSystem.CActionActorSpeak.removeAllEyeLookAt ( )

Remove all eye look-at.

Version
1.25

References getWordCount().

Referenced by executeGesture().

◆ removeAllFacePoses()

void Dragengine.ConversationSystem.CActionActorSpeak.removeAllFacePoses ( )

Remove all face poses.

Version
1.25

References pTextBoxText, and setTextBoxText().

Referenced by executeGesture().

◆ removeAllGestures()

void Dragengine.ConversationSystem.CActionActorSpeak.removeAllGestures ( )

Remove all gestues.

Version
1.25

References getTextBoxTextStyle(), and pTextBoxTextStyle.

Referenced by executeGesture().

◆ removeAllHeadLookAt()

void Dragengine.ConversationSystem.CActionActorSpeak.removeAllHeadLookAt ( )

Remove all head look-at.

Version
1.25

References getMissingPhonemeLength(), and pMissingPhonemeLength.

Referenced by executeGesture().

◆ removeAllWords()

void Dragengine.ConversationSystem.CActionActorSpeak.removeAllWords ( )

Remove all words.

Version
1.25

References getActorID(), new(), and pSound.

Referenced by executeGesture().

◆ setActorID()

void Dragengine.ConversationSystem.CActionActorSpeak.setActorID ( StringID id)

Set actor ID or null if not set.

References new().

Referenced by forEachFacePose().

◆ setMinSpeechTime()

void Dragengine.ConversationSystem.CActionActorSpeak.setMinSpeechTime ( float minSpeechTime)

Set minimum time the actor is speaking.

References new(), and pGestures.

Referenced by addHeadLookAt().

◆ setMissingPhonemeLength()

void Dragengine.ConversationSystem.CActionActorSpeak.setMissingPhonemeLength ( float length)

Set length to use for missing phoneme.

Version
1.25

References new(), pEyesLookAts, and pHeadLookAts.

Referenced by addEyesLookAt().

◆ setPathSound()

void Dragengine.ConversationSystem.CActionActorSpeak.setPathSound ( String path)

Set path to the sound file or null to not play sound.

References new(), and pWords.

Referenced by addBodyLookAt().

◆ setTextBoxText()

void Dragengine.ConversationSystem.CActionActorSpeak.setTextBoxText ( UnicodeString text)

Set text box text or null to not set the text.

References pTextBoxTextTranslate, and readV0().

Referenced by removeAllFacePoses().

◆ setTextBoxTextStyle()

void Dragengine.ConversationSystem.CActionActorSpeak.setTextBoxTextStyle ( StringID styleID)

Set text box text style.

References pTextBoxText.

Referenced by getBodyLookAtCount().

◆ setTextBoxTextTranslate()

void Dragengine.ConversationSystem.CActionActorSpeak.setTextBoxTextTranslate ( String name)

Set translated text box text or null to use regular text box text.

Version
1.16

References pActorID, and pUseSpeechAnimation.

Referenced by addGesture().

◆ setUseSpeechAnimation()

void Dragengine.ConversationSystem.CActionActorSpeak.setUseSpeechAnimation ( bool useSpeechAnimation)

Set if speech animation is used for this action.

References new(), and pFacePoses.

Referenced by getHeadLookAtCount().

Member Data Documentation

◆ pActorID

StringID Dragengine.ConversationSystem.CActionActorSpeak.pActorID

◆ pBodyLookAts

Array Dragengine.ConversationSystem.CActionActorSpeak.pBodyLookAts

◆ pEyesLookAts

Array Dragengine.ConversationSystem.CActionActorSpeak.pEyesLookAts

◆ pFacePoses

Array Dragengine.ConversationSystem.CActionActorSpeak.pFacePoses

◆ pGestures

Array Dragengine.ConversationSystem.CActionActorSpeak.pGestures

◆ pHeadLookAts

Array Dragengine.ConversationSystem.CActionActorSpeak.pHeadLookAts

◆ pMinSpeechTime

float Dragengine.ConversationSystem.CActionActorSpeak.pMinSpeechTime

◆ pMissingPhonemeLength

float Dragengine.ConversationSystem.CActionActorSpeak.pMissingPhonemeLength

◆ pPathSound

String Dragengine.ConversationSystem.CActionActorSpeak.pPathSound

◆ pSound

Sound Dragengine.ConversationSystem.CActionActorSpeak.pSound

Referenced by addWord(), and removeAllWords().

◆ pTextBoxText

UnicodeString Dragengine.ConversationSystem.CActionActorSpeak.pTextBoxText

◆ pTextBoxTextStyle

StringID Dragengine.ConversationSystem.CActionActorSpeak.pTextBoxTextStyle

◆ pTextBoxTextTranslate

String Dragengine.ConversationSystem.CActionActorSpeak.pTextBoxTextTranslate

◆ pUseSpeechAnimation

bool Dragengine.ConversationSystem.CActionActorSpeak.pUseSpeechAnimation

◆ pWords

Array Dragengine.ConversationSystem.CActionActorSpeak.pWords

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