checkNewMoves();
}
public XmlNode toXml() {
XmlNode node = new XmlNode(XML_NODE_NAME);
if (_name != null) {
node.setAttribute("name", _name);
}
node.setAttribute("number", _number);
node.setAttribute("level", _level);
node.setAttribute("xp", _xp);
node.setAttribute("ot", _ot);
node.setAttribute("has_original_trainer", _hasOriginalTrainer);
XmlNode conditionNode = new XmlNode("condition");
conditionNode.setValue(conditionEffects.toString());
node.addChild(conditionNode);
node.addChild(_stats.toXml());
node.addChild(_moves.toXml());