public int getAirMechFlankMP(boolean gravity, boolean ignoremodulararmor) { if (game != null && game.getBoard().inAtmosphere() && (isLocationBad(Mech.LOC_LT) || isLocationBad(Mech.LOC_RT))) { return 0; } return (int) Math.ceil(getAirMechCruiseMP(gravity, ignoremodulararmor) * 1.5); }
public int getAirMechCruiseMP(boolean gravity, boolean ignoremodulararmor) { if (game != null && game.getBoard().inAtmosphere() && (isLocationBad(Mech.LOC_LT) || isLocationBad(Mech.LOC_RT))) { return 0; } return getJumpMP(gravity, ignoremodulararmor) * 3; }
public boolean isOnAtmosphericGroundMap() { return ((getGame().getPlanetaryConditions().getAtmosphere() != PlanetaryConditions.ATMO_VACUUM) || (getGame().getPlanetaryConditions().getAtmosphere() != PlanetaryConditions.ATMO_TRACE)) && (getGame().getBoard().onGround() || // doesn't make sense in english, but "atmospheric" map actually // covers maps that are within a planet's gravity well getGame().getBoard().inAtmosphere()); }
/** * is the unit flying Nape of the Earth? (i.e. one elevation above ground) */ public boolean isNOE() { if (!isAirborne()) { return false; } if (game.getBoard().inAtmosphere()) { return (1 == (getAltitude() - game.getBoard().getHex(getPosition()) .ceiling(true))); } if (game.getBoard().onGround()) { return 1 == getAltitude(); } return false; }
paths.addAll(apf.getAllComputedPathsUncategorized()); } else if(mover.isAero() && game.getBoard().inAtmosphere()) { AeroLowAltitudePathFinder apf = AeroLowAltitudePathFinder.getInstance(getGame()); apf.run(new MovePath(game, mover));
if (isFiringDisplay && !board.inSpace() && !board.inAtmosphere()) { menu.add(TargetMenuItem(new HexTarget(coords, board, Targetable.TYPE_HEX_CLEAR))); if (canStartFires && !board.inAtmosphere() && (hasAmmoType(AmmoType.T_ARROW_IV) || hasAmmoType(AmmoType.T_SNIPER)
case SPHEROID: assumedAlt = assumedElevation; if (game.getBoard().inAtmosphere()) { minAlt = Math.max(0, hex.ceiling(true)) + 1; } else if (game.getBoard().onGround() && isAirborne()) {
int ceil = board.getHex(pos).ceiling(board.inAtmosphere());
JOptionPane.ERROR_MESSAGE); return; } else if (isAero && board.inAtmosphere() && (ce().getElevation() <= board.getHex(moveto).ceiling(true))) {
&& !(currElevation > hex .maxTerrainFeatureElevation(game.getBoard() .inAtmosphere())); default: return false;
&& game.getBoard().inAtmosphere() && !a.isOutControl()) { IHex desth = game.getBoard().getHex(getPosition()); if (altitude <= desth.ceiling(true)) {