Drag[en]gine Script Module DragonScript  1.21
Dragengine.ConversationSystem.ConversationActionIterator Class Reference

Iterator for conversation actions. More...

Inheritance diagram for Dragengine.ConversationSystem.ConversationActionIterator:

Public Member Functions

void first ()
 Set to first action. More...
 
Array getActions ()
 Actions. More...
 
ConversationAction getNext ()
 Next action and advance position or null if absent. More...
 
int getPosition ()
 Current position. More...
 
bool hasNext ()
 Next action is present. More...
 
void last ()
 Set to last action. More...
 
ConversationActionIterator new (Array actions, int position)
 Create conversation action iterator. More...
 
void onePastLast ()
 Set to one past last action. More...
 
void previous ()
 Return to previous action if not at the start. More...
 
void writeToFile (PersistencyEnvironment env, FileWriter writer)
 Write layer to file. More...
 

Static Public Member Functions

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

Public Attributes

Array pActions
 
int pPosition
 

Detailed Description

Iterator for conversation actions.

Member Function Documentation

◆ first()

void Dragengine.ConversationSystem.ConversationActionIterator.first ( )

Set to first action.

◆ getActions()

Array Dragengine.ConversationSystem.ConversationActionIterator.getActions ( )

Actions.

◆ getNext()

ConversationAction Dragengine.ConversationSystem.ConversationActionIterator.getNext ( )

Next action and advance position or null if absent.

◆ getPosition()

int Dragengine.ConversationSystem.ConversationActionIterator.getPosition ( )

Current position.

◆ hasNext()

bool Dragengine.ConversationSystem.ConversationActionIterator.hasNext ( )

Next action is present.

◆ last()

void Dragengine.ConversationSystem.ConversationActionIterator.last ( )

Set to last action.

◆ new()

ConversationActionIterator Dragengine.ConversationSystem.ConversationActionIterator.new ( Array  actions,
int  position 
)

Create conversation action iterator.

◆ onePastLast()

void Dragengine.ConversationSystem.ConversationActionIterator.onePastLast ( )

Set to one past last action.

hasNext() returns false and getNext() returns null.

◆ previous()

void Dragengine.ConversationSystem.ConversationActionIterator.previous ( )

Return to previous action if not at the start.

Version
1.21

◆ readFromFile()

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

Read layer from file.

◆ writeToFile()

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

Write layer to file.

Member Data Documentation

◆ pActions

Array Dragengine.ConversationSystem.ConversationActionIterator.pActions

◆ pPosition

int Dragengine.ConversationSystem.ConversationActionIterator.pPosition

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