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

Conversation playback lane. More...

Inheritance diagram for Dragengine.ConversationSystem.ConversationPlaybackLane:

Public Member Functions

void clear ()
 Clear.
float getElapsedActionWaiting ()
 Elapsed action waiting time in seconds.
ConversationPlaybackLayer getLayerAt (int index)
 Layer at index where index is counted from the top.
int getLayerCount ()
 Count of layers.
ConversationAction getNextAction ()
 Next action or null if top layer is finished.
ConversationPlaybackLayer getTopLayer ()
 Top layer.
bool getWaitingForAction ()
 Waiting for action to begin.
bool hasNextAction ()
 Next action is present.
bool isMainLane ()
 Lane is main lane.
ConversationPlaybackLane new (bool isMainLane)
 Create conversation playback lane.
ConversationPlaybackLane new (bool isMainLane, ConversationPlaybackLayer layer)
 Create conversation playback lane with layer.
ConversationPlaybackLane new (PersistencyEnvironment env, FileReader reader, bool isMainLane)
 Load conversation playback lane from file.
void popLayer ()
 Pop top layer off stack.
void processActions (ConversationPlayback playback, float elapsed, bool skipDelay)
 Process actions.
void pushLayer (ConversationPlaybackLayer layer)
 Push layer to top of stack.
void removeAllLayers ()
 Remove all layers.
void setElapsedActionWaiting (float time)
 Set elapsed action waiting time in seconds.
void setWaitingForAction (bool waiting)
 Set waiting for action to begin.
void writeToFile (PersistencyEnvironment env, FileWriter writer)
 Write lane to file.

Public Attributes

float pActionTime
bool pActionWaiting
bool pIsMainLane
Array pLayers

Detailed Description

Conversation playback lane.

Version
1.28

Member Function Documentation

◆ clear()

void Dragengine.ConversationSystem.ConversationPlaybackLane.clear ( )

Clear.

References pActionTime, and setElapsedActionWaiting().

Referenced by writeToFile().

◆ getElapsedActionWaiting()

float Dragengine.ConversationSystem.ConversationPlaybackLane.getElapsedActionWaiting ( )

Elapsed action waiting time in seconds.

References pLayers.

Referenced by getNextAction().

◆ getLayerAt()

ConversationPlaybackLayer Dragengine.ConversationSystem.ConversationPlaybackLane.getLayerAt ( int index)

Layer at index where index is counted from the top.

References isMainLane().

Referenced by writeToFile().

◆ getLayerCount()

int Dragengine.ConversationSystem.ConversationPlaybackLane.getLayerCount ( )

Count of layers.

Referenced by processActions().

◆ getNextAction()

ConversationAction Dragengine.ConversationSystem.ConversationPlaybackLane.getNextAction ( )

Next action or null if top layer is finished.

References getElapsedActionWaiting().

Referenced by writeToFile().

◆ getTopLayer()

ConversationPlaybackLayer Dragengine.ConversationSystem.ConversationPlaybackLane.getTopLayer ( )

Top layer.

References pIsMainLane.

Referenced by writeToFile().

◆ getWaitingForAction()

bool Dragengine.ConversationSystem.ConversationPlaybackLane.getWaitingForAction ( )

Waiting for action to begin.

References pActionWaiting.

Referenced by pushLayer().

◆ hasNextAction()

bool Dragengine.ConversationSystem.ConversationPlaybackLane.hasNextAction ( )

Next action is present.

References pActionWaiting, and setWaitingForAction().

Referenced by writeToFile().

◆ isMainLane()

bool Dragengine.ConversationSystem.ConversationPlaybackLane.isMainLane ( )

Lane is main lane.

References isMainLane().

Referenced by getLayerAt(), isMainLane(), new(), and new().

◆ new() [1/3]

ConversationPlaybackLane Dragengine.ConversationSystem.ConversationPlaybackLane.new ( bool isMainLane)

Create conversation playback lane.

References isMainLane(), new(), pIsMainLane, and pLayers.

Referenced by new().

◆ new() [2/3]

ConversationPlaybackLane Dragengine.ConversationSystem.ConversationPlaybackLane.new ( bool isMainLane,
ConversationPlaybackLayer layer )

Create conversation playback lane with layer.

◆ new() [3/3]

ConversationPlaybackLane Dragengine.ConversationSystem.ConversationPlaybackLane.new ( PersistencyEnvironment env,
FileReader reader,
bool isMainLane )

Load conversation playback lane from file.

References isMainLane(), and pushLayer().

◆ popLayer()

void Dragengine.ConversationSystem.ConversationPlaybackLane.popLayer ( )

Pop top layer off stack.

Referenced by writeToFile().

◆ processActions()

void Dragengine.ConversationSystem.ConversationPlaybackLane.processActions ( ConversationPlayback playback,
float elapsed,
bool skipDelay )

Process actions.

Warning
Call only if lane is the active lane.

References getLayerCount(), and pLayers.

Referenced by writeToFile().

◆ pushLayer()

void Dragengine.ConversationSystem.ConversationPlaybackLane.pushLayer ( ConversationPlaybackLayer layer)

Push layer to top of stack.

References getWaitingForAction(), and pActionWaiting.

Referenced by new(), and writeToFile().

◆ removeAllLayers()

void Dragengine.ConversationSystem.ConversationPlaybackLane.removeAllLayers ( )

Remove all layers.

References pActionTime.

Referenced by writeToFile().

◆ setElapsedActionWaiting()

void Dragengine.ConversationSystem.ConversationPlaybackLane.setElapsedActionWaiting ( float time)

Set elapsed action waiting time in seconds.

Referenced by clear().

◆ setWaitingForAction()

void Dragengine.ConversationSystem.ConversationPlaybackLane.setWaitingForAction ( bool waiting)

Set waiting for action to begin.

References pActionTime.

Referenced by hasNextAction().

◆ writeToFile()

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

Member Data Documentation

◆ pActionTime

float Dragengine.ConversationSystem.ConversationPlaybackLane.pActionTime

◆ pActionWaiting

bool Dragengine.ConversationSystem.ConversationPlaybackLane.pActionWaiting

◆ pIsMainLane

bool Dragengine.ConversationSystem.ConversationPlaybackLane.pIsMainLane

Referenced by getTopLayer(), new(), and writeToFile().

◆ pLayers

Array Dragengine.ConversationSystem.ConversationPlaybackLane.pLayers

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