|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--de.uni_paderborn.robots.robotArenaInterface.proxy.ProxyCodes
This class provides methods for encoding and decoding actions, cards, and fields.
Proxy,
ProxyFactory,
RobotFunctions| Field Summary | |
static byte |
ACTION_EXCHANGE
Represents the action ExchangeAction. |
static byte |
ACTION_MOVE
Represents the action MoveAction. |
static byte |
ACTION_NO
Represents the action NoAction. |
static byte |
ACTION_NONE
Represents the action null. |
static byte |
ACTION_PICK_UP
Represents the action PickUpAction. |
static byte |
ACTION_PUT
Represents the action PutAction. |
static byte |
ACTION_ROTATE
Represents the action RotateAction. |
static byte |
FIELD_EXIT
Represents the field Exit. |
static byte |
FIELD_NONE
Represents the field null. |
static byte |
FIELD_RECHARGER
Represents the field Recharger. |
static byte |
FIELD_VIRTUAL_ROBOT
Represents the field VirtualRobot. |
static byte |
FIELD_WALL
Represents the field Wall. |
static byte |
FIELD_WORMHOLE
Represents the field Wormhole. |
| Constructor Summary | |
ProxyCodes()
|
|
| Method Summary | |
static AbstractRobotAction |
decodeAction(byte action,
int parameter)
Decodes a robot action. |
static CardData |
decodeCard(byte card)
Decodes a card. |
static ItemData |
decodeField(byte field,
int parameter)
Decodes a field. |
static byte |
encodeAction(AbstractRobotAction action)
Encodes a robot action. |
static int |
encodeActionParameter(AbstractRobotAction action)
Encodes the parameter (it is exists) of a robot action. |
static byte |
encodeCard(CardData card)
Encodes a card. |
static byte |
encodeField(ItemData field)
Encodes a field. |
static int |
encodeFieldParameter(ItemData field)
Encodes the parameter (it is exists) of a field. |
| Methods inherited from class java.lang.Object |
|
| Field Detail |
public static final byte ACTION_NONE
null.public static final byte ACTION_NO
NoAction.public static final byte ACTION_MOVE
MoveAction.public static final byte ACTION_ROTATE
RotateAction.public static final byte ACTION_PICK_UP
PickUpAction.public static final byte ACTION_PUT
PutAction.public static final byte ACTION_EXCHANGE
ExchangeAction.public static final byte FIELD_NONE
null.public static final byte FIELD_WALL
Wall.public static final byte FIELD_RECHARGER
Recharger.public static final byte FIELD_WORMHOLE
Wormhole.public static final byte FIELD_VIRTUAL_ROBOT
VirtualRobot.public static final byte FIELD_EXIT
Exit.| Constructor Detail |
public ProxyCodes()
| Method Detail |
public static byte encodeAction(AbstractRobotAction action)
action - the action to encodepublic static int encodeActionParameter(AbstractRobotAction action)
action - the action which the parameter to encode of
public static AbstractRobotAction decodeAction(byte action,
int parameter)
action - the represenation of the actionparameter - the parameter of the actionpublic static byte encodeCard(CardData card)
card - the card to encodepublic static CardData decodeCard(byte card)
card - the represenation of the cardpublic static byte encodeField(ItemData field)
field - the field to encodepublic static int encodeFieldParameter(ItemData field)
field - the field which the parameter to encode of
public static ItemData decodeField(byte field,
int parameter)
field - the represenation of the fieldparameter - the parameter of the field
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||