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

Conversation action setting a conversation variable. More...

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

Classes

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

Public Member Functions

void execute (ConversationPlayback playback)
 Execute action.
String getName ()
 Name of the variable to set.
Operator getOperator ()
 Operator.
int getValue ()
 Value to use for operation.
String getValueVariable ()
 Variable to get value from to use for operation or null to use value.
CActionSetVariable new ()
 Create conversation action.
CActionSetVariable new (PersistencyEnvironment env, FileReader reader)
 Read from file.
String persistencyFactoryName ()
 Name of PersistencyFactory required to load object from file.
void setName (String name)
 Set name of the variable to set.
void setOperator (Operator operator)
 Set operator.
void setValue (int value)
 Set value to use for operation.
void setValueVariable (String variable)
 Set variable to get value from to use for operation or null to use value.
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

String pName
Operator pOperator
int pValue
String pValueVariable
Public Attributes inherited from Dragengine.ConversationSystem.ConversationAction
float pDelay
bool pWaitForActor
String pWaitForActorID

Detailed Description

Conversation action setting a conversation variable.

Member Function Documentation

◆ execute()

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

Execute action.

Reimplemented from Dragengine.ConversationSystem.ConversationAction.

References getOperator(), getValue(), pOperator, and setOperator().

Referenced by writeObjectToFile().

◆ getName()

String Dragengine.ConversationSystem.CActionSetVariable.getName ( )

Name of the variable to set.

Referenced by getValueVariable().

◆ getOperator()

Operator Dragengine.ConversationSystem.CActionSetVariable.getOperator ( )

Operator.

References pName, pOperator, and pValue.

Referenced by execute().

◆ getValue()

int Dragengine.ConversationSystem.CActionSetVariable.getValue ( )

Value to use for operation.

References new().

Referenced by execute().

◆ getValueVariable()

String Dragengine.ConversationSystem.CActionSetVariable.getValueVariable ( )

Variable to get value from to use for operation or null to use value.

References getName(), and pName.

Referenced by writeObjectToFile().

◆ new() [1/2]

CActionSetVariable Dragengine.ConversationSystem.CActionSetVariable.new ( )

Create conversation action.

Reimplemented from Dragengine.ConversationSystem.ConversationAction.

References pValueVariable.

Referenced by getValue(), new(), and setName().

◆ new() [2/2]

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

Read from file.

Reimplemented from Dragengine.ConversationSystem.ConversationAction.

References new(), pOperator, and pValue.

◆ persistencyFactoryName()

String Dragengine.ConversationSystem.CActionSetVariable.persistencyFactoryName ( )

Name of PersistencyFactory required to load object from file.

Name of PersistencyFactory is first written to the file as string with 8-bit length. Then writeToFile() is called to write the object itself. Empty name is not allowed as is names longer than 255 characters. Name has to match a PersistencyFactory present in the Persistency instance used for loading objects. Object is read using PersistencyFactory.readObjectFromFile() of the matching PersistencyFactory.

Implements Dragengine.LoadSave.Persistable.

References pValue.

Referenced by writeObjectToFile().

◆ setName()

void Dragengine.ConversationSystem.CActionSetVariable.setName ( String name)

Set name of the variable to set.

References new().

Referenced by setValueVariable().

◆ setOperator()

void Dragengine.ConversationSystem.CActionSetVariable.setOperator ( Operator operator)

Set operator.

References pValueVariable.

Referenced by execute().

◆ setValue()

void Dragengine.ConversationSystem.CActionSetVariable.setValue ( int value)

Set value to use for operation.

Referenced by writeObjectToFile().

◆ setValueVariable()

void Dragengine.ConversationSystem.CActionSetVariable.setValueVariable ( String variable)

Set variable to get value from to use for operation or null to use value.

References pName, and setName().

Referenced by writeObjectToFile().

◆ writeObjectToFile()

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

Member Data Documentation

◆ pName

String Dragengine.ConversationSystem.CActionSetVariable.pName

◆ pOperator

Operator Dragengine.ConversationSystem.CActionSetVariable.pOperator

◆ pValue

int Dragengine.ConversationSystem.CActionSetVariable.pValue

◆ pValueVariable

String Dragengine.ConversationSystem.CActionSetVariable.pValueVariable

Referenced by new(), setOperator(), and writeObjectToFile().


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