Drag[en]gine Script Module DragonScript
1.21
|
Play back conversation look-ats. More...
Classes | |
class | LookAt |
Look-at. More... | |
Public Member Functions | |
void | addFadeOutLookAt (float transitionTime) |
Add fade out look-at. More... | |
void | addLookAt (ConversationPlaybackLookAt lookAt, ConversationStrip strip) |
Add strip. More... | |
void | applyAnimation () |
Apply animation. More... | |
void | clearLookAtState () |
Clear current look-at state allowing the actor to take over control. More... | |
void | forEachLookAts (Block ablock) |
Visit look-ats to playback using block with argument LookAt. More... | |
ConversationPlaybackLookAt | getCurrentLookAt () |
Current look-at to blend with or null if not set. More... | |
DVector | getCurrentLookAtPosition () |
Current look-at position to blend with or null if not set. More... | |
float | getElapsed () |
Elapsed time. More... | |
DMatrix | getInverseMatrix (ConversationActor actor) |
Calculate the inverse matrix. More... | |
ConversationPlaybackLookAt | getLastLookAt () |
Last look-at to blend from or null if not set. More... | |
DVector | getLastLookAtPosition () |
Last look-at position to blend from or null if not set. More... | |
LookAt | getLookAtAt (int index) |
Look-at to play back at index. More... | |
int | getLookAtCount () |
Count of look-ats to play back. More... | |
int | getPosition () |
Playback position as index of look-at currently being played back. More... | |
bool | getRunning () |
A strip is running. More... | |
ConversationLookAtPlayback | new () |
Create look-at playback. More... | |
void | playbackRestoreObjectLinks (ConversationPlayback playback) |
Restore linked objects after loading. More... | |
void | readFromFile (PersistencyEnvironment env, FileReader reader) |
Read element from a file. More... | |
void | removeAllLookAts () |
Remove all look-ats. More... | |
void | setCurrentLookAt (ConversationPlaybackLookAt lookAt) |
Set current look-at to blend with or null if not set. More... | |
void | setCurrentLookAtPosition (DVector position) |
Set current look-at position to blend with or null if not set. More... | |
void | setLastLookAt (ConversationPlaybackLookAt lookAt) |
Set last look-at to blend from or null if not set. More... | |
void | setLastLookAtPosition (DVector position) |
Set last look-at position to blend from or null if not set. More... | |
void | update (ConversationActor actor, float elapsed) |
Update playback. More... | |
void | updateActorLookAt (ConversationActor actor, float blendFactor) |
Update actor look-at. More... | |
void | writeToFile (PersistencyEnvironment env, FileWriter writer) |
Writes to file. More... | |
Play back conversation look-ats.
void Dragengine.ConversationSystem.ConversationLookAtPlayback.addFadeOutLookAt | ( | float | transitionTime | ) |
Add fade out look-at.
void Dragengine.ConversationSystem.ConversationLookAtPlayback.addLookAt | ( | ConversationPlaybackLookAt | lookAt, |
ConversationStrip | strip | ||
) |
Add strip.
void Dragengine.ConversationSystem.ConversationLookAtPlayback.applyAnimation | ( | ) |
Apply animation.
Called after update() to apply animation. Can do nothing if no change has been done.
Reimplemented in Dragengine.ConversationSystem.CharacterEyesLookAtPlayback.
void Dragengine.ConversationSystem.ConversationLookAtPlayback.clearLookAtState | ( | ) |
Clear current look-at state allowing the actor to take over control.
Reimplemented in Dragengine.ConversationSystem.ConversationHeadLookAtPlayback.
void Dragengine.ConversationSystem.ConversationLookAtPlayback.forEachLookAts | ( | Block | ablock | ) |
Visit look-ats to playback using block with argument LookAt.
ConversationPlaybackLookAt Dragengine.ConversationSystem.ConversationLookAtPlayback.getCurrentLookAt | ( | ) |
Current look-at to blend with or null if not set.
DVector Dragengine.ConversationSystem.ConversationLookAtPlayback.getCurrentLookAtPosition | ( | ) |
Current look-at position to blend with or null if not set.
float Dragengine.ConversationSystem.ConversationLookAtPlayback.getElapsed | ( | ) |
Elapsed time.
DMatrix Dragengine.ConversationSystem.ConversationLookAtPlayback.getInverseMatrix | ( | ConversationActor | actor | ) |
Calculate the inverse matrix.
Reimplemented in Dragengine.ConversationSystem.ConversationHeadLookAtPlayback, and Dragengine.ConversationSystem.CharacterEyesLookAtPlayback.
ConversationPlaybackLookAt Dragengine.ConversationSystem.ConversationLookAtPlayback.getLastLookAt | ( | ) |
Last look-at to blend from or null if not set.
DVector Dragengine.ConversationSystem.ConversationLookAtPlayback.getLastLookAtPosition | ( | ) |
Last look-at position to blend from or null if not set.
LookAt Dragengine.ConversationSystem.ConversationLookAtPlayback.getLookAtAt | ( | int | index | ) |
Look-at to play back at index.
int Dragengine.ConversationSystem.ConversationLookAtPlayback.getLookAtCount | ( | ) |
Count of look-ats to play back.
int Dragengine.ConversationSystem.ConversationLookAtPlayback.getPosition | ( | ) |
Playback position as index of look-at currently being played back.
bool Dragengine.ConversationSystem.ConversationLookAtPlayback.getRunning | ( | ) |
A strip is running.
ConversationLookAtPlayback Dragengine.ConversationSystem.ConversationLookAtPlayback.new | ( | ) |
Create look-at playback.
Reimplemented in Dragengine.ConversationSystem.ConversationHeadLookAtPlayback, and Dragengine.ConversationSystem.CharacterEyesLookAtPlayback.
void Dragengine.ConversationSystem.ConversationLookAtPlayback.playbackRestoreObjectLinks | ( | ConversationPlayback | playback | ) |
Restore linked objects after loading.
While loading playback object is not available yet. Linked objects can not be restored during readFromFile(). Once all loading is done and the playback is present objects this call is used to restore the object links.
void Dragengine.ConversationSystem.ConversationLookAtPlayback.readFromFile | ( | PersistencyEnvironment | env, |
FileReader | reader | ||
) |
Read element from a file.
Reimplemented in Dragengine.ConversationSystem.ConversationHeadLookAtPlayback.
void Dragengine.ConversationSystem.ConversationLookAtPlayback.removeAllLookAts | ( | ) |
Remove all look-ats.
void Dragengine.ConversationSystem.ConversationLookAtPlayback.setCurrentLookAt | ( | ConversationPlaybackLookAt | lookAt | ) |
Set current look-at to blend with or null if not set.
void Dragengine.ConversationSystem.ConversationLookAtPlayback.setCurrentLookAtPosition | ( | DVector | position | ) |
Set current look-at position to blend with or null if not set.
void Dragengine.ConversationSystem.ConversationLookAtPlayback.setLastLookAt | ( | ConversationPlaybackLookAt | lookAt | ) |
Set last look-at to blend from or null if not set.
void Dragengine.ConversationSystem.ConversationLookAtPlayback.setLastLookAtPosition | ( | DVector | position | ) |
Set last look-at position to blend from or null if not set.
void Dragengine.ConversationSystem.ConversationLookAtPlayback.update | ( | ConversationActor | actor, |
float | elapsed | ||
) |
Update playback.
This updates the playback and updates animator instances if required. This does not apply the animation yet to allow proper use of state capturing.
void Dragengine.ConversationSystem.ConversationLookAtPlayback.updateActorLookAt | ( | ConversationActor | actor, |
float | blendFactor | ||
) |
Update actor look-at.
Default implementation does nothing.
Reimplemented in Dragengine.ConversationSystem.ConversationHeadLookAtPlayback, and Dragengine.ConversationSystem.CharacterEyesLookAtPlayback.
void Dragengine.ConversationSystem.ConversationLookAtPlayback.writeToFile | ( | PersistencyEnvironment | env, |
FileWriter | writer | ||
) |
Writes to file.
Reimplemented in Dragengine.ConversationSystem.ConversationHeadLookAtPlayback.