public class Robot { public static final int RADIUS = 5; public static final int TURN_ANGLE = 15; int x, y; // location of the robot at any time float direction; // direction of the robot at any time float speed; // the robot’s speed Beacon beacon; // the beacon to head towards public Robot(int rx, int ry) { x = rx; y = ry; direction = (float)(Math.random()*Math.PI*2); // a random direction speed = 3 + (float)(Math.random()*4); // a random speed from 3 to 6 beacon = null; // not set yet } }