Package civquest.city.gameChange

Examples of civquest.city.gameChange.ConstructCity


          messages.info("ConstructTestCityAction", "CityAR",
                  "You can't build more than one city on a field!");
        } else {
          Nation activeNation = Game.getGame().getActiveNation();
          if (activeNation != null) {
            ConstructCity newCityChange
              = new ConstructCity(field.getPosition(),
                        Game.getGame().getActiveNation());
            newCityChange.execute();

            SetPopulation setPopulation
              = new SetPopulation(field.getPosition(), 1000);
            setPopulation.execute();

            SetFieldRuledByCity change
              = new SetFieldRuledByCity(field.getPosition(),
                            newCityChange.getCity(),
                            false);
            change.execute();           
          } else {
            Messages.getMessages().info("ConstructTestCity", "QMapWarn",
                          "When constructing test city: "
View Full Code Here


      messages.info("CivQuest", "GUITestData",
              "addACity: No suitable place for a city found!");
      return;
    }

    ConstructCity constructCity = new ConstructCity(new Coordinate(x, y),
                            nation);
    constructCity.execute();

    SetPopulation setPopulation
      = new SetPopulation(new Coordinate(x, y), 1000);
    setPopulation.execute();

    SetFieldRuledByCity change
      = new SetFieldRuledByCity(new Coordinate(x, y),
                    constructCity.getCity(), false);
    change.execute();
  }
View Full Code Here

        if (this.scenarioEditor.getSelectedTab() == UNIT_TAB) {
            //only proceed if the unitTab is selected
            Nation nation = this.scenarioEditor.getSelectedNation();
            Coordinate coordinate = this.map.getWorkingFieldPos();
            if (coordinate != null) {
                ConstructCity newCityChange = new ConstructCity(
                        coordinate, nation);
                newCityChange.execute();
            }
        }
    }
View Full Code Here

    if (cityID != null) {
      Coordinate location = Game.getMapData().getCityPosition(cityID);
      Long cityOwner = Game.getMapData().getCityOwner(cityID);
      if (!(manager.getNationID().equals(cityOwner))) {
        constructCity = new ConstructCity(manager.getResToNation(),
                          location, cityOwner);
      }
    }
  }
View Full Code Here

TOP

Related Classes of civquest.city.gameChange.ConstructCity

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.