Drag[en]gine Script Module DragonScript Script API  1.0
CConditionVariable Class Reference
Inheritance diagram for CConditionVariable:
ConversationCondition

Classes

enum  eCompareOperators
 

Public Member Functions

bool evaluate (ConversationPlayback playback)
 
int getOperator ()
 
int getTestValue ()
 
String getVariable ()
 
CConditionVariable new ()
 
void setOperator (int operator)
 
void setTestValue (int value)
 
void setVariable (String variable)
 
- Public Member Functions inherited from ConversationCondition
bool evaluate (ConversationPlayback playback)
 
ConversationCondition new ()
 

Detailed Description

Conversation condition comparing the value of a conversation value to a given value. The default is EQUAL as operator and 0 as test value. If no variable with the given name exists the value 0 is used as the value of the variable.

Author
Roland Pl├╝ss
Version
1.0

Member Function Documentation

§ evaluate()

bool evaluate ( ConversationPlayback  playback)

Determines if the condition is true.

§ getOperator()

int getOperator ( )

Retrieves the operator.

§ getTestValue()

int getTestValue ( )

Retrieves the test value.

§ getVariable()

String getVariable ( )

Retrieves the name of the variable.

§ new()

Create a new conversation condition.

§ setOperator()

void setOperator ( int  operator)

Sets the operator.

§ setTestValue()

void setTestValue ( int  value)

Sets the test value.

§ setVariable()

void setVariable ( String  variable)

Sets the name of the variable.


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