Package net.sf.robocode.serialization

Examples of net.sf.robocode.serialization.SerializableOptions


      if (!isReplay) {
        printResultsData(event);
      }
      if (setup.recordFilename != null) {
        recordManager.saveRecord(setup.recordFilename, BattleRecordFormat.BINARY_ZIP,
            new SerializableOptions(false));
      }
      if (setup.recordXmlFilename != null) {
        recordManager.saveRecord(setup.recordXmlFilename, BattleRecordFormat.XML, new SerializableOptions(false));
      }
    }
View Full Code Here


      if (!options.skipVersion) {
        writer.writeAttribute("ver", serialVersionUID);
      }

      writer.startElement(options.shortAttributes ? "rs" : "robots"); {
        SerializableOptions op = options;

        if (turn == 0) {
          op = new SerializableOptions(options);
          op.skipNames = false;
        }
        for (IRobotSnapshot r : robots) {
          final RobotSnapshot rs = (RobotSnapshot) r;
View Full Code Here

          name.append('-');
        }
        name.setLength(name.length() - 1);
        if (properties.getOptionsCommonAutoRecordingXML()) {
          name.append(".xml.zip");
          recordmanager.saveRecord(name.toString(), BattleRecordFormat.XML_ZIP, new SerializableOptions(true));
        } else {
          name.append(".zip.br");
          recordmanager.saveRecord(name.toString(), BattleRecordFormat.BINARY_ZIP,
              new SerializableOptions(true));
        }
      } catch (IOException e) {
        Logger.logError(e);
      }
    }
View Full Code Here

      if (lastSnapshot != null) {
        final StringWriter writer = new StringWriter();
        final XmlWriter xmlWriter = new XmlWriter(writer, true);

        try {
          ((IXmlSerializable) lastSnapshot).writeXml(xmlWriter, new SerializableOptions(false));
          writer.close();
        } catch (IOException e) {
          Logger.logError(e);
        }
        text = writer.toString();
View Full Code Here

        String path = windowManager.saveBattleDialog(battleManager.getBattlePath(), ".br", "Records");

        if (path != null) {
          try {
            robocodeFrame.setBusyPointer(true);
            recordManager.saveRecord(path, BattleRecordFormat.BINARY_ZIP, new SerializableOptions(false));
          } finally {
            robocodeFrame.setBusyPointer(false);
          }
        }
      } finally {
View Full Code Here

        String path = windowManager.saveBattleDialog(battleManager.getBattlePath(), ".br.xml", "XML Records");

        if (path != null) {
          try {
            robocodeFrame.setBusyPointer(true);
            recordManager.saveRecord(path, BattleRecordFormat.XML, new SerializableOptions(false));
          } finally {
            robocodeFrame.setBusyPointer(false);
          }
        }
      } finally {
View Full Code Here

TOP

Related Classes of net.sf.robocode.serialization.SerializableOptions

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.