Drag[en]gine Script Module DragonScript
1.23
|
Layer in a conversation playback. More...
Public Member Functions | |
void | advance () |
Advance to the next action if possible. More... | |
void | cancelLooping () |
Cancel looping. More... | |
void | forwardEnd () |
Forward to end. More... | |
void | forwardFirst () |
Forward to first action. More... | |
void | forwardLast () |
Forward to last action. More... | |
ConversationCondition | getLoopCondition () |
Loop condition or null if always true. More... | |
float | getLoopEvalConditionInterval () |
Interval to wait before testing the condition again to improve performance. More... | |
bool | getLooping () |
Actions are looping. More... | |
ConversationAction | getNextAction () |
Next action or null if at the end of the current list. More... | |
bool | getTopicTopLevel () |
Belongs to top level of a topic. More... | |
bool | hasNextAction () |
Not at end of list. More... | |
ConversationPlaybackLayer | new (ConversationActionIterator iterator) |
Create a new layer. More... | |
ConversationPlaybackLayer | new (ConversationActionIterator iterator, bool advance) |
Create a new layer. More... | |
void | setLoopCondition (ConversationCondition condition) |
Set loop condition or null if always true. More... | |
void | setLoopEvalConditionInterval (float interval) |
Set interval to wait before testing the condition again to improve performance. More... | |
void | setLooping (bool looping) |
Set actions are looping. More... | |
void | setTopicTopLevel (bool topicTopLevel) |
Set if layer belongs to top level of a topic. More... | |
void | writeToFile (PersistencyEnvironment env, FileWriter writer) |
Write layer to file. More... | |
Static Public Member Functions | |
static ConversationPlaybackLayer | readFromFile (PersistencyEnvironment env, FileReader reader) |
Read layer from file. More... | |
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.
void Dragengine.ConversationSystem.ConversationPlaybackLayer.cancelLooping | ( | ) |
Cancel looping.
void Dragengine.ConversationSystem.ConversationPlaybackLayer.forwardEnd | ( | ) |
Forward to end.
void Dragengine.ConversationSystem.ConversationPlaybackLayer.forwardFirst | ( | ) |
Forward to first action.
void Dragengine.ConversationSystem.ConversationPlaybackLayer.forwardLast | ( | ) |
Forward to last action.
ConversationCondition Dragengine.ConversationSystem.ConversationPlaybackLayer.getLoopCondition | ( | ) |
Loop condition or null if always true.
float Dragengine.ConversationSystem.ConversationPlaybackLayer.getLoopEvalConditionInterval | ( | ) |
Interval to wait before testing the condition again to improve performance.
bool Dragengine.ConversationSystem.ConversationPlaybackLayer.getLooping | ( | ) |
Actions are looping.
ConversationAction Dragengine.ConversationSystem.ConversationPlaybackLayer.getNextAction | ( | ) |
Next action or null if at the end of the current list.
bool Dragengine.ConversationSystem.ConversationPlaybackLayer.getTopicTopLevel | ( | ) |
Belongs to top level of a topic.
bool Dragengine.ConversationSystem.ConversationPlaybackLayer.hasNextAction | ( | ) |
Not at end of list.
ConversationPlaybackLayer Dragengine.ConversationSystem.ConversationPlaybackLayer.new | ( | ConversationActionIterator | iterator | ) |
Create a new layer.
Sets the next action to the first iterator action and advances the iterator.
ConversationPlaybackLayer Dragengine.ConversationSystem.ConversationPlaybackLayer.new | ( | ConversationActionIterator | iterator, |
bool | advance | ||
) |
Create a new layer.
iterator | Action iterator to use. |
advance | If true sets the next action to the first iterator action and advances the iterator. If false the iterator is not advanced and the next action is set to null. |
|
static |
Read layer from file.
void Dragengine.ConversationSystem.ConversationPlaybackLayer.setLoopCondition | ( | ConversationCondition | condition | ) |
Set loop condition or null if always true.
void Dragengine.ConversationSystem.ConversationPlaybackLayer.setLoopEvalConditionInterval | ( | float | interval | ) |
Set interval to wait before testing the condition again to improve performance.
void Dragengine.ConversationSystem.ConversationPlaybackLayer.setLooping | ( | bool | looping | ) |
Set actions are looping.
void Dragengine.ConversationSystem.ConversationPlaybackLayer.setTopicTopLevel | ( | bool | topicTopLevel | ) |
Set if layer belongs to top level of a topic.
void Dragengine.ConversationSystem.ConversationPlaybackLayer.writeToFile | ( | PersistencyEnvironment | env, |
FileWriter | writer | ||
) |
Write layer to file.
ConversationActionIterator Dragengine.ConversationSystem.ConversationPlaybackLayer.pActionIterator |
ConversationCondition Dragengine.ConversationSystem.ConversationPlaybackLayer.pLoopCondition |
float Dragengine.ConversationSystem.ConversationPlaybackLayer.pLoopEvalConditionInterval |
bool Dragengine.ConversationSystem.ConversationPlaybackLayer.pLooping |
ConversationAction Dragengine.ConversationSystem.ConversationPlaybackLayer.pNextAction |
bool Dragengine.ConversationSystem.ConversationPlaybackLayer.pTopicTopLevel |