示例#1
0
文件: Wish.java 项目: vardars/FreeCol
  /** {@inheritDoc} */
  @Override
  protected void readAttributes(FreeColXMLReader xr) throws XMLStreamException {
    super.readAttributes(xr);

    final AIMain aiMain = getAIMain();

    destination = xr.getLocationAttribute(aiMain.getGame(), DESTINATION_TAG, false);

    // Delegate transportable one level down
  }
  /** {@inheritDoc} */
  @Override
  protected void readAttributes(FreeColXMLReader xr) throws XMLStreamException {
    super.readAttributes(xr);

    target = xr.getLocationAttribute(getGame(), TARGET_TAG, false);
  }