/** * Convenience method to determine whether this entity should be treated as an airborne aero on a ground map. * @return True if this is an airborne aircraft on a ground map. */ public boolean isAirborneAeroOnGroundMap() { return isAero() && isAirborne() && getGame().getBoard().onGround(); }
if (bv.game.getBoard().onGround()) { velocity *= 16;
if (en.game.getBoard().onGround() && (getElevation() > 0)) { if (en instanceof Dropship) { thresh = vel * 8;
if (game.getBoard().onGround()) {
if (attacker.usesWeaponBays() && game.getBoard().onGround()) { distance = (int) Math.ceil(distance / 16.0); if (Compute.isAirToAir(attacker, target) && game.getBoard().onGround() && !useGroundDistance) { distance = (int) Math.ceil(distance / 16.0); if (attacker.usesWeaponBays() && game.getBoard().onGround()) { distance += (target.getAltitude()); } else {
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; }
if (game.getBoard().onGround()) { drawSprites(g, vtolAttackSprites); drawSprites(g, flyOverSprites);
public int getMaxWeaponRange() { // Aeros on the ground map must shoot along their flight path, giving // them effectively 0 range if (isAero() && isAirborne() && game.getBoard().onGround()) { return 0; } int maxRange = 0; if ((ETYPE_MECH == getEntityType()) || (ETYPE_INFANTRY == getEntityType()) || (ETYPE_PROTOMECH == getEntityType())) { // account for physical attacks. maxRange = 1; } for (Mounted weapon : getWeaponList()) { if (!weapon.isReady()) { continue; } WeaponType type = (WeaponType) weapon.getType(); int range = (game.getOptions().booleanOption( OptionsConstants.ADVCOMBAT_TACOPS_RANGE) ? type.getExtremeRange() : type.getLongRange()); if (range > maxRange) { maxRange = range; } } return maxRange; }
if (!clientgui.getClient().getGame().getBoard().onGround()) { return;
if (isAirToAir(ae, target) && game.getBoard().onGround()) { distance = (int) Math.ceil(distance / 16.0);
if (isAirborne() && game.getBoard().onGround()) { return getActiveSensor().getDisplayName() + " (" + minSensorRange + "-" + maxSensorRange + ")" + " {" + ENTITY_AIR_TO_GROUND_SENSOR_RANGE + " (" + minGroundSensorRange + "-"
Coords origPosition, int elevation, Coords dest, Entity transport) { if (!game.getBoard().onGround()) { return null;
if (game.getBoard().inAtmosphere()) { minAlt = Math.max(0, hex.ceiling(true)) + 1; } else if (game.getBoard().onGround() && isAirborne()) { minAlt = 1;
&& game.getBoard().onGround()) { modSnowTurn = modSnowTurn + 1; if(modSnowTurn == 9) { && game.getBoard().onGround())) { heavySnowTurn = heavySnowTurn + 1; if(heavySnowTurn == 4) { && game.getBoard().onGround()) { sleetTurn = sleetTurn + 1; if(sleetTurn == 14) { && game.getBoard().onGround()) { iceTurn = iceTurn + 1; if(iceTurn == 9) {
if (game.getBoard().onGround()) { drawSprites(boardGraph, vtolAttackSprites); drawSprites(boardGraph, flyOverSprites);
boolean aeroAttackingGroundUnitOnGroundMap = me.isAirborne() && !enemy.isAero() && game.getBoard().onGround();
velocityN = a.getNextVelocity(); velocityLeft = a.getCurrentVelocity() - entity.delta_distance; if (game.getBoard().onGround()) { velocityLeft = a.getCurrentVelocity() - (entity.delta_distance / 16);
int steps = 1; if(game.getBoard().onGround()) { steps = 16;
if (game.getBoard().onGround()) { ranges[0][1] *= 8; ranges[0][2] *= 8;