Examples of InformationNotAvailableException


Examples of civquest.visibility.InformationNotAvailableException

  public Coordinate getMapObjectPosition(Long moID) {
    if (isMapObjectPositionAvailable(moID)) {
      return Game.getMapData().getMapObject(moID).getField().getPosition();
    } else {
      throw new InformationNotAvailableException("BlackWhiteMapObjectReader",
                             "mapObjectPosition");     
    }
  }
View Full Code Here

Examples of civquest.visibility.InformationNotAvailableException

  public int getMapObjectTime(Long moID) {
    if (isMapObjectTimeAvailable(moID)) {
      return ((TurnTimed)Game.getMapData().getMapObject(moID)).getTime();
    } else {
      throw new InformationNotAvailableException("BlackWhiteMapObjectReader",
                             "mapObjectTime");
    }
  }
View Full Code Here

Examples of civquest.visibility.InformationNotAvailableException

  public double getMapObjectHealth(Long moID) {
    if (isMapObjectTimeAvailable(moID)) {
      return ((DamagableMapObject)Game.getMapData().getMapObject(moID)).getHealth();
    } else {
      throw new InformationNotAvailableException("BlackWhiteMapObjectReader",
                             "mapObjectHealth");
    }   
  }
View Full Code Here

Examples of civquest.visibility.InformationNotAvailableException

  public Long getMapObjectOwner(Long moID) {
    if (isMapObjectOwnerAvailable(moID)) {
      return ((HasOwner)Game.getMapData().getMapObject(moID)).getOwner().getID();
    } else {
      throw new InformationNotAvailableException("BlackWhiteMapObjectReader",
                             "mapObjectOwner");
    }
  }
View Full Code Here

Examples of civquest.visibility.InformationNotAvailableException

      && fieldReader.isPopulationAvailable(pos);
  }

  public ResourceSet getResourceProduction(Coordinate pos) {
    if (!(isResourceProductionAvailable(pos))) {
      throw new InformationNotAvailableException("PropResourceDistributor",
                             "ResourceProduction");
    } else {
      FieldReader fieldReader = gameData.getFieldReader();
      Field.Height heightLevel = fieldReader.getHeightLevel(pos);
      String vegetation = fieldReader.getVegetationName(pos);
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.