Public Member Functions | Public Attributes
RAIN.Primitives.DebugAction Class Reference

DebugAction is a primitive that is used to post a single debug message to the Unity log. More...

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

List of all members.

Public Member Functions

override ActionResult Execute (Agent agent, float deltaTime)
 ActionResult.Execute Causes the agent to GainInterestIn() the aspect and then attempt to Sense it. If an object with the given aspect is sensed it is assigned to the assignTo variable in the actionContext.

Public Attributes

ActionResult returnValue = ActionResult.SUCCESS
 Allow users to set the return value of a debug so it operates how they want depending on the container.
string debugMessage
 debugMessage is the message we want sent to the log

Detailed Description

DebugAction is a primitive that is used to post a single debug message to the Unity log.


Member Function Documentation

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

ActionResult.Execute Causes the agent to GainInterestIn() the aspect and then attempt to Sense it. If an object with the given aspect is sensed it is assigned to the assignTo variable in the actionContext.

Parameters:
agent
deltaTime
Returns:
RUNNING if the aspect is not detected, SUCCESS if the aspect is detected and assigned

Reimplemented from RAIN.Action.Action.


Member Data Documentation

debugMessage is the message we want sent to the log

Allow users to set the return value of a debug so it operates how they want depending on the container.