Package ch.fusun.baron.city

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


  }

  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

  }

  @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

  }

  @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

  }

  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

TOP

Related Classes of ch.fusun.baron.city.City

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.