if (initialRobotSetups != null) {
int robotIndex = statics.getRobotIndex();
if (robotIndex >= 0 && robotIndex < initialRobotSetups.length) {
RobotSetup setup = initialRobotSetups[robotIndex];
if (setup != null) {
x = setup.getX();
y = setup.getY();
bodyHeading = gunHeading = radarHeading = setup.getHeading();
updateBoundingBox();
valid = validSpot(robots);
}
}