示例#1
0
  /**
   * Removes all references to this object.
   *
   * @return A list of disposed objects.
   */
  public List<FreeColGameObject> disposeList() {
    List<FreeColGameObject> objects = new ArrayList<FreeColGameObject>();
    if (goodsContainer != null) {
      objects.addAll(goodsContainer.disposeList());
      goodsContainer = null;
    }
    objects.addAll(super.disposeList());

    return objects;
  }