ask the robot if it wants to exchange a card
parameter "cards" :
actual hand of robot
return values :
null
robot does not want to exchange
Reference to CardData Object
robot wants to offer this card
If the robot does not own the returned
card the robot is disqualified.
Exit - class de.uni_paderborn.robots.robotArenaInterface.Exit.
This class represents an exit.
Exit() -
Constructor for class de.uni_paderborn.robots.robotArenaInterface.Exit
F
FieldData - class de.uni_paderborn.robots.robotArenaInterface.FieldData.
This class contains the data for a field and can have up to one reference to an ItemData Object.
returns a number between 0 and 5
0 = robot wants to drain energy
1 = robot wants to rotate 60° clockwise ( 1xright )
2 = robot wants to rotate 120° clockwise ( 2xright )
3 = robot wants to rotate 180° clockwise ( u-turn )
4 = robot wants to rotate 240° clockwise ( 2xleft )
5 = robot wants to rotate 300° clockwise ( 1xleft )
getFieldID() -
Method in class de.uni_paderborn.robots.robotArenaInterface.FieldData
returns the ID of the field
getFront() -
Method in class de.uni_paderborn.robots.robotArenaInterface.RobotData
returns a FieldData reference of field in front of the robot
getHand() -
Method in class de.uni_paderborn.robots.robotArenaInterface.RobotData
returns the current hand of the robot
The return value can be null or a reference to an array with 1 to 5 elements, containing no array elements equal to null.
getValue() -
Method in class de.uni_paderborn.robots.robotArenaInterface.CardData
returns a value between 2 and 14 :
constant value
TWO = 2 (german: Zwei)
THREE = 3 (german: Drei)
FOUR = 4 (german: Vier)
FIVE = 5 (german: Fünf)
SIX = 6 (german: Sechs)
SEVEN = 7 (german: Sieben)
EIGHT = 8 (german: Acht)
NINE = 9 (german: Neun)
TEN = 10 (german: Zehn)
JACK = 11 (german: Bube)
LADY = 12 (german: Dame)
KING = 13 (german: König)
ACE = 14 (german: As)
H
HEART -
Static variable in interface de.uni_paderborn.robots.robotArenaInterface.CardConstants
I
ItemData - class de.uni_paderborn.robots.robotArenaInterface.ItemData.
This is the abstract superclass of all items
that can be on a field of a arena.
ItemData() -
Constructor for class de.uni_paderborn.robots.robotArenaInterface.ItemData
J
JACK -
Static variable in interface de.uni_paderborn.robots.robotArenaInterface.CardConstants
K
KING -
Static variable in interface de.uni_paderborn.robots.robotArenaInterface.CardConstants
L
LADY -
Static variable in interface de.uni_paderborn.robots.robotArenaInterface.CardConstants
Recharger - class de.uni_paderborn.robots.robotArenaInterface.Recharger.
This class represents a recharger.
Recharger() -
Constructor for class de.uni_paderborn.robots.robotArenaInterface.Recharger
RobotData - class de.uni_paderborn.robots.robotArenaInterface.RobotData.
This container class is the only parameter for getCommand and contains sight of the robot ( in robot, left, front, right ), the cards on the hand of the robot ( hand ) and the current energy of the robot.
RobotData() -
Constructor for class de.uni_paderborn.robots.robotArenaInterface.RobotData
This interface must be implemented
in the robot class of each group
in order to provide a unified interface
to the arena.
version 2.0 ( by Interface group )
( history at end of file )
the parameter "direction" of RotateAction allows
the complete range of "int" ( WARNING : 0 and multiples of 6 cause
the arena to decrease the energy of the robot without changing the direction )
sane examples :
-8 = rotate 120° counter clockwise ( to the left )
-5 = rotate 300° counter clockwise ( to the left )
-3 = rotate 180° counter clockwise ( to the left )
-2 = rotate 120° counter clockwise ( to the left )
-1 = rotate 60° counter clockwise ( to the left )
1 = rotate 60° clockwise ( to the right )
3 = rotate 180° clockwise ( to the right )
4 = rotate 240° clockwise ( to the right )
7 = rotate 60° clockwise ( to the right )
ROYAL_FLUSH -
Static variable in interface de.uni_paderborn.robots.robotArenaInterface.CardConstants
used to give the robot his current hand of cards
The parameter "cards" can be null or a reference to an array with 1 to 5 elements which contains no array elements equal to null.