Package civquest.visibility

Examples of civquest.visibility.InformationNotAvailableException


    if (manager.isCompleteVisible(position)) {
      return Game.getMapData().getHeightLevel(position);
    } else if (manager.isTerrainVisible(position)) {
      return manager.getTVFInfo(position).getHeightLevel();
    } else {
      throw new InformationNotAvailableException("BlackWhiteFieldReader", "heightLevel");
    }
  }
View Full Code Here


    if (manager.isCompleteVisible(position)) {
      return Game.getMapData().getVegetationName(position);
    } else if (manager.isTerrainVisible(position)) {
      return manager.getTVFInfo(position).getVegetationName();
    } else {
      throw new InformationNotAvailableException("BlackWhiteFieldReader", "vegetationName");
    }
  }
View Full Code Here

  public int getPressure(Coordinate position) {
    if (manager.isCompleteVisible(position)) {
      return Game.getMapData().getPressure(position);
    } else {
      throw new InformationNotAvailableException("BlackWhiteFieldReader", "pressure");
    }
  }
View Full Code Here

  public int getTemperature(Coordinate position) {
    if (manager.isCompleteVisible(position)) {
      return Game.getMapData().getTemperature(position);
    } else {
      throw new InformationNotAvailableException("BlackWhiteFieldReader", "temperature");
    }
  }
View Full Code Here

  public int getHumidity(Coordinate position) {
    if (manager.isCompleteVisible(position)) {
      return Game.getMapData().getHumidity(position);
    } else {
      throw new InformationNotAvailableException("BlackWhiteFieldReader", "humidity");
    }
  }
View Full Code Here

  public int getWaterFlow(Coordinate position) {
    if (manager.isCompleteVisible(position)) {
      return Game.getMapData().getWaterFlow(position);
    } else {
      throw new InformationNotAvailableException("BlackWhiteFieldReader", "water-flow");
    }
  }
View Full Code Here

  public long getPopulation(Coordinate position) {
    if (isPopulationAvailable(position)) {
      return Game.getMapData().getPopulation(position);
    } else {
      throw new InformationNotAvailableException("BlackWhiteFieldReader", "population");
    }   
  }
View Full Code Here

  public ResourceSet getResourceProduction(Coordinate position) {
    if (isResourceProductionAvailable(position)) {
      throw new ResourceGraphException("Re-implement this!");
//       return Game.getMapData().getResourceProduction(position);
    } else {
      throw new InformationNotAvailableException("BlackWhiteFieldReader",
                             "resource production");
    }
  }
View Full Code Here

  public Long getFieldOwner(Coordinate position) {
    if (isFieldOwnerAvailable(position)) {
      return Game.getMapData().getFieldOwner(position);
    } else {
      throw new InformationNotAvailableException("BlackWhiteFieldReader",
                             "field owner");
    }
  }
View Full Code Here

  public Iterator<Long> getMapObjects(Coordinate position) {
    if (areMapObjectsAvailable(position)) {
      return Game.getMapData().getField(position).getMapObjectIDIterator();
    } else {
      throw new InformationNotAvailableException("BlackWhiteFieldReader",
                             "map-objects on field");
    }
  }
View Full Code Here

TOP

Related Classes of civquest.visibility.InformationNotAvailableException

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.