Examples of City


Examples of ModelLayer.City

   
   
   
    private City buildCity(ResultSet results)
      {  
      City city = new City();
        
      try{

      city.setZipCode(results.getInt("ZIPCode"));
      city.setCity(results.getString("City"));
           
          }
     
          catch(Exception e)
         {
View Full Code Here

Examples of br.com.visualmidia.business.City

        String id = getId(system);
       
        State state = system.getStates().get(acronym);

        if(system.getCities().get(id) == null){
          City city = new City(id, cityName, state);
          system.getCities().put(id, city);
        }
    
        if(!isCityExistsInState(system.getCities().get(id), state)) {
          state.addCity(system.getCities().get(id));
View Full Code Here

Examples of ch.fusun.baron.city.City

    boolean newLand = false;
    Object o = propertyService.getOwnership(destination);
    if (o instanceof Dynasty) {
      Dynasty ownership = (Dynasty) o;
      if (!dynasty.equals(ownership)) {
        City city = cityService.getCity(destination);
        if (city != null) {
          Collection<City> citiesOfPlayer = getCitiesForDynasty(ownership);
          for (Tile tile : mapService.getTiles()) {
            if (ownership
                .equals(propertyService.getOwnership(tile))) {
View Full Code Here

Examples of ch.fusun.baron.city.City

  }

  private Collection<City> getCitiesForDynasty(Dynasty dynasty) {
    List<City> cities = new LinkedList<City>();
    for (Tile tile : mapService.getTiles()) {
      City city = cityService.getCity(tile);
      if (city != null) {
        if (dynasty.equals(propertyService.getOwnership(tile))) {
          cities.add(city);
        }
      }
View Full Code Here

Examples of ch.fusun.baron.city.City

  }

  @SuppressWarnings("rawtypes")
  @Override
  public Collection<TileChild> getChildren(Tile tile) {
    City city = cityService.getCity(tile);
    Collection<TileChild> children = new ArrayList<TileChild>();
    Country country = (Country) propertyService.getOwnership(tile);
    Dynasty dynasty = playerService.getDynasty((Player) propertyService
        .getOwnership(country));
    if (city != null) {
View Full Code Here

Examples of ch.fusun.baron.city.City

  }

  @SuppressWarnings("rawtypes")
  @Override
  public Collection<TileChild> getChildren(Tile model) {
    City city = cityService.getCity(model);
    Collection<TileChild> children = new ArrayList<TileChild>();
    if (city != null) {
      children.add(new CityTileChild(city));
    }
    return children;
View Full Code Here

Examples of ch.fusun.baron.city.City

  }

  private Collection<City> getCitiesForCountry(Country country) {
    List<City> cities = new LinkedList<City>();
    for (Tile tile : mapService.getTiles()) {
      City city = cityService.getCity(tile);
      if (city != null) {
        if (country.equals(propertyService.getOwnership(tile))) {
          cities.add(city);
        }
      }
View Full Code Here

Examples of civquest.city.City

        Field field = this.map.getWorkingField();
        Iterator<Unit> unitsIt = field.getUnitIterator();
        for (;unitsIt.hasNext();) {
            mapObjects.add(unitsIt.next());
        }
        City city = field.getCityOnField();
        if (city != null) {
            mapObjects.add(city);
        }

        if (mapObjects.size() == 1) {
View Full Code Here

Examples of civquest.city.City

  public ResourceAutomation() throws GameChangeException {
    setUpListenerRelationships();
   
    Iterator<City> cityIterator = Game.getMapData().getCityIterator();
    while (cityIterator.hasNext()) {
      City currCity = cityIterator.next();
      initSeqDistributorForCity(currCity);
    }
  }
View Full Code Here

Examples of civquest.city.City

  // Alter sources/consumers of distributions using gamechanges!

  public void calculateConsumers(Nation nation) {
    Iterator<City> cityIterator = nation.getCityIterator();
    while (cityIterator.hasNext()) {
      City city = cityIterator.next();
      cityToDistributor.get(city).calculate();
    }
  }
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.