/** {@inheritDoc} */ @Override protected void writeChildren(FreeColXMLWriter xw) throws XMLStreamException { super.writeChildren(xw); leftHandSide.toXML(xw, LEFT_HAND_SIDE_TAG); rightHandSide.toXML(xw, RIGHT_HAND_SIDE_TAG); }
/** {@inheritDoc} */ @Override protected void writeChildren(FreeColXMLWriter xw) throws XMLStreamException { super.writeChildren(xw); if (plunder != null) { for (RandomRange range : plunder) range.toXML(xw, PLUNDER_TAG); } if (gifts != null) { for (RandomRange range : gifts) range.toXML(xw, GIFTS_TAG); } }