|
Drag[en]gine Script Module DragonScript 1.35
|
Layer in a conversation playback. More...
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 |
Layer in a conversation playback.
| void Dragengine.ConversationSystem.ConversationPlaybackLayer.advance | ( | ) |
Advance to the next action if possible.
Referenced by getLoopEvalConditionInterval(), new(), and writeToFile().
| void Dragengine.ConversationSystem.ConversationPlaybackLayer.cancelLooping | ( | ) |
| void Dragengine.ConversationSystem.ConversationPlaybackLayer.forwardEnd | ( | ) |
Forward to end.
Referenced by writeToFile().
| void Dragengine.ConversationSystem.ConversationPlaybackLayer.forwardFirst | ( | ) |
| void Dragengine.ConversationSystem.ConversationPlaybackLayer.forwardLast | ( | ) |
| ConversationCondition Dragengine.ConversationSystem.ConversationPlaybackLayer.getLoopCondition | ( | ) |
Loop condition or null if always true.
References pActionIterator, and pLoopEvalConditionInterval.
Referenced by getLooping().
| float Dragengine.ConversationSystem.ConversationPlaybackLayer.getLoopEvalConditionInterval | ( | ) |
Interval to wait before testing the condition again to improve performance.
References advance(), and pNextAction.
Referenced by setTopicTopLevel().
| bool Dragengine.ConversationSystem.ConversationPlaybackLayer.getLooping | ( | ) |
| ConversationAction Dragengine.ConversationSystem.ConversationPlaybackLayer.getNextAction | ( | ) |
Next action or null if at the end of the current list.
References pLoopEvalConditionInterval, and setLoopEvalConditionInterval().
Referenced by writeToFile().
| bool Dragengine.ConversationSystem.ConversationPlaybackLayer.getTopicTopLevel | ( | ) |
Belongs to top level of a topic.
References pLoopCondition, and setLoopCondition().
Referenced by cancelLooping().
| bool Dragengine.ConversationSystem.ConversationPlaybackLayer.hasNextAction | ( | ) |
| ConversationPlaybackLayer Dragengine.ConversationSystem.ConversationPlaybackLayer.new | ( | ConversationActionIterator | iterator | ) |
| ConversationPlaybackLayer Dragengine.ConversationSystem.ConversationPlaybackLayer.new | ( | ConversationActionIterator | iterator, |
| bool | advance ) |
|
static |
Read layer from file.
References pTopicTopLevel, and setTopicTopLevel().
Referenced by writeToFile().
| void Dragengine.ConversationSystem.ConversationPlaybackLayer.setLoopCondition | ( | ConversationCondition | condition | ) |
Set loop condition or null if always true.
References pLooping, and pTopicTopLevel.
Referenced by getTopicTopLevel().
| void Dragengine.ConversationSystem.ConversationPlaybackLayer.setLoopEvalConditionInterval | ( | float | interval | ) |
Set interval to wait before testing the condition again to improve performance.
Referenced by getNextAction().
| void Dragengine.ConversationSystem.ConversationPlaybackLayer.setLooping | ( | bool | looping | ) |
| void Dragengine.ConversationSystem.ConversationPlaybackLayer.setTopicTopLevel | ( | bool | topicTopLevel | ) |
Set if layer belongs to top level of a topic.
References getLoopEvalConditionInterval(), and pLoopEvalConditionInterval.
Referenced by readFromFile().
| void Dragengine.ConversationSystem.ConversationPlaybackLayer.writeToFile | ( | PersistencyEnvironment | env, |
| FileWriter | writer ) |
Write layer to file.
References advance(), cancelLooping(), forwardEnd(), forwardFirst(), forwardLast(), getNextAction(), hasNextAction(), pActionIterator, pLoopCondition, pLoopEvalConditionInterval, pLooping, pNextAction, pTopicTopLevel, readFromFile(), and writeToFile().
Referenced by writeToFile().
| ConversationActionIterator Dragengine.ConversationSystem.ConversationPlaybackLayer.pActionIterator |
Referenced by getLoopCondition(), and writeToFile().
| ConversationCondition Dragengine.ConversationSystem.ConversationPlaybackLayer.pLoopCondition |
Referenced by getTopicTopLevel(), setLooping(), and writeToFile().
| float Dragengine.ConversationSystem.ConversationPlaybackLayer.pLoopEvalConditionInterval |
Referenced by getLoopCondition(), getNextAction(), setTopicTopLevel(), and writeToFile().
| bool Dragengine.ConversationSystem.ConversationPlaybackLayer.pLooping |
Referenced by forwardFirst(), forwardLast(), setLoopCondition(), and writeToFile().
| ConversationAction Dragengine.ConversationSystem.ConversationPlaybackLayer.pNextAction |
Referenced by getLoopEvalConditionInterval(), and writeToFile().
| bool Dragengine.ConversationSystem.ConversationPlaybackLayer.pTopicTopLevel |
Referenced by cancelLooping(), readFromFile(), setLoopCondition(), and writeToFile().