Class RPAction

java.lang.Object
marauroa.common.game.Attributes
marauroa.common.game.RPAction
All Implemented Interfaces:
Cloneable, Iterable<String>, Serializable

public class RPAction extends Attributes
This class represent an Action.

To express the willingness of a client to do something it must send the server a MessageC2SAction message.
An action is composed of several attributes. (an attribute is similar to a variable in that it has a name and contains a value).
There are optional and mandatory attributes. If a mandatory attribute is not found, the message is skipped by the RPServerManager.

Mandatory Action Attributes are action_id and type.
The action_id is used to identify the action when a resulting response comes in a perception

  • Constructor Details

    • RPAction

      public RPAction()
      Constructor
    • RPAction

      public RPAction(String rpclass)
      Constructor
      Parameters:
      rpclass - rpclass
    • RPAction

      public RPAction(RPClass rpclass)
      Constructor
      Parameters:
      rpclass - rpclass