int bonus = 0; if (game != null) { switch (game.getPlanetaryConditions().getAtmosphere()) { case PlanetaryConditions.ATMO_VACUUM: bonus = 0;
.getAtmosphereDisplayableName(i)); choAtmosphere.setSelectedIndex(conditions.getAtmosphere());
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()); }
int atmo = PlanetaryConditions.ATMO_STANDARD; if (game != null) { atmo = game.getPlanetaryConditions().getAtmosphere();
int atmoCond = game.getPlanetaryConditions().getAtmosphere(); if (!(game.getBoard().inSpace() || atmoCond == PlanetaryConditions.ATMO_VACUUM)) { prd.addModifier(+2, "Atmospheric operations");
if ((getWeightClass() == EntityWeightClass.WEIGHT_LIGHT) || (getWeightClass() == EntityWeightClass.WEIGHT_MEDIUM)) { switch (game.getPlanetaryConditions().getAtmosphere()) { case PlanetaryConditions.ATMO_VACUUM: bonus = 0; switch (game.getPlanetaryConditions().getAtmosphere()) { case PlanetaryConditions.ATMO_VACUUM: bonus = 0;
@Override public boolean handle(IGame.Phase phase, Vector<Report> vPhaseReport) { if (game.getOptions().booleanOption(OptionsConstants.ADVCOMBAT_TACOPS_START_FIRE) && (game.getPlanetaryConditions().getAtmosphere() >= PlanetaryConditions.ATMO_TRACE)) { int rear = (ae.getFacing() + 3 + (weapon.isMechTurretMounted() ? weapon .getFacing() : 0)) % 6; Coords src = ae.getPosition(); Coords rearCoords = src.translated(rear); IBoard board = game.getBoard(); IHex currentHex = board.getHex(src); if (!board.contains(rearCoords)) { rearCoords = src; } else if (board.getHex(rearCoords).getLevel() > currentHex .getLevel() + 4) { rearCoords = src; } else if ((board.getBuildingAt(rearCoords) != null) && (board.getHex(rearCoords).terrainLevel( Terrains.BLDG_ELEV) + board.getHex(rearCoords).getLevel() > currentHex .getLevel() + 4)) { rearCoords = src; } server.createSmoke(rearCoords, SmokeCloud.SMOKE_HEAVY, 2); } return super.handle(phase, vPhaseReport); }
@Override public boolean handle(IGame.Phase phase, Vector<Report> vPhaseReport) { if (game.getOptions().booleanOption(OptionsConstants.ADVCOMBAT_TACOPS_START_FIRE) && (game.getPlanetaryConditions().getAtmosphere() >= PlanetaryConditions.ATMO_TRACE)) { int rear = (ae.getFacing() + 3 + (weapon.isMechTurretMounted() ? weapon .getFacing() : 0)) % 6; Coords src = ae.getPosition(); Coords rearCoords = src.translated(rear); IBoard board = game.getBoard(); IHex currentHex = board.getHex(src); if (!board.contains(rearCoords)) { rearCoords = src; } else if (board.getHex(rearCoords).getLevel() > currentHex .getLevel()) { rearCoords = src; } else if ((board.getBuildingAt(rearCoords) != null) && ((board.getHex(rearCoords).terrainLevel( Terrains.BLDG_ELEV) + board.getHex(rearCoords) .getLevel()) > currentHex.getLevel())) { rearCoords = src; } server.createSmoke(rearCoords, SmokeCloud.SMOKE_HEAVY, 2); } return super.handle(phase, vPhaseReport); }
int atmoCond = game.getPlanetaryConditions().getAtmosphere();
int atmoCond = game.getPlanetaryConditions().getAtmosphere();