|
Drag[en]gine Script Module DragonScript 1.35
|
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.
Referenced by previous().
| Array Dragengine.ConversationSystem.ConversationActionIterator.getActions | ( | ) |
| ConversationAction Dragengine.ConversationSystem.ConversationActionIterator.getNext | ( | ) |
Next action and advance position or null if absent.
References getPosition(), and pPosition.
Referenced by onePastLast().
| int Dragengine.ConversationSystem.ConversationActionIterator.getPosition | ( | ) |
| bool Dragengine.ConversationSystem.ConversationActionIterator.hasNext | ( | ) |
| void Dragengine.ConversationSystem.ConversationActionIterator.last | ( | ) |
| ConversationActionIterator Dragengine.ConversationSystem.ConversationActionIterator.new | ( | Array | actions, |
| int | position ) |
| void Dragengine.ConversationSystem.ConversationActionIterator.onePastLast | ( | ) |
| void Dragengine.ConversationSystem.ConversationActionIterator.previous | ( | ) |
Return to previous action if not at the start.
References first(), and pPosition.
Referenced by writeToFile().
|
static |
Read layer from file.
Referenced by writeToFile().
| void Dragengine.ConversationSystem.ConversationActionIterator.writeToFile | ( | PersistencyEnvironment | env, |
| FileWriter | writer ) |
Write layer to file.
References last(), onePastLast(), pActions, pPosition, previous(), readFromFile(), and writeToFile().
Referenced by writeToFile().
| Array Dragengine.ConversationSystem.ConversationActionIterator.pActions |
Referenced by getActions(), hasNext(), last(), onePastLast(), and writeToFile().
| int Dragengine.ConversationSystem.ConversationActionIterator.pPosition |
Referenced by getActions(), getNext(), last(), onePastLast(), previous(), and writeToFile().