|
Drag[en]gine Script Module DragonScript 1.35
|
Conversation action making actors speak. More...
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) |
Conversation action making actors speak.
| void Dragengine.ConversationSystem.CActionActorSpeak.addBodyLookAt | ( | ConversationStrip | lookAt | ) |
| void Dragengine.ConversationSystem.CActionActorSpeak.addEyesLookAt | ( | ConversationStrip | lookAt | ) |
Adds a eyes look-at.
References pMissingPhonemeLength, and setMissingPhonemeLength().
Referenced by executeGesture().
| void Dragengine.ConversationSystem.CActionActorSpeak.addFacePose | ( | ConversationStrip | facePose | ) |
| void Dragengine.ConversationSystem.CActionActorSpeak.addGesture | ( | ConversationStrip | gesture | ) |
Adds a gesture.
References pTextBoxTextTranslate, and setTextBoxTextTranslate().
Referenced by executeGesture().
| void Dragengine.ConversationSystem.CActionActorSpeak.addHeadLookAt | ( | ConversationStrip | lookAt | ) |
Adds a head look-at.
References pMinSpeechTime, and setMinSpeechTime().
Referenced by executeGesture().
| void Dragengine.ConversationSystem.CActionActorSpeak.addWord | ( | ConversationStrip | word | ) |
| void Dragengine.ConversationSystem.CActionActorSpeak.execute | ( | ConversationPlayback | playback | ) |
Execute action.
Reimplemented from Dragengine.ConversationSystem.ConversationAction.
References forEachWord(), and pWords.
Referenced by executeGesture().
| void Dragengine.ConversationSystem.CActionActorSpeak.executeGesture | ( | ConversationPlayback | playback, |
| ConversationActor | actor ) |
Execute gesture.
References addBodyLookAt(), addEyesLookAt(), addFacePose(), addGesture(), addHeadLookAt(), execute(), executeGesture(), executeSpeechAnimation(), executeVoiceSound(), forEachBodyLookAt(), forEachEyesLookAt(), forEachFacePose(), forEachGesture(), forEachHeadLookAt(), getBodyLookAtCount(), getEyeLookAtCount(), getFacePoseCount(), getGestureCount(), getHeadLookAtCount(), getSound(), new(), pActorID, pBodyLookAts, Dragengine.LoadSave.Persistable.persistencyFactoryName(), pEyesLookAts, pFacePoses, pGestures, pHeadLookAts, playVoiceAudio(), pMinSpeechTime, pMissingPhonemeLength, pTextBoxText, pTextBoxTextTranslate, pUseSpeechAnimation, pWords, removeAllBodyLookAt(), removeAllEyeLookAt(), removeAllFacePoses(), removeAllGestures(), removeAllHeadLookAt(), removeAllWords(), and Dragengine.LoadSave.Persistable.writeObjectToFile().
Referenced by executeGesture().
| float Dragengine.ConversationSystem.CActionActorSpeak.executeSpeechAnimation | ( | ConversationPlayback | playback, |
| ConversationActor | actor ) |
Execute speech animation.
Referenced by executeGesture().
| float Dragengine.ConversationSystem.CActionActorSpeak.executeVoiceSound | ( | ConversationPlayback | playback, |
| ConversationActor | actor ) |
Execute voice sound.
References addWord(), new(), and pWords.
Referenced by executeGesture().
| void Dragengine.ConversationSystem.CActionActorSpeak.forEachBodyLookAt | ( | Block | aBlock | ) |
| void Dragengine.ConversationSystem.CActionActorSpeak.forEachEyesLookAt | ( | Block | aBlock | ) |
Visits all eyes look-ats.
Referenced by executeGesture().
| void Dragengine.ConversationSystem.CActionActorSpeak.forEachFacePose | ( | Block | aBlock | ) |
| void Dragengine.ConversationSystem.CActionActorSpeak.forEachGesture | ( | Block | aBlock | ) |
| void Dragengine.ConversationSystem.CActionActorSpeak.forEachHeadLookAt | ( | Block | aBlock | ) |
| void Dragengine.ConversationSystem.CActionActorSpeak.forEachWord | ( | Block | aBlock | ) |
| StringID Dragengine.ConversationSystem.CActionActorSpeak.getActorID | ( | ) |
Actor ID or null if not set.
References pMinSpeechTime, and pMissingPhonemeLength.
Referenced by removeAllWords().
| int Dragengine.ConversationSystem.CActionActorSpeak.getBodyLookAtCount | ( | ) |
Count of body look-ats.
References pTextBoxTextStyle, and setTextBoxTextStyle().
Referenced by executeGesture().
| int Dragengine.ConversationSystem.CActionActorSpeak.getEyeLookAtCount | ( | ) |
| int Dragengine.ConversationSystem.CActionActorSpeak.getFacePoseCount | ( | ) |
| int Dragengine.ConversationSystem.CActionActorSpeak.getGestureCount | ( | ) |
Count of gestures.
References getTextBoxTextTranslate().
Referenced by executeGesture().
| int Dragengine.ConversationSystem.CActionActorSpeak.getHeadLookAtCount | ( | ) |
Count of head look-ats.
References pUseSpeechAnimation, and setUseSpeechAnimation().
Referenced by executeGesture().
| float Dragengine.ConversationSystem.CActionActorSpeak.getMinSpeechTime | ( | ) |
| float Dragengine.ConversationSystem.CActionActorSpeak.getMissingPhonemeLength | ( | ) |
Length to use for missing phoneme.
References new(), and pBodyLookAts.
Referenced by removeAllHeadLookAt().
| String Dragengine.ConversationSystem.CActionActorSpeak.getPathSound | ( | ) |
Path to the sound file or null to not play sound.
References pPathSound, and pTextBoxTextStyle.
Referenced by forEachBodyLookAt().
| Sound Dragengine.ConversationSystem.CActionActorSpeak.getSound | ( | ) |
Sound file loading it if not loaded already.
References new(), pEyesLookAts, pHeadLookAts, and pUseSpeechAnimation.
Referenced by addWord(), and executeGesture().
| UnicodeString Dragengine.ConversationSystem.CActionActorSpeak.getTextBoxText | ( | ) |
| StringID Dragengine.ConversationSystem.CActionActorSpeak.getTextBoxTextStyle | ( | ) |
Text box text style id.
Referenced by removeAllGestures().
| String Dragengine.ConversationSystem.CActionActorSpeak.getTextBoxTextTranslate | ( | ) |
Translated text box text or null to use regular text box text.
References new(), and readV0().
Referenced by getGestureCount().
| bool Dragengine.ConversationSystem.CActionActorSpeak.getUseSpeechAnimation | ( | ) |
| int Dragengine.ConversationSystem.CActionActorSpeak.getWordCount | ( | ) |
| CActionActorSpeak Dragengine.ConversationSystem.CActionActorSpeak.new | ( | ) |
Create conversation action.
Reimplemented from Dragengine.ConversationSystem.ConversationAction.
References pMissingPhonemeLength.
Referenced by executeGesture(), executeVoiceSound(), getMissingPhonemeLength(), getSound(), getTextBoxTextTranslate(), readV0(), removeAllWords(), setActorID(), setMinSpeechTime(), setMissingPhonemeLength(), setPathSound(), and setUseSpeechAnimation().
| CActionActorSpeak Dragengine.ConversationSystem.CActionActorSpeak.new | ( | PersistencyEnvironment | env, |
| FileReader | reader ) |
Read from file.
Reimplemented from Dragengine.ConversationSystem.ConversationAction.
| 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().
|
protected |
References new(), pBodyLookAts, pFacePoses, pGestures, and pWords.
Referenced by getTextBoxText(), getTextBoxTextTranslate(), and setTextBoxText().
| void Dragengine.ConversationSystem.CActionActorSpeak.removeAllBodyLookAt | ( | ) |
Remove all body look-at.
References getUseSpeechAnimation(), and pUseSpeechAnimation.
Referenced by executeGesture().
| void Dragengine.ConversationSystem.CActionActorSpeak.removeAllEyeLookAt | ( | ) |
| void Dragengine.ConversationSystem.CActionActorSpeak.removeAllFacePoses | ( | ) |
Remove all face poses.
References pTextBoxText, and setTextBoxText().
Referenced by executeGesture().
| void Dragengine.ConversationSystem.CActionActorSpeak.removeAllGestures | ( | ) |
Remove all gestues.
References getTextBoxTextStyle(), and pTextBoxTextStyle.
Referenced by executeGesture().
| void Dragengine.ConversationSystem.CActionActorSpeak.removeAllHeadLookAt | ( | ) |
Remove all head look-at.
References getMissingPhonemeLength(), and pMissingPhonemeLength.
Referenced by executeGesture().
| void Dragengine.ConversationSystem.CActionActorSpeak.removeAllWords | ( | ) |
Remove all words.
References getActorID(), new(), and pSound.
Referenced by executeGesture().
| void Dragengine.ConversationSystem.CActionActorSpeak.setActorID | ( | StringID | id | ) |
| void Dragengine.ConversationSystem.CActionActorSpeak.setMinSpeechTime | ( | float | minSpeechTime | ) |
Set minimum time the actor is speaking.
References new(), and pGestures.
Referenced by addHeadLookAt().
| void Dragengine.ConversationSystem.CActionActorSpeak.setMissingPhonemeLength | ( | float | length | ) |
Set length to use for missing phoneme.
References new(), pEyesLookAts, and pHeadLookAts.
Referenced by addEyesLookAt().
| void Dragengine.ConversationSystem.CActionActorSpeak.setPathSound | ( | String | path | ) |
Set path to the sound file or null to not play sound.
Referenced by addBodyLookAt().
| 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().
| void Dragengine.ConversationSystem.CActionActorSpeak.setTextBoxTextStyle | ( | StringID | styleID | ) |
| void Dragengine.ConversationSystem.CActionActorSpeak.setTextBoxTextTranslate | ( | String | name | ) |
Set translated text box text or null to use regular text box text.
References pActorID, and pUseSpeechAnimation.
Referenced by addGesture().
| void Dragengine.ConversationSystem.CActionActorSpeak.setUseSpeechAnimation | ( | bool | useSpeechAnimation | ) |
Set if speech animation is used for this action.
References new(), and pFacePoses.
Referenced by getHeadLookAtCount().
| StringID Dragengine.ConversationSystem.CActionActorSpeak.pActorID |
Referenced by executeGesture(), forEachFacePose(), getFacePoseCount(), and setTextBoxTextTranslate().
| Array Dragengine.ConversationSystem.CActionActorSpeak.pBodyLookAts |
Referenced by executeGesture(), getMissingPhonemeLength(), and readV0().
| Array Dragengine.ConversationSystem.CActionActorSpeak.pEyesLookAts |
Referenced by executeGesture(), getSound(), getWordCount(), and setMissingPhonemeLength().
| Array Dragengine.ConversationSystem.CActionActorSpeak.pFacePoses |
Referenced by executeGesture(), getMinSpeechTime(), readV0(), and setUseSpeechAnimation().
| Array Dragengine.ConversationSystem.CActionActorSpeak.pGestures |
Referenced by executeGesture(), readV0(), and setMinSpeechTime().
| Array Dragengine.ConversationSystem.CActionActorSpeak.pHeadLookAts |
Referenced by executeGesture(), getSound(), and setMissingPhonemeLength().
| float Dragengine.ConversationSystem.CActionActorSpeak.pMinSpeechTime |
Referenced by addHeadLookAt(), executeGesture(), forEachWord(), and getActorID().
| float Dragengine.ConversationSystem.CActionActorSpeak.pMissingPhonemeLength |
Referenced by addEyesLookAt(), executeGesture(), getActorID(), new(), and removeAllHeadLookAt().
| String Dragengine.ConversationSystem.CActionActorSpeak.pPathSound |
Referenced by addBodyLookAt(), addWord(), and getPathSound().
| Sound Dragengine.ConversationSystem.CActionActorSpeak.pSound |
Referenced by addWord(), and removeAllWords().
| UnicodeString Dragengine.ConversationSystem.CActionActorSpeak.pTextBoxText |
Referenced by addFacePose(), executeGesture(), removeAllFacePoses(), and setTextBoxTextStyle().
| StringID Dragengine.ConversationSystem.CActionActorSpeak.pTextBoxTextStyle |
Referenced by getBodyLookAtCount(), getPathSound(), and removeAllGestures().
| String Dragengine.ConversationSystem.CActionActorSpeak.pTextBoxTextTranslate |
Referenced by addGesture(), executeGesture(), forEachGesture(), and setTextBoxText().
| bool Dragengine.ConversationSystem.CActionActorSpeak.pUseSpeechAnimation |
Referenced by executeGesture(), getHeadLookAtCount(), getSound(), removeAllBodyLookAt(), and setTextBoxTextTranslate().
| Array Dragengine.ConversationSystem.CActionActorSpeak.pWords |
Referenced by execute(), executeGesture(), executeVoiceSound(), getUseSpeechAnimation(), playVoiceAudio(), readV0(), and setPathSound().