Drag[en]gine Script Module DragonScript
1.23
|
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. More... | |
void | addEyesLookAt (ConversationStrip lookAt) |
Adds a eyes look-at. More... | |
void | addFacePose (ConversationStrip facePose) |
Add face pose. More... | |
void | addGesture (ConversationStrip gesture) |
Adds a gesture. More... | |
void | addHeadLookAt (ConversationStrip lookAt) |
Adds a head look-at. More... | |
void | addWord (ConversationStrip word) |
Add word. More... | |
void | execute (ConversationPlayback playback) |
Execute action. More... | |
void | executeGesture (ConversationPlayback playback, ConversationActor actor) |
Execute gesture. More... | |
float | executeSpeechAnimation (ConversationPlayback playback, ConversationActor actor) |
Execute speech animation. More... | |
float | executeVoiceSound (ConversationPlayback playback, ConversationActor actor) |
Execute voice sound. More... | |
void | forEachBodyLookAt (Block aBlock) |
Visits all body look-ats. More... | |
void | forEachEyesLookAt (Block aBlock) |
Visits all eyes look-ats. More... | |
void | forEachFacePose (Block aBlock) |
Visits all face poses. More... | |
void | forEachGesture (Block aBlock) |
Visits all gestures. More... | |
void | forEachHeadLookAt (Block aBlock) |
Visits all head look-ats. More... | |
void | forEachWord (Block aBlock) |
Visits all words. More... | |
StringID | getActorID () |
Actor ID or null if not set. More... | |
float | getMinSpeechTime () |
Minimum time the actor is speaking. More... | |
String | getPathSound () |
Path to the sound file or null to not play sound. More... | |
Sound | getSound () |
Sound file loading it if not loaded already. More... | |
UnicodeString | getTextBoxText () |
Text box text or null to not set the text. More... | |
StringID | getTextBoxTextStyle () |
Text box text style id. More... | |
String | getTextBoxTextTranslate () |
Translated text box text or null to use regular text box text. More... | |
bool | getUseSpeechAnimation () |
Speech animation is used for this action. More... | |
CActionActorSpeak | new () |
Create conversation action. More... | |
CActionActorSpeak | new (PersistencyEnvironment env, FileReader reader) |
Read from file. More... | |
void | playVoiceAudio (ConversationActor actor, Sound sound) |
Play back a sound file as voice of a conversation actor. More... | |
void | setActorID (StringID id) |
Set actor ID or null if not set. More... | |
void | setMinSpeechTime (float minSpeechTime) |
Set minimum time the actor is speaking. More... | |
void | setPathSound (String path) |
Set path to the sound file or null to not play sound. More... | |
void | setTextBoxText (UnicodeString text) |
Set text box text or null to not set the text. More... | |
void | setTextBoxTextStyle (StringID styleID) |
Set text box text style. More... | |
void | setTextBoxTextTranslate (String name) |
Set translated text box text or null to use regular text box text. More... | |
void | setUseSpeechAnimation (bool useSpeechAnimation) |
Set if speech animation is used for this action. More... | |
Public Member Functions inherited from Dragengine.ConversationSystem.ConversationAction | |
float | getDelay () |
Delay in seconds before processing this action. More... | |
bool | getWaitForActor () |
Wait for actor. More... | |
String | getWaitForActorID () |
ID of actor to wait for or null to wait for all actors. More... | |
void | setDelay (float delay) |
Set delay in seconds before processing this action. More... | |
void | setWaitForActor (bool wait) |
Set wait for actor. More... | |
void | setWaitForActorID (String id) |
Set ID of actor to wait for or null to wait for all actors. More... | |
Public Member Functions inherited from Dragengine.LoadSave.Persistable | |
String | persistencyFactoryName () |
Name of PersistencyFactory required to load object from file. More... | |
void | writeObjectToFile (PersistencyEnvironment env, FileWriter writer) |
Write object to file writer. More... | |
Public Attributes | |
StringID | pActorID |
Array | pBodyLookAts |
Array | pEyesLookAts |
Array | pFacePoses |
Array | pGestures |
Array | pHeadLookAts |
float | pMinSpeechTime |
String | pPathSound |
Sound | pSound |
UnicodeString | pTextBoxText |
StringID | pTextBoxTextStyle |
String | pTextBoxTextTranslate |
bool | pUseSpeechAnimation |
Array | pWords |
Public Attributes inherited from Dragengine.ConversationSystem.ConversationAction | |
float | pDelay |
Delay before processing the action. More... | |
bool | pWaitForActor |
Wait for actor. More... | |
String | pWaitForActorID |
ID of actor to wait for or null to wait for all actors. More... | |
Protected Member Functions | |
void | readV0 (PersistencyEnvironment env, FileReader reader) |
Conversation action making actors speak.
void Dragengine.ConversationSystem.CActionActorSpeak.addBodyLookAt | ( | ConversationStrip | lookAt | ) |
Adds a body look-at.
void Dragengine.ConversationSystem.CActionActorSpeak.addEyesLookAt | ( | ConversationStrip | lookAt | ) |
Adds a eyes look-at.
void Dragengine.ConversationSystem.CActionActorSpeak.addFacePose | ( | ConversationStrip | facePose | ) |
Add face pose.
void Dragengine.ConversationSystem.CActionActorSpeak.addGesture | ( | ConversationStrip | gesture | ) |
Adds a gesture.
void Dragengine.ConversationSystem.CActionActorSpeak.addHeadLookAt | ( | ConversationStrip | lookAt | ) |
Adds a head look-at.
void Dragengine.ConversationSystem.CActionActorSpeak.addWord | ( | ConversationStrip | word | ) |
Add word.
void Dragengine.ConversationSystem.CActionActorSpeak.execute | ( | ConversationPlayback | playback | ) |
Execute action.
Reimplemented from Dragengine.ConversationSystem.ConversationAction.
void Dragengine.ConversationSystem.CActionActorSpeak.executeGesture | ( | ConversationPlayback | playback, |
ConversationActor | actor | ||
) |
Execute gesture.
float Dragengine.ConversationSystem.CActionActorSpeak.executeSpeechAnimation | ( | ConversationPlayback | playback, |
ConversationActor | actor | ||
) |
Execute speech animation.
float Dragengine.ConversationSystem.CActionActorSpeak.executeVoiceSound | ( | ConversationPlayback | playback, |
ConversationActor | actor | ||
) |
Execute voice sound.
void Dragengine.ConversationSystem.CActionActorSpeak.forEachBodyLookAt | ( | Block | aBlock | ) |
Visits all body look-ats.
void Dragengine.ConversationSystem.CActionActorSpeak.forEachEyesLookAt | ( | Block | aBlock | ) |
Visits all eyes look-ats.
void Dragengine.ConversationSystem.CActionActorSpeak.forEachFacePose | ( | Block | aBlock | ) |
Visits all face poses.
void Dragengine.ConversationSystem.CActionActorSpeak.forEachGesture | ( | Block | aBlock | ) |
Visits all gestures.
void Dragengine.ConversationSystem.CActionActorSpeak.forEachHeadLookAt | ( | Block | aBlock | ) |
Visits all head look-ats.
void Dragengine.ConversationSystem.CActionActorSpeak.forEachWord | ( | Block | aBlock | ) |
Visits all words.
StringID Dragengine.ConversationSystem.CActionActorSpeak.getActorID | ( | ) |
Actor ID or null if not set.
float Dragengine.ConversationSystem.CActionActorSpeak.getMinSpeechTime | ( | ) |
Minimum time the actor is speaking.
String Dragengine.ConversationSystem.CActionActorSpeak.getPathSound | ( | ) |
Path to the sound file or null to not play sound.
Sound Dragengine.ConversationSystem.CActionActorSpeak.getSound | ( | ) |
Sound file loading it if not loaded already.
UnicodeString Dragengine.ConversationSystem.CActionActorSpeak.getTextBoxText | ( | ) |
Text box text or null to not set the text.
StringID Dragengine.ConversationSystem.CActionActorSpeak.getTextBoxTextStyle | ( | ) |
Text box text style id.
String Dragengine.ConversationSystem.CActionActorSpeak.getTextBoxTextTranslate | ( | ) |
Translated text box text or null to use regular text box text.
bool Dragengine.ConversationSystem.CActionActorSpeak.getUseSpeechAnimation | ( | ) |
Speech animation is used for this action.
CActionActorSpeak Dragengine.ConversationSystem.CActionActorSpeak.new | ( | ) |
Create conversation action.
Reimplemented from Dragengine.ConversationSystem.ConversationAction.
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.
|
protected |
void Dragengine.ConversationSystem.CActionActorSpeak.setActorID | ( | StringID | id | ) |
Set actor ID or null if not set.
void Dragengine.ConversationSystem.CActionActorSpeak.setMinSpeechTime | ( | float | minSpeechTime | ) |
Set minimum time the actor is speaking.
void Dragengine.ConversationSystem.CActionActorSpeak.setPathSound | ( | String | path | ) |
Set path to the sound file or null to not play sound.
void Dragengine.ConversationSystem.CActionActorSpeak.setTextBoxText | ( | UnicodeString | text | ) |
Set text box text or null to not set the text.
void Dragengine.ConversationSystem.CActionActorSpeak.setTextBoxTextStyle | ( | StringID | styleID | ) |
Set text box text style.
void Dragengine.ConversationSystem.CActionActorSpeak.setTextBoxTextTranslate | ( | String | name | ) |
Set translated text box text or null to use regular text box text.
void Dragengine.ConversationSystem.CActionActorSpeak.setUseSpeechAnimation | ( | bool | useSpeechAnimation | ) |
Set if speech animation is used for this action.
StringID Dragengine.ConversationSystem.CActionActorSpeak.pActorID |
Array Dragengine.ConversationSystem.CActionActorSpeak.pBodyLookAts |
Array Dragengine.ConversationSystem.CActionActorSpeak.pEyesLookAts |
Array Dragengine.ConversationSystem.CActionActorSpeak.pFacePoses |
Array Dragengine.ConversationSystem.CActionActorSpeak.pGestures |
Array Dragengine.ConversationSystem.CActionActorSpeak.pHeadLookAts |
float Dragengine.ConversationSystem.CActionActorSpeak.pMinSpeechTime |
String Dragengine.ConversationSystem.CActionActorSpeak.pPathSound |
Sound Dragengine.ConversationSystem.CActionActorSpeak.pSound |
UnicodeString Dragengine.ConversationSystem.CActionActorSpeak.pTextBoxText |
StringID Dragengine.ConversationSystem.CActionActorSpeak.pTextBoxTextStyle |
String Dragengine.ConversationSystem.CActionActorSpeak.pTextBoxTextTranslate |
bool Dragengine.ConversationSystem.CActionActorSpeak.pUseSpeechAnimation |
Array Dragengine.ConversationSystem.CActionActorSpeak.pWords |