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

Conversation gesture playback. More...

Inheritance diagram for Dragengine.ConversationSystem.ConversationGesturePlayback:

Classes

class  Gesture
 Gesture. More...

Public Member Functions

void addGesture (StringID animatorID, bool hold, ConversationStrip strip)
 Add gesture.
void addGestureFromNow (StringID animatorID, bool hold, ConversationStrip strip)
 Add gesture at playback position replacing gestures after pause time.
void applyAnimation ()
 Apply animation.
AnimatorInstance getAnimatorInstance ()
 Animator instance.
AnimatorController getControllerFadeIn ()
 Fade in animator controllers.
AnimatorController getControllerFadeOut ()
 Fade out animator controllers.
AnimatorController getControllerPlayback ()
 Playback animator controllers.
AnimatorController getControllerProgress ()
 Progress animator controllers.
AnimatorController getControllerVariation ()
 Variation animator controllers.
float getElapsed ()
 Elapsed time.
Gesture getGestureAt (int position)
 Gesture by position.
int getGestureCount ()
 Number of gestures.
String getNameControllerFadeIn ()
 Fade in controller name.
String getNameControllerFadeOut ()
 Fade out controller name.
String getNameControllerPlayback ()
 Playback controller name.
String getNameControllerProgress ()
 Progress controller name.
String getNameControllerVariation ()
 Variation controller name.
int getPosition ()
 Playback position.
float getRemainingGestureTime ()
 Remaining playback time of current gesture.
bool getRunning ()
 Playback is running.
bool isLastGestureRunning ()
 Last gesture is playing back.
ConversationGesturePlayback new ()
 Create gesture playback.
void onFinished ()
 Finished playing back the gestures. Hook for subclasses.
void readFromFile (PersistencyEnvironment env, FileReader reader)
 Read from file.
void removeAllGestures ()
 Remove all gestures.
void setNameControllerFadeIn (String name)
 Set fade in controller name.
void setNameControllerFadeOut (String name)
 Set fade out controller name.
void setNameControllerPlayback (String name)
 Set playback controller name.
void setNameControllerProgress (String name)
 Set progress controller name.
void setNameControllerVariation (String name)
 Set variation controller name.
void update (ConversationActor actor, AnimatorInstance poseAnimatorInstance, float elapsed)
 Update playback.
void writeToFile (PersistencyEnvironment env, FileWriter writer)
 Write to file.

Protected Member Functions

void findControllers (ConversationActor actor)
 Find animator controllers after animator changed.
void initControllers (ConversationActor actor, float startTime, float endTime)
 Initialize controllers after activating a new gesture.
void initNextGesture (ConversationActor actor)
 Init next gesture to play.
void updateControllers (ConversationActor actor, float elapsed, float endTime)
 Update controllers.

Detailed Description

Conversation gesture playback.

Member Function Documentation

◆ addGesture()

void Dragengine.ConversationSystem.ConversationGesturePlayback.addGesture ( StringID animatorID,
bool hold,
ConversationStrip strip )

Add gesture.

References new().

Referenced by findControllers(), and writeToFile().

◆ addGestureFromNow()

void Dragengine.ConversationSystem.ConversationGesturePlayback.addGestureFromNow ( StringID animatorID,
bool hold,
ConversationStrip strip )

Add gesture at playback position replacing gestures after pause time.

References new().

Referenced by writeToFile().

◆ applyAnimation()

void Dragengine.ConversationSystem.ConversationGesturePlayback.applyAnimation ( )

Apply animation.

Called after update() to apply animation. Can do nothing if no change has been done.

Referenced by writeToFile().

◆ findControllers()

void Dragengine.ConversationSystem.ConversationGesturePlayback.findControllers ( ConversationActor actor)
protected

Find animator controllers after animator changed.

Version
1.13

References addGesture(), and new().

Referenced by writeToFile().

◆ getAnimatorInstance()

AnimatorInstance Dragengine.ConversationSystem.ConversationGesturePlayback.getAnimatorInstance ( )

Animator instance.

Referenced by setNameControllerPlayback().

◆ getControllerFadeIn()

AnimatorController Dragengine.ConversationSystem.ConversationGesturePlayback.getControllerFadeIn ( )

Fade in animator controllers.

Version
1.13

Referenced by writeToFile().

◆ getControllerFadeOut()

AnimatorController Dragengine.ConversationSystem.ConversationGesturePlayback.getControllerFadeOut ( )

Fade out animator controllers.

Version
1.13

References getGestureAt(), and getGestureCount().

Referenced by writeToFile().

◆ getControllerPlayback()

AnimatorController Dragengine.ConversationSystem.ConversationGesturePlayback.getControllerPlayback ( )

Playback animator controllers.

References getRemainingGestureTime().

Referenced by writeToFile().

◆ getControllerProgress()

AnimatorController Dragengine.ConversationSystem.ConversationGesturePlayback.getControllerProgress ( )

Progress animator controllers.

Referenced by writeToFile().

◆ getControllerVariation()

AnimatorController Dragengine.ConversationSystem.ConversationGesturePlayback.getControllerVariation ( )

Variation animator controllers.

Referenced by writeToFile().

◆ getElapsed()

float Dragengine.ConversationSystem.ConversationGesturePlayback.getElapsed ( )

Elapsed time.

References new().

