Ejemplo n.º 1
0
 /// <summary>
 /// Updates the custom action.
 /// </summary>
 /// <param name="customAction">Custom action.</param>
 public void UpdateCustomAction(CommunicatorObjects.CustomAction customAction)
 {
     action.customAction = customAction;
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Specifies the agent behavior at every step based on the provided
 /// action.
 /// </summary>
 /// <param name="vectorAction">
 /// Vector action. Note that for discrete actions, the provided array
 /// will be of length 1.
 /// </param>
 /// <param name="textAction">Text action.</param>
 /// <param name="customAction">
 /// A custom action, defined by the user as custom protobuffer message. Useful if the action is hard to encode
 /// as either a flat vector or a single string.
 /// </param>
 public virtual void AgentAction(float[] vectorAction, string textAction, CommunicatorObjects.CustomAction customAction)
 {
     // We fall back to not using the custom action if the subclassed Agent doesn't override this method.
     AgentAction(vectorAction, textAction);
 }