Examples of InformationNotAvailableException


Examples of civquest.visibility.InformationNotAvailableException

  public Iterator<Long> getUnits(Coordinate position) {
    if (areUnitsAvailable(position)) {
      return Game.getMapData().getField(position).getUnitIDIterator();
    } else {
      throw new InformationNotAvailableException("BlackWhiteFieldReader",
                             "units on field");
    }
  }
View Full Code Here

Examples of civquest.visibility.InformationNotAvailableException

    if (manager.isCompleteVisible(position)
      || manager.isTerrainVisible(position)) {
      Long cityID = Game.getMapData().getCityID(position);
      return (manager.isCityVisible(cityID) ? cityID : null);
    } else {
      throw new InformationNotAvailableException("BlackWhiteCityReader", "getCityID");
    }
  }
View Full Code Here

Examples of civquest.visibility.InformationNotAvailableException

  public Coordinate getCityPosition(Long id) {
    if (manager.isCityVisible(id)) {
      return Game.getMapData().getCityPosition(id);
    } else {
      throw new InformationNotAvailableException("BlackWhiteCityReader",
                             "getCityPosition");
    }
  }
View Full Code Here

Examples of civquest.visibility.InformationNotAvailableException

        return cityInfo.cityOwner;
      } else {
        return Game.getMapData().getCityOwner(id);
      }
    } else {
      throw new InformationNotAvailableException("BlackWhiteCityReader", "getCityOwner");
    }
  } 
View Full Code Here

Examples of civquest.visibility.InformationNotAvailableException

  public String getMapObjectModelName(Long moID) {
    if (isMapObjectModelNameAvailable(moID)) {
      return Game.getMapData().getMapObject(moID).getModelName();
    } else {
      throw new InformationNotAvailableException("BlackWhiteMapObjectReader",
                             "modelName");
    }
  }
View Full Code Here

Examples of civquest.visibility.InformationNotAvailableException

  public boolean isAttacking(Long moID) {
    if (knowIfAttacking(moID)) {
      return (Game.getMapData().getMapObject(moID) instanceof Attacking);
    } else {
      throw new InformationNotAvailableException("BlackWhiteMapObjectReader",
                             "isAttacking");
    }
  }
View Full Code Here

Examples of civquest.visibility.InformationNotAvailableException

  public Attacking getAsAttacking(Long moID) {
    if (isAttacking(moID)) {
      return (Attacking)(Game.getMapData().getMapObject(moID));
    } else {
      throw new InformationNotAvailableException("BlackWhiteMapObjectReader",
                             "asAttacking");
    }
  }
View Full Code Here

Examples of civquest.visibility.InformationNotAvailableException

  public boolean isMoving(Long moID) {
    if (knowIfMoving(moID)) {
      return (Game.getMapData().getMapObject(moID) instanceof Moving);
    } else {
      throw new InformationNotAvailableException("BlackWhiteMapObjectReader",
                             "isMoving");
    }   
  }
View Full Code Here

Examples of civquest.visibility.InformationNotAvailableException

  public Moving getAsMoving(Long moID) {
    if (isMoving(moID)) {
      return (Moving)(Game.getMapData().getMapObject(moID));
    } else {
      throw new InformationNotAvailableException("BlackWhiteMapObjectReader",
                             "asMoving");
    }   
  }
View Full Code Here

Examples of civquest.visibility.InformationNotAvailableException

  public MapObject getAsMapObject(Long moID) {
    if (asMapObjectAvailable(moID)) {
      return Game.getMapData().getMapObject(moID);
    } else {
      throw new InformationNotAvailableException("BlackWhiteMapObjectReader",
                             "asMapObject");
    }
  }
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.