Package civquest.city.gameChange

Examples of civquest.city.gameChange.RemoveCity


            .getRestrictedToNation();
        Iterator<MapObject> moit = mapObjects.iterator();
        for (;moit.hasNext();) {
            MapObject mapObject = moit.next();
            if (mapObject instanceof City) {
                RemoveCity remove = new RemoveCity(resToNation,
                        mapObject.getID());
                remove.execute();
            } else if (mapObject instanceof Unit) {
                RemoveUnit remove = new RemoveUnit(resToNation,
                        mapObject.getID());
                remove.execute();
            }
        }
        qMap.getFieldView(Game.getGame(), coordinate).dataChanged();
    }
View Full Code Here


      if (fieldInfo.getCityID() != null
        && Game.getMapData().getCityID(coord) == null) {
        // and there is a city in the field-info, but no longer on
        // the real map

        removeCity = new RemoveCity(manager.getResToNation(),
                      fieldInfo.getCityID());
      }
      // CAUTION: Case city still there, but with different id not yet
      // implemented!
    }
View Full Code Here

  private void constructRemoveCity() {
    Long cityID = Game.getMapData().getCityID(coord);
    if (cityID != null
      && !(manager.getNationID().equals(Game.getMapData().getCityOwner(cityID)))) {
      removeCity = new RemoveCity(manager.getResToNation(), cityID);
    }
  }
View Full Code Here

        Iterator<MapObject> moit = mapObjects.iterator();
        for (;moit.hasNext();) {
            MapObject mapObject = moit.next();
            if (mapObject instanceof City) {
                RemoveCity remove = new RemoveCity(this.map.getGameData().getRestrictedToNation(), mapObject.getID());
                remove.execute();
            } else if (mapObject instanceof Unit) {
                RemoveUnit remove = new RemoveUnit(this.map.getGameData().getRestrictedToNation(), mapObject.getID());
                remove.execute();
            }
        }
        notifyAfter();
        try {
            ((QuadMap) this.map).getFieldView(Game.getGame(), field.getPosition())
View Full Code Here

TOP

Related Classes of civquest.city.gameChange.RemoveCity

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.