private void addLayer(String paramString)
  {
    if (!this.Layers.containsKey(paramString))
    {
      if (paramString.compareTo("Robot") == 0)
        addLayer("Robot Effects");
      SimpleContainer localSimpleContainer = new SimpleContainer();
      localSimpleContainer.setSize(this.MapSize.width * 50, this.MapSize.height * 50);
      Point localPoint = Position.mapToScreen(getOffset());
      localSimpleContainer.setLocation(-localPoint.x, -localPoint.y);
      this.Layers.put(paramString, localSimpleContainer);
      this.Surface.register(localSimpleContainer);

      localSimpleContainer.removeReportingComponentListener(this.Surface);
      if (paramString.compareTo("Robot") == 0)
        addLayer("Ground Effects");
    }
  }