Package marauroa.common.game
Class RPAction
java.lang.Object
marauroa.common.game.Attributes
marauroa.common.game.RPAction
- All Implemented Interfaces:
Cloneable
,Iterable<String>
,Serializable
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 Summary
-
Method Summary
Methods inherited from class marauroa.common.game.Attributes
add, applyDifferences, clearVisible, clone, equals, fill, get, getBool, getDouble, getInt, getList, getLong, getRPClass, has, hashCode, instanceOf, isEmpty, iterator, put, put, put, put, put, readFromMap, readObject, remove, resetAddedAndDeletedAttributes, setAddedAttributes, setDeletedAttributes, setRPClass, setRPClass, size, toAttributeString, toString, writeObject, writeObject, writeToJson
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
RPAction
public RPAction()Constructor -
RPAction
Constructor- Parameters:
rpclass
- rpclass
-
RPAction
Constructor- Parameters:
rpclass
- rpclass
-