protected void retrieveRobot(Robot paramRobot)
  {
    this.BayOccupied = true;
    this.RobotOnRamp = paramRobot;
    this.RampUp = true;
    this.RCXName.setText(paramRobot.getName());

    this.PartsList.setContents(null);

    this.state.removeRobot(paramRobot);

    this.WeightGauge.setMax(paramRobot.getChassis().getWeightCapacity());
    this.WeightGauge.setValue(currentRobotWeight());
    try
    {
      Class localClass1 = Class.forName("com.templar.games.stormrunner.sensor.Sensor");
      Class localClass2 = Class.forName("com.templar.games.stormrunner.chassis.Chassis");
      Class localClass3 = Class.forName("com.templar.games.stormrunner.assembly.Assembly");

      RobotPart[] arrayOfRobotPart = paramRobot.getRobotParts();
      for (int i = 0; i < arrayOfRobotPart.length; i++)
      {
        RobotPart localRobotPart = arrayOfRobotPart[i];
        if (localClass1.isInstance(localRobotPart))
        {
          this.SensorList[this.SensorSlots] = localRobotPart;
          this.SensorSlots += 1;
          this.bay.setSensorImage(this.SensorSlots, localRobotPart.getID());
        }
        else if (localClass2.isInstance(localRobotPart))
        {
          this.bay.setChassisImages(localRobotPart.getID() + "Front", localRobotPart.getID() + "Rear");
        } else {
          if (!localClass3.isInstance(localRobotPart))
            continue;
          Assembly localAssembly = (Assembly)localRobotPart;
          if (localAssembly.getPlacement() == 1)
          {
            this.bay.setRearAssemblyImage(localAssembly.getID());
            this.RearAssembly = localAssembly;
          }
          else if (localAssembly.getPlacement() == 4)
          {
            this.bay.setTopAssemblyImage(localAssembly.getID());
            this.TopAssembly = localAssembly;
          } else {
            if (localAssembly.getPlacement() != 2)
              continue;
            this.bay.setFrontAssemblyImage(localAssembly.getID());
            this.FrontAssembly = localAssembly;
          }
        }
      }

      this.Retrieving = false;

      this.SequenceComplete = false;

      this.bay.start("RaiseRCX", this);

      return;
    }
    catch (ClassNotFoundException localClassNotFoundException)
    {
      localClassNotFoundException.printStackTrace();
    }
  }