Drag[en]gine Script Module DragonScript
1.21
|
Iterator for conversation actions. More...
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 |
Iterator for conversation actions.
void Dragengine.ConversationSystem.ConversationActionIterator.first | ( | ) |
Set to first action.
Array Dragengine.ConversationSystem.ConversationActionIterator.getActions | ( | ) |
Actions.
ConversationAction Dragengine.ConversationSystem.ConversationActionIterator.getNext | ( | ) |
Next action and advance position or null if absent.
int Dragengine.ConversationSystem.ConversationActionIterator.getPosition | ( | ) |
Current position.
bool Dragengine.ConversationSystem.ConversationActionIterator.hasNext | ( | ) |
Next action is present.
void Dragengine.ConversationSystem.ConversationActionIterator.last | ( | ) |
Set to last action.
ConversationActionIterator Dragengine.ConversationSystem.ConversationActionIterator.new | ( | Array | actions, |
int | position | ||
) |
Create conversation action iterator.
void Dragengine.ConversationSystem.ConversationActionIterator.onePastLast | ( | ) |
void Dragengine.ConversationSystem.ConversationActionIterator.previous | ( | ) |
Return to previous action if not at the start.
|
static |
Read layer from file.
void Dragengine.ConversationSystem.ConversationActionIterator.writeToFile | ( | PersistencyEnvironment | env, |
FileWriter | writer | ||
) |
Write layer to file.
Array Dragengine.ConversationSystem.ConversationActionIterator.pActions |
int Dragengine.ConversationSystem.ConversationActionIterator.pPosition |