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...
List of all members.
Public Member Functions |
void | SetExpression (string expression) |
| Set the assignment expression using parseable text.
|
override ActionResult | Start (Agent agent, float deltaTime) |
| ActionResult.Start.
|
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.
|
override ActionResult | Stop (Agent agent, float deltaTime) |
| ActionResult.Stop.
|
Properties |
float | MinValue [get, set] |
| Min value for the expression.
|
float | MaxValue [get, set] |
| Max value for the expression.
|
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:
-
- Returns:
Reimplemented from RAIN.Action.Action.
void RAIN.Primitives.AssignVariableAction.SetExpression |
( |
string |
expression | ) |
|
Set the assignment expression using parseable text.
- Parameters:
-
expression | The text expression to parse. See Belief.AssignmentExpressionParser. |
override ActionResult RAIN.Primitives.AssignVariableAction.Start |
( |
Agent |
agent, |
|
|
float |
deltaTime |
|
) |
| [virtual] |
override ActionResult RAIN.Primitives.AssignVariableAction.Stop |
( |
Agent |
agent, |
|
|
float |
deltaTime |
|
) |
| [virtual] |
Property Documentation
float RAIN.Primitives.AssignVariableAction.MaxValue [get, set] |
Max value for the expression.
float RAIN.Primitives.AssignVariableAction.MinValue [get, set] |
Min value for the expression.