Drag[en]gine Script Module DragonScript  1.21
Dragengine.ConversationSystem.CActionIfElse Class Reference

Conversation action processing action list depending on condition checking. More...

Inheritance diagram for Dragengine.ConversationSystem.CActionIfElse:
Dragengine.ConversationSystem.ConversationAction Dragengine.LoadSave.Persistable

Classes

class  Factory
 Factory for loading actor actions. More...
 

Public Member Functions

void addCase (CActionIfElseCase ifcase)
 Add if-case. More...
 
void addElseAction (ConversationAction action)
 Add else action. More...
 
void execute (ConversationPlayback playback)
 Execute action. More...
 
void forEachCase (Block aBlock)
 Visits all if-cases. More...
 
void forEachElseAction (Block aBlock)
 Visit all else actions. More...
 
ConversationActionIterator getIteratorElseActions ()
 Else actions iterator. More...
 
CActionIfElse new ()
 Create conversation action. More...
 
CActionIfElse new (PersistencyEnvironment env, FileReader reader)
 Read from file. More...
 
void writeObjectToFile (PersistencyEnvironment env, FileWriter writer)
 Write object to file writer. More...
 
- Public Member Functions inherited from Dragengine.ConversationSystem.ConversationAction
float getDelay ()
 Delay in seconds before processing this action. More...
 
bool getWaitForActor ()
 Wait for actor. More...
 
String getWaitForActorID ()
 ID of actor to wait for or null to wait for all actors. More...
 
void setDelay (float delay)
 Set delay in seconds before processing this action. More...
 
void setWaitForActor (bool wait)
 Set wait for actor. More...
 
void setWaitForActorID (String id)
 Set ID of actor to wait for or null to wait for all actors. More...
 
- Public Member Functions inherited from Dragengine.LoadSave.Persistable
String persistencyFactoryName ()
 Name of PersistencyFactory required to load object from file. More...
 

Public Attributes

Array pCases
 
Array pElseActions
 
- Public Attributes inherited from Dragengine.ConversationSystem.ConversationAction
float pDelay
 Delay before processing the action. More...
 
bool pWaitForActor
 Wait for actor. More...
 
String pWaitForActorID
 ID of actor to wait for or null to wait for all actors. More...
 

Detailed Description

Conversation action processing action list depending on condition checking.

Executes the first if-case with a condition evaluationg to true or else instead.

Member Function Documentation

◆ addCase()

void Dragengine.ConversationSystem.CActionIfElse.addCase ( CActionIfElseCase  ifcase)

Add if-case.

◆ addElseAction()

void Dragengine.ConversationSystem.CActionIfElse.addElseAction ( ConversationAction  action)

Add else action.

◆ execute()

void Dragengine.ConversationSystem.CActionIfElse.execute ( ConversationPlayback  playback)

Execute action.

Reimplemented from Dragengine.ConversationSystem.ConversationAction.

◆ forEachCase()

void Dragengine.ConversationSystem.CActionIfElse.forEachCase ( Block  aBlock)

Visits all if-cases.

◆ forEachElseAction()

void Dragengine.ConversationSystem.CActionIfElse.forEachElseAction ( Block  aBlock)

Visit all else actions.

◆ getIteratorElseActions()

ConversationActionIterator Dragengine.ConversationSystem.CActionIfElse.getIteratorElseActions ( )

Else actions iterator.

◆ new() [1/2]

CActionIfElse Dragengine.ConversationSystem.CActionIfElse.new ( )

Create conversation action.

Reimplemented from Dragengine.ConversationSystem.ConversationAction.

◆ new() [2/2]

CActionIfElse Dragengine.ConversationSystem.CActionIfElse.new ( PersistencyEnvironment  env,
FileReader  reader 
)

Read from file.

Reimplemented from Dragengine.ConversationSystem.ConversationAction.

◆ writeObjectToFile()

void Dragengine.ConversationSystem.CActionIfElse.writeObjectToFile ( PersistencyEnvironment  env,
FileWriter  writer 
)

Write object to file writer.

Implements Dragengine.LoadSave.Persistable.

Member Data Documentation

◆ pCases

Array Dragengine.ConversationSystem.CActionIfElse.pCases

◆ pElseActions

Array Dragengine.ConversationSystem.CActionIfElse.pElseActions

The documentation for this class was generated from the following file: