Drag[en]gine Script Module DragonScript  1.23
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. 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...
 

Detailed Description

Play back conversation look-ats.

Member Function Documentation

◆ addFadeOutLookAt()

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

Add fade out look-at.

◆ addLookAt()

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

Add strip.

◆ 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.

◆ clearLookAtState()

void Dragengine.ConversationSystem.ConversationLookAtPlayback.clearLookAtState ( )

Clear current look-at state allowing the actor to take over control.

Reimplemented in Dragengine.ConversationSystem.ConversationHeadLookAtPlayback.

◆ forEachLookAts()

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

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

◆ getCurrentLookAt()

ConversationPlaybackLookAt Dragengine.ConversationSystem.ConversationLookAtPlayback.getCurrentLookAt ( )

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

◆ getCurrentLookAtPosition()

DVector Dragengine.ConversationSystem.ConversationLookAtPlayback.getCurrentLookAtPosition ( )

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

◆ getElapsed()

float Dragengine.ConversationSystem.ConversationLookAtPlayback.getElapsed ( )

Elapsed time.

◆ 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.

◆ getLastLookAtPosition()

DVector Dragengine.ConversationSystem.ConversationLookAtPlayback.getLastLookAtPosition ( )

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

◆ getLookAtAt()

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

Look-at to play back at index.

◆ getLookAtCount()

int Dragengine.ConversationSystem.ConversationLookAtPlayback.getLookAtCount ( )

Count of look-ats to play back.

◆ getPosition()

int Dragengine.ConversationSystem.ConversationLookAtPlayback.getPosition ( )

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

◆ getRunning()

bool Dragengine.ConversationSystem.ConversationLookAtPlayback.getRunning ( )

A strip is running.

◆ 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.

◆ readFromFile()

void Dragengine.ConversationSystem.ConversationLookAtPlayback.readFromFile ( PersistencyEnvironment  env,
FileReader  reader 
)

Read element from a file.

Reimplemented in Dragengine.ConversationSystem.ConversationHeadLookAtPlayback.

◆ removeAllLookAts()

void Dragengine.ConversationSystem.ConversationLookAtPlayback.removeAllLookAts ( )

Remove all look-ats.

◆ setCurrentLookAt()

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

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

◆ setCurrentLookAtPosition()

void Dragengine.ConversationSystem.ConversationLookAtPlayback.setCurrentLookAtPosition ( DVector  position)

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

◆ setLastLookAt()

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

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

◆ setLastLookAtPosition()

void Dragengine.ConversationSystem.ConversationLookAtPlayback.setLastLookAtPosition ( DVector  position)

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

◆ 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.

◆ updateActorLookAt()

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.

◆ writeToFile()

void Dragengine.ConversationSystem.ConversationLookAtPlayback.writeToFile ( PersistencyEnvironment  env,
FileWriter  writer 
)

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