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

Layer in a conversation playback. More...

Inheritance diagram for Dragengine.ConversationSystem.ConversationPlaybackLayer:

Public Member Functions

void advance ()
 Advance to the next action if possible.
void cancelLooping ()
 Cancel looping.
void forwardEnd ()
 Forward to end.
void forwardFirst ()
 Forward to first action.
void forwardLast ()
 Forward to last action.
ConversationCondition getLoopCondition ()
 Loop condition or null if always true.
float getLoopEvalConditionInterval ()
 Interval to wait before testing the condition again to improve performance.
bool getLooping ()
 Actions are looping.
ConversationAction getNextAction ()
 Next action or null if at the end of the current list.
bool getTopicTopLevel ()
 Belongs to top level of a topic.
bool hasNextAction ()
 Not at end of list.
ConversationPlaybackLayer new (ConversationActionIterator iterator)
 Create a new layer.
ConversationPlaybackLayer new (ConversationActionIterator iterator, bool advance)
 Create a new layer.
void setLoopCondition (ConversationCondition condition)
 Set loop condition or null if always true.
void setLoopEvalConditionInterval (float interval)
 Set interval to wait before testing the condition again to improve performance.
void setLooping (bool looping)
 Set actions are looping.
void setTopicTopLevel (bool topicTopLevel)
 Set if layer belongs to top level of a topic.
void writeToFile (PersistencyEnvironment env, FileWriter writer)
 Write layer to file.

Static Public Member Functions

static ConversationPlaybackLayer readFromFile (PersistencyEnvironment env, FileReader reader)
 Read layer from file.

Public Attributes

ConversationActionIterator pActionIterator
ConversationCondition pLoopCondition
float pLoopEvalConditionInterval
bool pLooping
ConversationAction pNextAction
bool pTopicTopLevel

Detailed Description

Layer in a conversation playback.

Member Function Documentation

◆ advance()

void Dragengine.ConversationSystem.ConversationPlaybackLayer.advance ( )

Advance to the next action if possible.

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

◆ cancelLooping()

void Dragengine.ConversationSystem.ConversationPlaybackLayer.cancelLooping ( )

Cancel looping.

References getTopicTopLevel(), and pTopicTopLevel.

Referenced by writeToFile().

◆ forwardEnd()

void Dragengine.ConversationSystem.ConversationPlaybackLayer.forwardEnd ( )

Forward to end.

Referenced by writeToFile().

◆ forwardFirst()

void Dragengine.ConversationSystem.ConversationPlaybackLayer.forwardFirst ( )

Forward to first action.

References pLooping.

Referenced by writeToFile().

◆ forwardLast()

void Dragengine.ConversationSystem.ConversationPlaybackLayer.forwardLast ( )

Forward to last action.

References pLooping, and setLooping().

Referenced by writeToFile().

◆ getLoopCondition()

ConversationCondition Dragengine.ConversationSystem.ConversationPlaybackLayer.getLoopCondition ( )

Loop condition or null if always true.

References pActionIterator, and pLoopEvalConditionInterval.

Referenced by getLooping().

◆ getLoopEvalConditionInterval()

float Dragengine.ConversationSystem.ConversationPlaybackLayer.getLoopEvalConditionInterval ( )

Interval to wait before testing the condition again to improve performance.

References advance(), and pNextAction.

Referenced by setTopicTopLevel().

◆ getLooping()

bool Dragengine.ConversationSystem.ConversationPlaybackLayer.getLooping ( )

Actions are looping.

References getLoopCondition().

Referenced by hasNextAction().

◆ getNextAction()

ConversationAction Dragengine.ConversationSystem.ConversationPlaybackLayer.getNextAction ( )

Next action or null if at the end of the current list.

References pLoopEvalConditionInterval, and setLoopEvalConditionInterval().

Referenced by writeToFile().

◆ getTopicTopLevel()

bool Dragengine.ConversationSystem.ConversationPlaybackLayer.getTopicTopLevel ( )

Belongs to top level of a topic.

References pLoopCondition, and setLoopCondition().

Referenced by cancelLooping().

◆ hasNextAction()

bool Dragengine.ConversationSystem.ConversationPlaybackLayer.hasNextAction ( )

Not at end of list.

References getLooping().

Referenced by writeToFile().

◆ new() [1/2]

ConversationPlaybackLayer Dragengine.ConversationSystem.ConversationPlaybackLayer.new ( ConversationActionIterator iterator)

Create a new layer.

Sets the next action to the first iterator action and advances the iterator.

References new().

Referenced by new(), and new().

◆ new() [2/2]

ConversationPlaybackLayer Dragengine.ConversationSystem.ConversationPlaybackLayer.new ( ConversationActionIterator iterator,
bool advance )

Create a new layer.

Parameters
iteratorAction iterator to use.
advanceIf true sets the next action to the first iterator action and advances the iterator. If false the iterator is not advanced and the next action is set to null.

References advance(), and new().

◆ readFromFile()

ConversationPlaybackLayer Dragengine.ConversationSystem.ConversationPlaybackLayer.readFromFile ( PersistencyEnvironment env,
FileReader reader )
static

Read layer from file.

References pTopicTopLevel, and setTopicTopLevel().

Referenced by writeToFile().

◆ setLoopCondition()

void Dragengine.ConversationSystem.ConversationPlaybackLayer.setLoopCondition ( ConversationCondition condition)

Set loop condition or null if always true.

References pLooping, and pTopicTopLevel.

Referenced by getTopicTopLevel().

◆ setLoopEvalConditionInterval()

void Dragengine.ConversationSystem.ConversationPlaybackLayer.setLoopEvalConditionInterval ( float interval)

Set interval to wait before testing the condition again to improve performance.

Referenced by getNextAction().

◆ setLooping()

void Dragengine.ConversationSystem.ConversationPlaybackLayer.setLooping ( bool looping)

Set actions are looping.

References pLoopCondition.

Referenced by forwardLast().

◆ setTopicTopLevel()

void Dragengine.ConversationSystem.ConversationPlaybackLayer.setTopicTopLevel ( bool topicTopLevel)

Set if layer belongs to top level of a topic.

References getLoopEvalConditionInterval(), and pLoopEvalConditionInterval.

Referenced by readFromFile().

◆ writeToFile()

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

Member Data Documentation

◆ pActionIterator

ConversationActionIterator Dragengine.ConversationSystem.ConversationPlaybackLayer.pActionIterator

Referenced by getLoopCondition(), and writeToFile().

◆ pLoopCondition

ConversationCondition Dragengine.ConversationSystem.ConversationPlaybackLayer.pLoopCondition

◆ pLoopEvalConditionInterval

float Dragengine.ConversationSystem.ConversationPlaybackLayer.pLoopEvalConditionInterval

◆ pLooping

bool Dragengine.ConversationSystem.ConversationPlaybackLayer.pLooping

◆ pNextAction

ConversationAction Dragengine.ConversationSystem.ConversationPlaybackLayer.pNextAction

◆ pTopicTopLevel

bool Dragengine.ConversationSystem.ConversationPlaybackLayer.pTopicTopLevel

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