|
Drag[en]gine Script Module DragonScript 1.35
|
Play back conversation look-ats. More...
Classes | |
| class | LookAt |
| Look-at. More... | |
Public Member Functions | |
| void | addFadeOutLookAt (float transitionTime) |
| Add fade out look-at. | |
| void | addLookAt (ConversationPlaybackLookAt lookAt, ConversationStrip strip) |
| Add strip. | |
| void | applyAnimation () |
| Apply animation. | |
| void | clearLookAtState () |
| Clear current look-at state allowing the actor to take over control. | |
| void | forEachLookAts (Block ablock) |
| Visit look-ats to playback using block with argument LookAt. | |
| ConversationPlaybackLookAt | getCurrentLookAt () |
| Current look-at to blend with or null if not set. | |
| DVector | getCurrentLookAtPosition () |
| Current look-at position to blend with or null if not set. | |
| float | getElapsed () |
| Elapsed time. | |
| DMatrix | getInverseMatrix (ConversationActor actor) |
| Calculate the inverse matrix. | |
| ConversationPlaybackLookAt | getLastLookAt () |
| Last look-at to blend from or null if not set. | |
| DVector | getLastLookAtPosition () |
| Last look-at position to blend from or null if not set. | |
| LookAt | getLookAtAt (int index) |
| Look-at to play back at index. | |
| int | getLookAtCount () |
| Count of look-ats to play back. | |
| int | getPosition () |
| Playback position as index of look-at currently being played back. | |
| bool | getRunning () |
| A strip is running. | |
| ConversationLookAtPlayback | new () |
| Create look-at playback. | |
| void | playbackRestoreObjectLinks (ConversationPlayback playback) |
| Restore linked objects after loading. | |
| void | readFromFile (PersistencyEnvironment env, FileReader reader) |
| Read element from a file. | |
| void | removeAllLookAts () |
| Remove all look-ats. | |
| void | removeNonRunningLookAts () |
| Remove all non-playing look-ats. | |
| void | setCurrentLookAt (ConversationPlaybackLookAt lookAt) |
| Set current look-at to blend with or null if not set. | |
| void | setCurrentLookAtPosition (DVector position) |
| Set current look-at position to blend with or null if not set. | |
| void | setLastLookAt (ConversationPlaybackLookAt lookAt) |
| Set last look-at to blend from or null if not set. | |
| void | setLastLookAtPosition (DVector position) |
| Set last look-at position to blend from or null if not set. | |
| void | update (ConversationActor actor, float elapsed) |
| Update playback. | |
| void | updateActorLookAt (ConversationActor actor, float blendFactor) |
| Update actor look-at. | |
| void | writeToFile (PersistencyEnvironment env, FileWriter writer) |
| Writes to file. | |
Public Attributes | |
| ConversationPlaybackLookAt | pCurLookAt |
| DVector | pCurLookAtPosition |
| float | pElapsed |
| ConversationPlaybackLookAt | pLastLookAt |
| DVector | pLastLookAtPosition |
| Array | pLookAts |
| int | pPosition |
| bool | pRunning |
Play back conversation look-ats.
| void Dragengine.ConversationSystem.ConversationLookAtPlayback.addFadeOutLookAt | ( | float | transitionTime | ) |
| void Dragengine.ConversationSystem.ConversationLookAtPlayback.addLookAt | ( | ConversationPlaybackLookAt | lookAt, |
| ConversationStrip | strip ) |
Add strip.
Referenced by writeToFile().
| 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.
References getCurrentLookAtPosition(), pCurLookAtPosition, and setCurrentLookAtPosition().
Referenced by writeToFile().
| void Dragengine.ConversationSystem.ConversationLookAtPlayback.clearLookAtState | ( | ) |
Clear current look-at state allowing the actor to take over control.
Reimplemented in Dragengine.ConversationSystem.ConversationHeadLookAtPlayback.
References getLastLookAtPosition(), and pLastLookAtPosition.
Referenced by writeToFile().
| void Dragengine.ConversationSystem.ConversationLookAtPlayback.forEachLookAts | ( | Block | ablock | ) |
Visit look-ats to playback using block with argument LookAt.
References getElapsed(), and pElapsed.
Referenced by readFromFile().
| ConversationPlaybackLookAt Dragengine.ConversationSystem.ConversationLookAtPlayback.getCurrentLookAt | ( | ) |
Current look-at to blend with or null if not set.
References pCurLookAt, and pCurLookAtPosition.
Referenced by getInverseMatrix().
| DVector Dragengine.ConversationSystem.ConversationLookAtPlayback.getCurrentLookAtPosition | ( | ) |
Current look-at position to blend with or null if not set.
References new(), pLookAts, and pPosition.
Referenced by Dragengine.ConversationSystem.CharacterEyesLookAtPlayback.applyAnimation(), applyAnimation(), and Dragengine.ConversationSystem.ConversationHeadLookAtPlayback.writeToFile().
| float Dragengine.ConversationSystem.ConversationLookAtPlayback.getElapsed | ( | ) |
| DMatrix Dragengine.ConversationSystem.ConversationLookAtPlayback.getInverseMatrix | ( | ConversationActor | actor | ) |
Calculate the inverse matrix.
Reimplemented in Dragengine.ConversationSystem.CharacterEyesLookAtPlayback, and Dragengine.ConversationSystem.ConversationHeadLookAtPlayback.
References getCurrentLookAt(), pCurLookAt, pLastLookAtPosition, and setLastLookAtPosition().
Referenced by writeToFile().
| ConversationPlaybackLookAt Dragengine.ConversationSystem.ConversationLookAtPlayback.getLastLookAt | ( | ) |
Last look-at to blend from or null if not set.
Referenced by removeNonRunningLookAts().
| DVector Dragengine.ConversationSystem.ConversationLookAtPlayback.getLastLookAtPosition | ( | ) |
Last look-at position to blend from or null if not set.
References pElapsed, pPosition, and pRunning.
Referenced by Dragengine.ConversationSystem.CharacterEyesLookAtPlayback.applyAnimation(), clearLookAtState(), and Dragengine.ConversationSystem.ConversationHeadLookAtPlayback.writeToFile().
| LookAt Dragengine.ConversationSystem.ConversationLookAtPlayback.getLookAtAt | ( | int | index | ) |
| int Dragengine.ConversationSystem.ConversationLookAtPlayback.getLookAtCount | ( | ) |
| int Dragengine.ConversationSystem.ConversationLookAtPlayback.getPosition | ( | ) |
Playback position as index of look-at currently being played back.
References writeToFile().
Referenced by removeAllLookAts().
| bool Dragengine.ConversationSystem.ConversationLookAtPlayback.getRunning | ( | ) |
| ConversationLookAtPlayback Dragengine.ConversationSystem.ConversationLookAtPlayback.new | ( | ) |
Create look-at playback.
Reimplemented in Dragengine.ConversationSystem.CharacterEyesLookAtPlayback, and Dragengine.ConversationSystem.ConversationHeadLookAtPlayback.
References new().
Referenced by getCurrentLookAtPosition(), getElapsed(), new(), and writeToFile().
| 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.
References pLookAts.
Referenced by writeToFile().
| void Dragengine.ConversationSystem.ConversationLookAtPlayback.readFromFile | ( | PersistencyEnvironment | env, |
| FileReader | reader ) |
Read element from a file.
Reimplemented in Dragengine.ConversationSystem.ConversationHeadLookAtPlayback.
References forEachLookAts(), and pLookAts.
Referenced by writeToFile().
| void Dragengine.ConversationSystem.ConversationLookAtPlayback.removeAllLookAts | ( | ) |
| void Dragengine.ConversationSystem.ConversationLookAtPlayback.removeNonRunningLookAts | ( | ) |
Remove all non-playing look-ats.
If not running behaves the same as removeAllLookAts(). Otherwise removes all look-ats except the running one and keep running.
References getLastLookAt(), and pLastLookAt.
Referenced by writeToFile().
| void Dragengine.ConversationSystem.ConversationLookAtPlayback.setCurrentLookAt | ( | ConversationPlaybackLookAt | lookAt | ) |
Set current look-at to blend with or null if not set.
Referenced by update().
| void Dragengine.ConversationSystem.ConversationLookAtPlayback.setCurrentLookAtPosition | ( | DVector | position | ) |
Set current look-at position to blend with or null if not set.
References pElapsed, and pRunning.
Referenced by applyAnimation().
| void Dragengine.ConversationSystem.ConversationLookAtPlayback.setLastLookAt | ( | ConversationPlaybackLookAt | lookAt | ) |
Set last look-at to blend from or null if not set.
References pLookAts.
Referenced by addFadeOutLookAt().
| void Dragengine.ConversationSystem.ConversationLookAtPlayback.setLastLookAtPosition | ( | DVector | position | ) |
Set last look-at position to blend from or null if not set.
References pLastLookAt, and pLastLookAtPosition.
Referenced by getInverseMatrix().
| 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.
References pCurLookAt, and setCurrentLookAt().
Referenced by writeToFile().
| void Dragengine.ConversationSystem.ConversationLookAtPlayback.updateActorLookAt | ( | ConversationActor | actor, |
| float | blendFactor ) |
Update actor look-at.
Default implementation does nothing.
Reimplemented in Dragengine.ConversationSystem.CharacterEyesLookAtPlayback, and Dragengine.ConversationSystem.ConversationHeadLookAtPlayback.
References getLookAtAt(), getLookAtCount(), and pLookAts.
Referenced by writeToFile().
| void Dragengine.ConversationSystem.ConversationLookAtPlayback.writeToFile | ( | PersistencyEnvironment | env, |
| FileWriter | writer ) |
Writes to file.
Reimplemented in Dragengine.ConversationSystem.ConversationHeadLookAtPlayback.
References addFadeOutLookAt(), addLookAt(), applyAnimation(), clearLookAtState(), getInverseMatrix(), new(), pCurLookAt, pCurLookAtPosition, pElapsed, pLastLookAt, pLastLookAtPosition, playbackRestoreObjectLinks(), pLookAts, pPosition, pRunning, readFromFile(), removeAllLookAts(), removeNonRunningLookAts(), update(), updateActorLookAt(), and writeToFile().
Referenced by getElapsed(), getPosition(), getRunning(), and writeToFile().
| ConversationPlaybackLookAt Dragengine.ConversationSystem.ConversationLookAtPlayback.pCurLookAt |
Referenced by getCurrentLookAt(), getInverseMatrix(), update(), and writeToFile().
| DVector Dragengine.ConversationSystem.ConversationLookAtPlayback.pCurLookAtPosition |
Referenced by applyAnimation(), getCurrentLookAt(), and writeToFile().
| float Dragengine.ConversationSystem.ConversationLookAtPlayback.pElapsed |
Referenced by forEachLookAts(), getLastLookAtPosition(), setCurrentLookAtPosition(), and writeToFile().
| ConversationPlaybackLookAt Dragengine.ConversationSystem.ConversationLookAtPlayback.pLastLookAt |
Referenced by addFadeOutLookAt(), removeNonRunningLookAts(), setLastLookAtPosition(), and writeToFile().
| DVector Dragengine.ConversationSystem.ConversationLookAtPlayback.pLastLookAtPosition |
Referenced by clearLookAtState(), getInverseMatrix(), setLastLookAtPosition(), and writeToFile().
| Array Dragengine.ConversationSystem.ConversationLookAtPlayback.pLookAts |
Referenced by getCurrentLookAtPosition(), playbackRestoreObjectLinks(), readFromFile(), setLastLookAt(), updateActorLookAt(), and writeToFile().
| int Dragengine.ConversationSystem.ConversationLookAtPlayback.pPosition |
Referenced by getCurrentLookAtPosition(), getLastLookAtPosition(), removeAllLookAts(), and writeToFile().
| bool Dragengine.ConversationSystem.ConversationLookAtPlayback.pRunning |
Referenced by getLastLookAtPosition(), getLookAtAt(), setCurrentLookAtPosition(), and writeToFile().