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

Conversation condition checking if actor is present in conversation. More...

Inheritance diagram for Dragengine.ConversationSystem.CConditionHasActor:
Dragengine.ConversationSystem.ConversationCondition Dragengine.LoadSave.Persistable

Classes

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

Public Member Functions

bool evaluate (ConversationPlayback playback)
 Condition is true.
StringID getActorID ()
 ID of the actor to check.
bool getNegate ()
 Result of the condition is negated.
CConditionHasActor new ()
 Create conversation condition.
CConditionHasActor new (PersistencyEnvironment env, FileReader reader)
 Read from file.
String persistencyFactoryName ()
 Name of PersistencyFactory required to load object from file.
void setActorID (StringID id)
 Set actor ID.
void setNegate (bool negate)
 Set if result of the condition is negated.
void writeObjectToFile (PersistencyEnvironment env, FileWriter writer)
 Write object to file writer.

Public Attributes

StringID pActorID
bool pNegate

Detailed Description

Conversation condition checking if actor is present in conversation.

Member Function Documentation

◆ evaluate()

bool Dragengine.ConversationSystem.CConditionHasActor.evaluate ( ConversationPlayback playback)

Condition is true.

Reimplemented from Dragengine.ConversationSystem.ConversationCondition.

References getActorID(), new(), pActorID, and setActorID().

Referenced by writeObjectToFile().

◆ getActorID()

StringID Dragengine.ConversationSystem.CConditionHasActor.getActorID ( )

ID of the actor to check.

References new().

Referenced by evaluate().

◆ getNegate()

bool Dragengine.ConversationSystem.CConditionHasActor.getNegate ( )

Result of the condition is negated.

References pNegate.

Referenced by persistencyFactoryName().

◆ new() [1/2]

CConditionHasActor Dragengine.ConversationSystem.CConditionHasActor.new ( )

Create conversation condition.

Reimplemented from Dragengine.ConversationSystem.ConversationCondition.

References pNegate.

Referenced by evaluate(), getActorID(), new(), and setNegate().

◆ new() [2/2]

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

Read from file.

References new(), and pNegate.

◆ persistencyFactoryName()

String Dragengine.ConversationSystem.CConditionHasActor.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 getNegate().

Referenced by writeObjectToFile().

◆ setActorID()

void Dragengine.ConversationSystem.CConditionHasActor.setActorID ( StringID id)

Set actor ID.

References pActorID.

Referenced by evaluate().

◆ setNegate()

void Dragengine.ConversationSystem.CConditionHasActor.setNegate ( bool negate)

Set if result of the condition is negated.

References new().

Referenced by writeObjectToFile().

◆ writeObjectToFile()

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

Write object to file writer.

Implements Dragengine.LoadSave.Persistable.

References evaluate(), persistencyFactoryName(), pNegate, setNegate(), and writeObjectToFile().

Referenced by writeObjectToFile().

Member Data Documentation

◆ pActorID

StringID Dragengine.ConversationSystem.CConditionHasActor.pActorID

Referenced by evaluate(), and setActorID().

◆ pNegate

bool Dragengine.ConversationSystem.CConditionHasActor.pNegate

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


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