Referenced by setNameControllerVariation().

◆ getGestureAt()

Gesture Dragengine.ConversationSystem.ConversationGesturePlayback.getGestureAt ( int position)

Gesture by position.

Referenced by getControllerFadeOut().

◆ getGestureCount()

int Dragengine.ConversationSystem.ConversationGesturePlayback.getGestureCount ( )

Number of gestures.

Referenced by getControllerFadeOut().

◆ getNameControllerFadeIn()

String Dragengine.ConversationSystem.ConversationGesturePlayback.getNameControllerFadeIn ( )

Fade in controller name.

Version
1.13

References getPosition(), and getRunning().

Referenced by writeToFile().

◆ getNameControllerFadeOut()

String Dragengine.ConversationSystem.ConversationGesturePlayback.getNameControllerFadeOut ( )

Fade out controller name.

Version
1.13

References isLastGestureRunning().

Referenced by writeToFile().

◆ getNameControllerPlayback()

String Dragengine.ConversationSystem.ConversationGesturePlayback.getNameControllerPlayback ( )

Playback controller name.

Referenced by writeToFile().

◆ getNameControllerProgress()

String Dragengine.ConversationSystem.ConversationGesturePlayback.getNameControllerProgress ( )

Progress controller name.

Referenced by writeToFile().

◆ getNameControllerVariation()

String Dragengine.ConversationSystem.ConversationGesturePlayback.getNameControllerVariation ( )

Variation controller name.

Referenced by writeToFile().

◆ getPosition()

int Dragengine.ConversationSystem.ConversationGesturePlayback.getPosition ( )

Playback position.

References writeToFile().

Referenced by getNameControllerFadeIn().

◆ getRemainingGestureTime()

float Dragengine.ConversationSystem.ConversationGesturePlayback.getRemainingGestureTime ( )

Remaining playback time of current gesture.

Version
1.13

If playback is no running 0 is returned. Returned playback includes pause if not elapsed. If playing back gesture is held not elapsed pause time is returned (duration 0).

Referenced by getControllerPlayback().

◆ getRunning()

bool Dragengine.ConversationSystem.ConversationGesturePlayback.getRunning ( )

Playback is running.

References writeToFile().

Referenced by getNameControllerFadeIn().

◆ initControllers()

void Dragengine.ConversationSystem.ConversationGesturePlayback.initControllers ( ConversationActor actor,
float startTime,
float endTime )
protected

Initialize controllers after activating a new gesture.

Version
1.13

Referenced by writeToFile().

◆ initNextGesture()

void Dragengine.ConversationSystem.ConversationGesturePlayback.initNextGesture ( ConversationActor actor)
protected

Init next gesture to play.

References onFinished().

Referenced by writeToFile().

◆ isLastGestureRunning()

bool Dragengine.ConversationSystem.ConversationGesturePlayback.isLastGestureRunning ( )

Last gesture is playing back.

Version
1.13

Returns true if getRunning() is true and getPosition() is getGestureCount() - 1.

Referenced by getNameControllerFadeOut().

◆ new()

ConversationGesturePlayback Dragengine.ConversationSystem.ConversationGesturePlayback.new ( )

Create gesture playback.

Referenced by addGesture(), addGestureFromNow(), findControllers(), getElapsed(), and writeToFile().

◆ onFinished()

void Dragengine.ConversationSystem.ConversationGesturePlayback.onFinished ( )

Finished playing back the gestures. Hook for subclasses.

Referenced by initNextGesture(), and writeToFile().

◆ readFromFile()

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

Read from file.

Referenced by writeToFile().

◆ removeAllGestures()

void Dragengine.ConversationSystem.ConversationGesturePlayback.removeAllGestures ( )

Remove all gestures.

Referenced by update(), and writeToFile().

◆ setNameControllerFadeIn()

void Dragengine.ConversationSystem.ConversationGesturePlayback.setNameControllerFadeIn ( String name)

Set fade in controller name.

Version
1.13

Referenced by writeToFile().

◆ setNameControllerFadeOut()

void Dragengine.ConversationSystem.ConversationGesturePlayback.setNameControllerFadeOut ( String name)

Set fade out controller name.

Version
1.13

Referenced by writeToFile().

◆ setNameControllerPlayback()

void Dragengine.ConversationSystem.ConversationGesturePlayback.setNameControllerPlayback ( String name)

Set playback controller name.

References getAnimatorInstance().

Referenced by writeToFile().

◆ setNameControllerProgress()

void Dragengine.ConversationSystem.ConversationGesturePlayback.setNameControllerProgress ( String name)

Set progress controller name.

Referenced by writeToFile().

◆ setNameControllerVariation()

void Dragengine.ConversationSystem.ConversationGesturePlayback.setNameControllerVariation ( String name)

Set variation controller name.

References getElapsed().

Referenced by writeToFile().

◆ update()

void Dragengine.ConversationSystem.ConversationGesturePlayback.update ( ConversationActor actor,
AnimatorInstance poseAnimatorInstance,
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 removeAllGestures().

Referenced by writeToFile().

◆ updateControllers()

void Dragengine.ConversationSystem.ConversationGesturePlayback.updateControllers ( ConversationActor actor,
float elapsed,
float endTime )
protected

Update controllers.

Version
1.13

Referenced by writeToFile().

◆ writeToFile()


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