public void removeObject(PhysicalObject paramPhysicalObject)
  {
    Vector localVector;
    int i;
    if (this.Loopers.contains(paramPhysicalObject))
    {
      localVector = paramPhysicalObject.getLoopList();

      for (i = 0; i < localVector.size(); i++)
      {
        String str = (String)localVector.elementAt(i);
        GameApplet.audio.stop(str, paramPhysicalObject);
      }

      this.Loopers.removeElement(paramPhysicalObject);
      localVector.removeAllElements();
      this.CurrentlyLooping.removeElement(paramPhysicalObject);
    }

    if (this.Players.contains(paramPhysicalObject))
    {
      localVector = paramPhysicalObject.getPlayList();

      for (i = 0; i < localVector.size(); i++)
      {
        GameApplet.audio.stop((String)localVector.elementAt(i), paramPhysicalObject);
      }

      localVector.removeAllElements();
      this.Players.removeElement(paramPhysicalObject);
    }

    ((SimpleContainer)this.Layers.get(paramPhysicalObject.getLayer())).remove(paramPhysicalObject);
    this.VisibleObjects.removeElement(paramPhysicalObject);

    paramPhysicalObject.setRenderer(null);
  }