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