Package civquest.io

Examples of civquest.io.Messages.info()


  }
   
   
  private void dumpHumidityValues() {
    Messages messages = Messages.getMessages();
    messages.info("MWFCRivGen", "MRGenRes", "Humidity-values:");
   
    for(int y = 0;y < mapdata.getArrayHeight();y++) {
      StringBuffer currLine = new StringBuffer();
      for(int x = 0;x < mapdata.getArrayWidth();x++) {
        if(mapdata.isArrayCoordOnMap(x,y)) {
View Full Code Here


          currLine.append("    ");
        }
      }

      currLine.append(y);
      messages.info("MWFCRivGen", "MRGenRes", currLine.toString());
    }
  }
   
   
  private void dumpWaterFlowValues() {
View Full Code Here

  }
   
   
  private void dumpWaterFlowValues() {
    Messages messages = Messages.getMessages();
    messages.info("MWFCRivGen", "MRGenRes", "WaterFlow:");
    for(int y = 0;y < mapdata.getArrayHeight();y++) {
      StringBuffer currLine = new StringBuffer();
      for(int x = 0;x < mapdata.getArrayWidth();x++) {
        if((mapdata.isArrayCoordOnMap(x,y))
           && (mapdata.getField(x,y).isLand())) {
View Full Code Here

          currLine.append("    ");
        }
      }

      currLine.append(" " + y);
      messages.info("MWFCRivGen", "MRGenRes", currLine.toString());
    }   
  }

  private String getThreeDigitValue(int value) {
    String retString = "";
View Full Code Here

  }

  private void loadVegetationDefinitions(Ruleset vegetationRuleset)
    throws ConfigurationException {
    Messages messages = Messages.getMessages();
    messages.info("MapData-Config", "VegConf", "==============================");
    messages.info("MapData-Config", "VegConf", "Loading vegetation definitions");
   
    Iterator<Section> sectionIterator = vegetationRuleset.getSectionIterator();
    while (sectionIterator.hasNext()) {
      Section section = sectionIterator.next();
View Full Code Here

  private void loadVegetationDefinitions(Ruleset vegetationRuleset)
    throws ConfigurationException {
    Messages messages = Messages.getMessages();
    messages.info("MapData-Config", "VegConf", "==============================");
    messages.info("MapData-Config", "VegConf", "Loading vegetation definitions");
   
    Iterator<Section> sectionIterator = vegetationRuleset.getSectionIterator();
    while (sectionIterator.hasNext()) {
      Section section = sectionIterator.next();
      String name = section.getField("Name").getStringValue();
View Full Code Here

        throw new MapDefinitionException(msg);
      } else {
        VegetationDefinition def = new VegetationDefinition(name);
        vegetationDefinitions.put(name, def);

        messages.info("MapData-Config", "VegConf", "Adding vegetation " + name);
      }
    }
    messages.info("MapData-Config", "VegConf", "==============================");   
  }
View Full Code Here

        vegetationDefinitions.put(name, def);

        messages.info("MapData-Config", "VegConf", "Adding vegetation " + name);
      }
    }
    messages.info("MapData-Config", "VegConf", "==============================");   
  }

  private void checkVegetationName(String name)
    throws ConfigurationException {
   
View Full Code Here

  private void loadResourceDefinitions(Registry resourceRegistry)
    throws ConfigurationException {

    Messages messages = Messages.getMessages();
    messages.info("MapData-Config", "ResourceConf", "==============================");
    messages.info("MapData-Config", "ResourceConf", "Loading resource definitions");   

    Ruleset defRuleset = resourceRegistry.getRuleset("definition");
    Iterator<Section> sectionIterator = defRuleset.getSectionIterator();
    while (sectionIterator.hasNext()) {
View Full Code Here

  private void loadResourceDefinitions(Registry resourceRegistry)
    throws ConfigurationException {

    Messages messages = Messages.getMessages();
    messages.info("MapData-Config", "ResourceConf", "==============================");
    messages.info("MapData-Config", "ResourceConf", "Loading resource definitions");   

    Ruleset defRuleset = resourceRegistry.getRuleset("definition");
    Iterator<Section> sectionIterator = defRuleset.getSectionIterator();
    while (sectionIterator.hasNext()) {
      Section currSection = sectionIterator.next();
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.