Drag[en]gine Script Module DragonScript 1.35
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 Dragengine.LoadSave.Persistable

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.
Array getElseActions ()
 Else actions as Array of ConversationAction.
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 Member Functions inherited from Dragengine.LoadSave.Persistable
String persistencyFactoryName ()
 Name of PersistencyFactory required to load object from file.

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.

References new(), and pCases.

Referenced by writeObjectToFile().

◆ addElseAction()

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

Add else action.

References new(), and pElseActions.

Referenced by writeObjectToFile().

◆ execute()

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

Execute action.

Reimplemented from Dragengine.ConversationSystem.ConversationAction.

Referenced by writeObjectToFile().

◆ forEachCase()

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

Visits all if-cases.

Referenced by writeObjectToFile().

◆ forEachElseAction()

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

Visit all else actions.

References pCases.

Referenced by writeObjectToFile().

◆ getElseActions()

Array Dragengine.ConversationSystem.CActionIfElse.getElseActions ( )

Else actions as Array of ConversationAction.

References pElseActions.

Referenced by writeObjectToFile().

◆ getIteratorElseActions()

ConversationActionIterator Dragengine.ConversationSystem.CActionIfElse.getIteratorElseActions ( )

Else actions iterator.

References new().

Referenced by writeObjectToFile().

◆ new() [1/2]

CActionIfElse Dragengine.ConversationSystem.CActionIfElse.new ( )

Create conversation action.

Reimplemented from Dragengine.ConversationSystem.ConversationAction.

References pElseActions.

Referenced by addCase(), addElseAction(), getIteratorElseActions(), new(), and writeObjectToFile().

◆ new() [2/2]

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

Read from file.

Reimplemented from Dragengine.ConversationSystem.ConversationAction.

References new(), pCases, and pElseActions.

◆ writeObjectToFile()

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: