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

Public Member Functions

bool evaluate (ConversationPlayback playback)
 
StringID getActorID ()
 
int getActorIndex ()
 
String getCommand ()
 
bool getNegate ()
 
CConditionActorCommand new ()
 
void setActorID (StringID id)
 
void setActorIndex (int index)
 
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 an actor. The command is a single text string parsed by the conversation script into an array of arguments and then send to the player action. The format of the command depends on the type of the player action the actor is using at the time of the command being send. 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.

§ getActorID()

StringID getActorID ( )

Retrieves the actor ID or null if not set.

§ getActorIndex()

int getActorIndex ( )

Retrieves the actor index or -1 if not set.

§ 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.

§ setActorID()

void setActorID ( StringID  id)

Sets the actor ID or null if not set.

§ setActorIndex()

void setActorIndex ( int  index)

Sets the actor index or -1 if not set.

§ 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: