Package civquest.io

Examples of civquest.io.Persistent


  }

  private DataToSave constructDataToSave() {
    DataToSave data = new DataToSave();

    Persistent game = Game.getGame();
      data.put("game", game);
    return data;
  }
View Full Code Here


    public void writeElement(String key, Object value)
      throws IOException, SaveGameException {
     
      assert isResponsible(value);

      Persistent persistent = (Persistent)value;
     
      write("<" + Defs.getPersistentCode() + Defs.getSeparator() + key);
      changeIndentLevel(1);
     
      DataToSave subData = persistent.getPersistentData();
      if (subData != null) {
        writeMap(subData);
      } else {
        throw new SaveGameException("Error: Persistent " + persistent + " returns "
                      + "null instead of a data-map!");
View Full Code Here

TOP

Related Classes of civquest.io.Persistent

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.