Package civquest.io

Examples of civquest.io.Messages.info()


              "    --> ignoreprobability = " + ringrc_ignoreprobability);
      messages.info("MWFCRivGen", "MRGenConf",
              "    --> flowvalue-table:");
      for(int from = 0;from < 4;from++)
        for(int to = 0;to < 5;to++)
          messages.info("MWFCRivGen", "MRGenConf",
                  "        --> " + getHeightString(from) + " -> "
                  + getHeightString(to) +
                  " has flowvalue " + ringrc_flowvalues[from][to]);
    }
  }
View Full Code Here


      }
    }

    if (!mapData.isArrayCoordOnMap(x, y)) {
      Messages messages = Messages.getMessages();
      messages.info("CivQuest", "GUITestData",
              "addACity: No suitable place for a city found!");
      return;
    }

    ConstructCity constructCity = new ConstructCity(new Coordinate(x, y),
View Full Code Here

    Messages messages = Messages.getMessages();
    Set<Long> attIDs = IDManager.getIDs(attackings);
    Long owner = getOwner(gameData, attIDs);

    if (attackings.size() == 0) {
      messages.info("CombatCalculator", "CombatCalc",
              "No Attackings given, so no attack possible!");
      return false;
    } else if (target == null) {
      messages.info("CombatCalculator", "CombatCalc",
              "Target field is null [maybe there is no wf?]");
View Full Code Here

    if (attackings.size() == 0) {
      messages.info("CombatCalculator", "CombatCalc",
              "No Attackings given, so no attack possible!");
      return false;
    } else if (target == null) {
      messages.info("CombatCalculator", "CombatCalc",
              "Target field is null [maybe there is no wf?]");
      return false;
    } else if (!(containsForeignTargets(gameData, owner, target))) {
      messages.info("CombatCalculator", "CombatCalc",
              "No foreign targets on the target field.  "
View Full Code Here

    } else if (target == null) {
      messages.info("CombatCalculator", "CombatCalc",
              "Target field is null [maybe there is no wf?]");
      return false;
    } else if (!(containsForeignTargets(gameData, owner, target))) {
      messages.info("CombatCalculator", "CombatCalc",
              "No foreign targets on the target field.  "
              + "For a neighbor-attack, we need some!");
      return false;
    } else if (!(areOnOneNeighborField(attackings, target))) {
      messages.info("CombatCalculator", "CombatCalc",
View Full Code Here

      messages.info("CombatCalculator", "CombatCalc",
              "No foreign targets on the target field.  "
              + "For a neighbor-attack, we need some!");
      return false;
    } else if (!(areOnOneNeighborField(attackings, target))) {
      messages.info("CombatCalculator", "CombatCalc",
              "Attackings are not located on the same neighbor field"
              + " of the target field!  No neighbor attack possible!");
      return false;
    } else {
      messages.info("CombatCalculator", "CombatCalc",
View Full Code Here

      messages.info("CombatCalculator", "CombatCalc",
              "Attackings are not located on the same neighbor field"
              + " of the target field!  No neighbor attack possible!");
      return false;
    } else {
      messages.info("CombatCalculator", "CombatCalc",
              "No problem, we can neighbor attack.");
      return true;
    }
  }
View Full Code Here

        ActionListener scrollListener = new ActionListener() {
                public void actionPerformed(ActionEvent event) {
          Messages messages = Messages.getMessages();

          messages.info("QuadMap", "QMapScr",
                  "Scrolling: " + scrollDirection + " pos: "
                  + getShowPosition());       

                    int stepSize;
                    if (config.scrollCorrectBiggerIntervals) {
View Full Code Here

                    if (config.scrollCorrectBiggerIntervals) {
                        long currentTime = System.currentTimeMillis();     
                        stepSize = (int)(((float)(currentTime - lastTimeScrolled)
                                          / (float)(config.scrollInterval)) * (float)config.scrollStepSize);
     
            messages.info("QuadMap", "QMapScr",
                    "--> stepSize = " + stepSize + " diff: "
                    + (currentTime - lastTimeScrolled) + " config: "
                    + config.scrollInterval);
     
                        lastTimeScrolled = currentTime;
View Full Code Here

      int temps[] = temperatures(polTemp, eqTemp, bands);
    String tempString = "";
      for (int i = 0; i<temps.length; i++)
      tempString = tempString + temps[i] + " ";

    messages.info("ClimateGenerator", "CVGenTemp", tempString);
    messages.info("ClimateGenerator", "CVGenTemp", "CVGenState", "Temperatures created");
      for (int i = 0; i<bands; i++)
      setTemps(i*(mapheight/2)/bands,mapheight-i*(mapheight/2)/bands,temps[i]);
    messages.info("ClimateGenerator", "CVGenTemp", "CVGenState", "Temperatures set");

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.