@Override public void addBattleForceSpecialAbilities(Map<BattleForceSPA, Integer> specialAbilities) { super.addBattleForceSpecialAbilities(specialAbilities); for (Mounted m : getEquipment()) { if (m.getType().hasFlag(MiscType.F_SPACE_MINE_DISPENSER)) { specialAbilities.merge(BattleForceSPA.MDS, 1, Integer::sum); } } if ((getEntityType() & (ETYPE_SMALL_CRAFT | ETYPE_JUMPSHIP | ETYPE_FIXED_WING_SUPPORT)) == 0) { specialAbilities.put(BattleForceSPA.BOMB, getWeightClass() + 1); } if ((getEntityType() & (ETYPE_JUMPSHIP | ETYPE_CONV_FIGHTER)) == 0) { specialAbilities.put(BattleForceSPA.SPC, null); } if (isVSTOL()) { specialAbilities.put(BattleForceSPA.VSTOL, null); } }
int desiredSafeThrust){ int rating; long eType = unit.getEntityType(); if (unit.hasETypeFlag(Entity.ETYPE_CONV_FIGHTER)) { rating = (tonnage * desiredSafeThrust);
if (aero.getEntityType() == Entity.ETYPE_DROPSHIP || aero.getEntityType() == Entity.ETYPE_SMALL_CRAFT || aero.getEntityType() == Entity.ETYPE_FIGHTER_SQUADRON || aero.getEntityType() == Entity.ETYPE_JUMPSHIP || aero.getEntityType() == Entity.ETYPE_SPACE_STATION){ System.out.println("TestAero only supports Aerospace Fighters " + "and Conventional fighters. Supplied unit was a " + Entity.getEntityTypeName(aero.getEntityType())); return true;
vDesc.addElement(r); if (((getEntityType() & Entity.ETYPE_DROPSHIP) == 0) || ((getEntityType() & Entity.ETYPE_SMALL_CRAFT) == 0) || ((getEntityType() & Entity.ETYPE_FIGHTER_SQUADRON) == 0) || ((getEntityType() & Entity.ETYPE_JUMPSHIP) == 0) || ((getEntityType() & Entity.ETYPE_SPACE_STATION) == 0)) { r = new Report(7036); } else {
if (((a.getEntityType() & Entity.ETYPE_SMALL_CRAFT) > 0) && ((a.getEntityType() & Entity.ETYPE_DROPSHIP) == 0)) { continue;
personnelList.addAll(infantryPersonnel); when(mockCorsair1.getEntityType()).thenReturn(Entity.ETYPE_AERO); when(mockCorsair1.getUnitType()).thenCallRealMethod(); when(mockCorsairUnit1.getEntity()).thenReturn(mockCorsair1); astechs += 6; when(mockCorsair2.getEntityType()).thenReturn(Entity.ETYPE_AERO); when(mockCorsair2.getUnitType()).thenCallRealMethod(); when(mockCorsairUnit2.getEntity()).thenReturn(mockCorsair2);
if (((a.getEntityType() & Entity.ETYPE_CONV_FIGHTER) != 0) && a.hasEngine() && (a.getEngine().getEngineType() == Engine.XXL_ENGINE)) { if (a.getEngine().hasFlag(Engine.CLAN_ENGINE)) {