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

Public Member Functions

bool evaluate (ConversationPlayback playback)
 
String getCommand ()
 
bool getNegate ()
 
CConditionGameCommand new ()
 
void setCommand (String command)
 
void setNegate (bool negate)
 
- Public Member Functions inherited from ConversationCondition
bool evaluate (ConversationPlayback playback)
 
ConversationCondition new ()
 

Detailed Description

Conversation condition using the value returned by a command send to the game. The command is a single text string parsed by the conversation script into an array of arguments and then send to the conversation playback. The format of the command depends on the game. The command returns a boolean value use directly as condition result.

Author
Roland Pl├╝ss
Version
1.0

Member Function Documentation

§ evaluate()

bool evaluate ( ConversationPlayback  playback)

Determines if the condition is true.

§ getCommand()

String getCommand ( )

Retrieves the command to send.

§ getNegate()

bool getNegate ( )

Determines if the result of the condition is negated.

§ new()

Create a new conversation action.

§ setCommand()

void setCommand ( String  command)

Sets the command to send.

§ setNegate()

void setNegate ( bool  negate)

Sets if the result of the condition is negated.


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