Drag[en]gine Script Module DragonScript 1.24
Loading...
Searching...
No Matches
Dragengine.ConversationSystem.CActionIfElse Class Reference

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

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

Classes

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

Public Member Functions

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

Public Attributes

Array pCases
 
Array pElseActions
 
- Public Attributes inherited from Dragengine.ConversationSystem.ConversationAction
float pDelay
 
bool pWaitForActor
 
String pWaitForActorID
 

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.

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: