Public Member Functions
RAIN.Primitives.AssignVariableAction Class Reference

AssignVariableAction is a primitive action used to execute an AssignmentExpression. A min and max value can be set to limit the range of the variable assigned to. More...

Inheritance diagram for RAIN.Primitives.AssignVariableAction:
RAIN.Action.Action

List of all members.

Public Member Functions

void SetExpression (string expression)
 Set the assignment expression using parseable text.
override ActionResult Execute (Agent agent, float deltaTime)
 ActionResult.Execute Causes the AssignmentExpression to be evaluated and the variable to be updated and set into the current actionContext.

Detailed Description

AssignVariableAction is a primitive action used to execute an AssignmentExpression. A min and max value can be set to limit the range of the variable assigned to.


Member Function Documentation

override ActionResult RAIN.Primitives.AssignVariableAction.Execute ( Agent  agent,
float  deltaTime 
) [virtual]

ActionResult.Execute Causes the AssignmentExpression to be evaluated and the variable to be updated and set into the current actionContext.

Parameters:
agent
deltaTime
Returns:

Reimplemented from RAIN.Action.Action.

Set the assignment expression using parseable text.

Parameters:
expressionThe text expression to parse. See Representation.ExpressionParser.