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

Play back conversation look-ats. More...

Inheritance diagram for Dragengine.ConversationSystem.ConversationLookAtPlayback:
Dragengine.ConversationSystem.CharacterEyesLookAtPlayback Dragengine.ConversationSystem.ConversationHeadLookAtPlayback

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

Detailed Description

Play back conversation look-ats.

Member Function Documentation

◆ addFadeOutLookAt()

void Dragengine.ConversationSystem.ConversationLookAtPlayback.addFadeOutLookAt ( float transitionTime)

Add fade out look-at.

References pLastLookAt, and setLastLookAt().

Referenced by writeToFile().

◆ addLookAt()

void Dragengine.ConversationSystem.ConversationLookAtPlayback.addLookAt ( ConversationPlaybackLookAt lookAt,
ConversationStrip strip )

Add strip.

Referenced by writeToFile().

◆ applyAnimation()

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().

◆ clearLookAtState()

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().

◆ forEachLookAts()

void Dragengine.ConversationSystem.ConversationLookAtPlayback.forEachLookAts ( Block ablock)

Visit look-ats to playback using block with argument LookAt.

References getElapsed(), and pElapsed.

Referenced by readFromFile().

◆ getCurrentLookAt()

ConversationPlaybackLookAt Dragengine.ConversationSystem.ConversationLookAtPlayback.getCurrentLookAt ( )

Current look-at to blend with or null if not set.

References pCurLookAt, and pCurLookAtPosition.

Referenced by getInverseMatrix().

◆ getCurrentLookAtPosition()

DVector Dragengine.ConversationSystem.ConversationLookAtPlayback.getCurrentLookAtPosition ( )

◆ getElapsed()

float Dragengine.ConversationSystem.ConversationLookAtPlayback.getElapsed ( )

Elapsed time.

References new(), and writeToFile().

Referenced by forEachLookAts().

◆ getInverseMatrix()

DMatrix Dragengine.ConversationSystem.ConversationLookAtPlayback.getInverseMatrix ( ConversationActor actor)

◆ getLastLookAt()

ConversationPlaybackLookAt Dragengine.ConversationSystem.ConversationLookAtPlayback.getLastLookAt ( )

Last look-at to blend from or null if not set.

Referenced by removeNonRunningLookAts().

◆ getLastLookAtPosition()

DVector Dragengine.ConversationSystem.ConversationLookAtPlayback.getLastLookAtPosition ( )

◆ getLookAtAt()

LookAt Dragengine.ConversationSystem.ConversationLookAtPlayback.getLookAtAt ( int index)

Look-at to play back at index.

References pRunning.

Referenced by updateActorLookAt().

◆ getLookAtCount()

int Dragengine.ConversationSystem.ConversationLookAtPlayback.getLookAtCount ( )

Count of look-ats to play back.

References getRunning().

Referenced by updateActorLookAt().

◆ getPosition()

int Dragengine.ConversationSystem.ConversationLookAtPlayback.getPosition ( )

Playback position as index of look-at currently being played back.

References writeToFile().

Referenced by removeAllLookAts().

◆ getRunning()

bool Dragengine.ConversationSystem.ConversationLookAtPlayback.getRunning ( )

A strip is running.

References writeToFile().

Referenced by getLookAtCount().

◆ new()

ConversationLookAtPlayback Dragengine.ConversationSystem.ConversationLookAtPlayback.new ( )

◆ playbackRestoreObjectLinks()

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().

◆ readFromFile()

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().

◆ removeAllLookAts()

void Dragengine.ConversationSystem.ConversationLookAtPlayback.removeAllLookAts ( )

Remove all look-ats.

References getPosition(), and pPosition.

Referenced by writeToFile().

◆ removeNonRunningLookAts()

void Dragengine.ConversationSystem.ConversationLookAtPlayback.removeNonRunningLookAts ( )

Remove all non-playing look-ats.

Version
1.25

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().

◆ setCurrentLookAt()

void Dragengine.ConversationSystem.ConversationLookAtPlayback.setCurrentLookAt ( ConversationPlaybackLookAt lookAt)

Set current look-at to blend with or null if not set.

Referenced by update().

◆ setCurrentLookAtPosition()

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().

◆ setLastLookAt()

void Dragengine.ConversationSystem.ConversationLookAtPlayback.setLastLookAt ( ConversationPlaybackLookAt lookAt)

Set last look-at to blend from or null if not set.

References pLookAts.

Referenced by addFadeOutLookAt().

◆ setLastLookAtPosition()

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().

◆ update()

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().

◆ updateActorLookAt()

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().

◆ writeToFile()

Member Data Documentation

◆ pCurLookAt

ConversationPlaybackLookAt Dragengine.ConversationSystem.ConversationLookAtPlayback.pCurLookAt

◆ pCurLookAtPosition

DVector Dragengine.ConversationSystem.ConversationLookAtPlayback.pCurLookAtPosition

◆ pElapsed

float Dragengine.ConversationSystem.ConversationLookAtPlayback.pElapsed

◆ pLastLookAt

ConversationPlaybackLookAt Dragengine.ConversationSystem.ConversationLookAtPlayback.pLastLookAt

◆ pLastLookAtPosition

DVector Dragengine.ConversationSystem.ConversationLookAtPlayback.pLastLookAtPosition

◆ pLookAts

Array Dragengine.ConversationSystem.ConversationLookAtPlayback.pLookAts

◆ pPosition

int Dragengine.ConversationSystem.ConversationLookAtPlayback.pPosition

◆ pRunning

bool Dragengine.ConversationSystem.ConversationLookAtPlayback.pRunning

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