Class Aero
- All Implemented Interfaces:
Serializable,ICarryable,Transporter,InGameObject,CombatRole,ForceAssignable,ITechnology,ITurnOrdered,PhaseUpdated,RoundUpdated,ActiveHeatSinkController,BTObject,Deployable,IAero,IBomber,Targetable
- Direct Known Subclasses:
AeroSpaceFighter,Jumpship,SmallCraft,TeleMissile
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class megamek.common.units.Entity
Entity.InvalidSourceBuildReasonNested classes/interfaces inherited from interface megamek.common.equipment.ICarryable
ICarryable.CarriedObjectDamageAllocation -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final String[]static final intstatic final intstatic final String[]protected static final TechAdvancement[]static final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intprotected int[]protected intprotected BombLoadoutstatic final intstatic final intprotected BombLoadoutstatic final intstatic final intLocation used for equipment not allocated to a firing arcstatic final intstatic final intstatic final intstatic final intLocation used for capital fighters and squadronsprotected intprotected intstatic final intstatic final intstatic final intstatic final intstatic final intprotected static final TechAdvancementprotected static final TechAdvancementprotected intFields inherited from class megamek.common.units.Entity
_isEMId, abandonmentAnnouncedRound, ALTERNATE_MASC_FAILURE, ALTERNATE_MASC_FAILURE_ENHANCED, altitude, ammoList, armorTechLevel, armorTechRating, armorTonnage, armorType, armsFlipped, asewAffectedTurns, aTracker, baVDNINeedsFeedbackMessage, BLOOD_STALKER_TARGET_CLEARED, bMASCWentUp, bombList, boobyTrapInitiated, bSuperchargerWentUp, C3_NETWORK_ID_SEPARATOR, c3CompanyMasterIndex, c3Master, c3NetIdString, camouflage, canUnstickByJumping, carcass, chassis, clanChassisName, climbing, climbingLevelsChosen, consecutiveRHSUses, convertingNow, coolFromExternal, crits, damageThisPhase, damageThisRound, dangling, delta_distance, designValid, destroyed, displacementAttack, DMG_CRIPPLED, DMG_HEAVY, DMG_LIGHT, DMG_MODERATE, DMG_NONE, dodging, DOES_NOT_TRACK_HEAT, done, doomed, eiShutdown, elevation, empInterferenceHeat, empInterferenceRounds, empShutdownRounds, engineHitsThisPhase, engineTechRating, equipmentList, ETYPE_AERO, ETYPE_AEROSPACE_FIGHTER, ETYPE_ARMLESS_MEK, ETYPE_BATTLEARMOR, ETYPE_BATTLEFIELD_SUPPORT_ASSET, ETYPE_BIPED_MEK, ETYPE_BUILDING_ENTITY, ETYPE_COMBAT_VEHICLE_ESCAPE_POD, ETYPE_CONV_FIGHTER, ETYPE_DROPSHIP, ETYPE_FIGHTER_SQUADRON, ETYPE_FIXED_WING_SUPPORT, ETYPE_GUN_EMPLACEMENT, ETYPE_HANDHELD_WEAPON, ETYPE_INFANTRY, ETYPE_JUMPSHIP, ETYPE_LAND_AIR_MEK, ETYPE_LARGE_SUPPORT_TANK, ETYPE_MEK, ETYPE_MEKWARRIOR, ETYPE_PROTOMEK, ETYPE_QUAD_MEK, ETYPE_QUADVEE, ETYPE_SMALL_CRAFT, ETYPE_SPACE_STATION, ETYPE_SUPER_HEAVY_TANK, ETYPE_SUPPORT_TANK, ETYPE_SUPPORT_VTOL, ETYPE_TANK, ETYPE_TELEMISSILE, ETYPE_TRIPOD_MEK, ETYPE_VTOL, ETYPE_WARSHIP, externalId, facing, failedEquipmentList, fell, findingClub, firingSolutions, fluff, game, gotPavementOrRoadBonus, GRAPPLE_BOTH, GRAPPLE_LEFT, GRAPPLE_RIGHT, hardenedArmorDamaged, hasDamagedRHS, hasExternalSearchlight, heat, heatBuildup, heatFromExternal, heatSinkCoolantFailureFactor, hiddenActivationPhase, hullDown, icon, id, iGame, illuminated, iNarcPods, incomingGuidedAttacks, infernos, initialBV, inReverse, isC3ecmAffected, isCarefulStanding, isHidden, isJumpingNow, jumpMP, killerId, lastTarget, lastTargetDisplayName, layingMines, LOC_DESTROYED, LOC_NONE, locationBlownOff, locationBlownOffThisPhase, m_lNarcedBy, m_lPendingNarc, madePointblankShot, manualBV, manualShutdown, MASC_FAILURE, MAX_C3_NODES, MAX_C3i_NODES, MAX_NOVA_CEWS_NODES, military, miscList, mixedTech, model, moved, movedLastRound, movementMode, mpUsed, mpUsedLastRound, mulId, narcPods, nCrew, nMarines, nMASCLevel, nPassenger, nSuperchargerLevel, OBSOLETE_UNKNOWN_MARKER, omni, owner, ownerId, pendingAbandon, pendingINarcPods, pendingNarcPods, previousMovementMode, prone, published, reckless, reportedVDNIFeedbackThisPhase, rhsWentUp, rolledForEngineExplosion, searchlightIsActive, searchlightOverride, sec_facing, secondaryPositions, selfDestructedThisTurn, selfDestructing, selfDestructInitiated, sensorContacts, shutDown, shutdownByBATaser, shutDownThisPhase, source, spotting, STARTING_ANY_NONE, startupThisPhase, struck, structuralTechRating, structureTechLevel, structureType, stuckInSwamp, TA_ARMORED_COMPONENT, TA_MIXED_TECH, TA_OMNI, TA_PATCHWORK_ARMOR, taggedBy, targetBay, taserFeedBackRounds, taserInterference, taserInterferenceHeat, taserInterferenceRounds, taserShutdownRounds, techFaction, techLevel, tmTracker, totalWeaponList, traitorId, twistedPhase, underwaterRounds, unjammingRAC, UNLIMITED_JUMP_DOWN, usedMASC, usedRHSLastTurn, usedSearchlight, usedSupercharger, useManualBV, vectors, walkMP, weaponBayList, weaponGroupList, weaponList, weight, wigeBonus, yearFields inherited from interface megamek.common.units.IBomber
ALT_BOMB_ATTACK, DIVE_BOMB_ATTACK, SPACE_BOMB_ATTACKFields inherited from interface megamek.common.interfaces.ITechnology
DATE_ES, DATE_NONE, DATE_PSFields inherited from interface megamek.common.units.Targetable
TYPE_BLDG_IGNITE, TYPE_BLDG_TAG, TYPE_BUILDING, TYPE_ENTITY, TYPE_FLARE_DELIVER, TYPE_FUEL_TANK, TYPE_FUEL_TANK_IGNITE, TYPE_HEX_AERO_BOMB, TYPE_HEX_ARTILLERY, TYPE_HEX_BOMB, TYPE_HEX_CLEAR, TYPE_HEX_EXTINGUISH, TYPE_HEX_IGNITE, TYPE_HEX_SCREEN, TYPE_HEX_TAG, TYPE_I_NARC_POD, TYPE_MINEFIELD_CLEAR, TYPE_MINEFIELD_DELIVER, TYPE_SATURATION, TYPE_SEARCHLIGHT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidFor clan units that get automatic Clan CASE, adds clan CASE in every location that has potentially explosive equipment (this includes uncharged PPC Capacitors).Add in any piloting skill modsvoidaddEquipment(Mounted<?> mounted, int loc, boolean rearMounted) Adds the given mounted equipment to the unit in the given location, possibly rear-facing depending on the given parameter.voidaddEscapeCraft(String id) Adds an Escape Craft.protected voidaddSystemTechAdvancement(CompositeTechLevel techLevel) Incorporate dates for components that are not in the equipment list, such as engines and structure.booleankeep track of whether the wings have suffered a weapon critical hitvoidvoidvoidSets the internal structure for every location to appropriate undamaged values for the unit and location.voidRecalculates the internal and external hardpoints that this aero unit has.voidvoidintavailableBombLocation(int cost) protected intbooleanCan this entity change secondary facing at all?booleanbooleancanDFA()booleanAn aerospace crew can only abandon on the ground; the server's abandonEntity has no airborne path.booleanbooleanDetermines if this object can accept the given unit.booleancanRam()booleancanSpot()Um, basically everything can spot for LRM indirect fire.intchooseSideRam(Coords src) voidSets the count of each bomb to zerointclipSecondaryFacing(int n) Aerospace really can't torso twist?booleanbooleanbooleanvoidbooleanbooleanbooleanintintintintdoubleReturns the percent of the armor remainingintintintintgetBadCriticalSlots(int type, int index, int loc) The number of critical slots that are destroyed in the component.intDetermines where to place equipment that does not require a specific location.doubleDeprecated, for removal: This API element is subject to removal in a future version.intintintintget modifications to the cluster hit table for critical hitsstatic TechAdvancementgetCockpitTechAdvancement(int cockpitType) intstatic StringgetCockpitTypeString(int inCockpitType) return - the base construction option tech advancementdoublegetCost(CalculationReport calcReport, boolean ignoreAmmo) Calculates and returns the C-bill cost of the unit.intgetCriticalEffect(int roll, int target) get the type of critical caused by a critical roll, taking account of existing damageintintintintintintReturns the unit's design typeintintdoubleintintWhat's the range of the ECM equipment?intReturns the elevation of this target, relative to the position Hex's surfaceintintintCheck which turn engines were destroyed in.longintintGets the altitude at which this unit climbed out of the atmosphere.intintintintgetFuel()doubledoubleGets the fuel for this Aero in terms of tonnage.intgetHeatCapacity(boolean includeRadicalHeatSink) intintintintintintdoubleReturns the percent of the SI remainingintgetLandingGearMod(boolean vTakeoff) Modifier to landing or vertical takeoff roll for landing gear damage.intintReturns the total number of escape pods launched so farintReturns the total number of lifeboats launched so farintintintString[]String[]intDeprecated, for removal: This API element is subject to removal in a future version.intintThe maximum elevation change the entity can crossintintintgetMovementAbbr(EntityMovementType movementType) Returns the name of the type of movement used.getMovementString(EntityMovementType movementType) Returns the name of the type of movement used.intintgetNCrew()intintintintint[]intUsed to determine modifier for landing; different for Aero and LAM.intintintgetOppositeLocation(int loc) what location is opposite the given oneintintgetOSI()intintintdoubleReturns a multiplier that combines multiplicative construction cost modifiers for this Entity.intintintgetRunMP(MPCalculationSetting mpCalculationSetting) intintgetSI()intUsed to determine the draw priority of different Entity subclasses.getStealthModifier(int range, Entity ae) Determine the stealth modifier for firing at this unit from the given range.intdoubleUsed by SmallCraft and Jumpship and their child classes.intgetThresh(int loc) intGets the location that excess damage transfers tointintintgetWalkMP(MPCalculationSetting mpCalculationSetting) intgetWeaponArc(int weaponNumber) Returns the Compute.ARC that the weapon fires into.intDeprecated, for removal: This API element is subject to removal in a future version.Iterate through current weapons and count the number in each capital fighter location.booleanbooleanhasCase()Returns whether there is CASE anywhere on thisEntity.booleanUnits with a cockpit command console provide an initiative bonus to their side, provided that the commander is not currently functioning as pilot, the unit has advanced fire control, and the unit is heavy or assault weight class.booleanbooleanintUsed to for cost calculations.voidincreaseUsedInternalBombs(int b) Increase count of internal bombs used this turn.voidinitializeSI(int val) Deprecated.voidinitializeThresh(int loc) booleanisAero()Returns true when this object uses or can use aerospace movement.booleanA method to determine if an aero has suffered 3 sensor hits.booleanbooleanisBomber()Fighters may carry external ordnance; Other Aerospace units with cargo bays and the Internal Bomb Bay quirk may carry bombs internally.booleanbooleanbooleanbooleanDeprecated, for removal: This API element is subject to removal in a future version.booleanReturns TRUE if the entity meets the requirements for crippling damage as detailed in TW pg 258.booleanisCrippled(boolean checkCrew) Returns TRUE if the entity meets the requirements for crippling damage as detailed in TW pg 258.booleanReturns TRUE if the entity has been heavily damaged.booleanReturns TRUE if the entity has been lightly damaged.booleanReturns TRUE if the entity has been moderately damaged.booleanIntended for large craft.booleanbooleanbooleanReturns true if the target is considered immobile (-4 to hit) as a target and also if it is considered immobile or temporarily or permanently immbolized for active movement.booleanisLocationProhibited(Coords testPosition, int testBoardId, int testAltitude) Returns true when the given location cannot legally be entered or deployed into by this unit at the given elevation or altitude.booleanDetermines if the pilot has the Nightwalker SPAbooleanbooleanbooleanbooleanbooleanbooleanDetermine if the unit can be repaired, or only harvested for spares.booleanisRolled()booleanisSecondaryArcWeapon(int weaponId) Returns true if this weapon fires into the secondary facing arc.booleanReturns true when this object has the distinction between aerodyne and spheroid, i.e.booleanDetermine if this unit has an active and working stealth system.booleanDetermine if this unit has an active and working stealth system.booleanisSTOL()booleanisValidSecondaryFacing(int n) Can this entity torso/turret twist the given direction?booleanisVSTOL()intReturns the number of locations in the entityvoidnewRound(int roundNumber) Start a new rounddoubleSome primitive aerospace units have their fuel efficiency reduced by a factor based on construction year.intreduceMPByBombLoad(int t) voidvoidrollHitLocation(int table, int side) Rolls up a hit locationrollHitLocation(int table, int side, int aimedLocation, AimingMode aimingMode, int cover) Rolls up a hit locationvoidsetAccDecNow(boolean b) voidsetAccLast(boolean b) voidsetActiveSinksNextRound(int sinks) Requests that the given number of heat sinks be active next round; the change takes effect in the End Phase.voidsetAltLoss(int i) voidsetAltLossThisRound(int i) voidsetArmorType(int armType) voidsetArmorType(int armType, boolean addMount) voidsetAutoEject(boolean autoEject) voidsetAvionicsHits(int hits) voidsetCapArmor(int i) voidsetCICHits(int hits) voidsetCockpitType(int type) voidsetCondEjectAmmo(boolean condEjectAmmo) Used by Conditional Auto Ejection - will we eject when an ammo explosion is triggered?voidsetCondEjectFuel(boolean condEjectFuel) Used by Conditional Auto Ejection - will we eject when a fuel explosion is triggered?voidsetCondEjectSIDest(boolean condEjectSIDest) Used by Conditional Auto Ejection - will we eject when structural integrity is reduced to 0?voidsetCritThresh(boolean b) voidsetCurrentDamage(int i) voidsetCurrentFuel(int gas) voidsetCurrentVelocity(int velocity) voidsetDesignType(int design) Sets the unit as either a civilian or military designvoidsetDestroyed(boolean destroyed) voidsetECCMRoll(int i) voidsetEjecting(boolean ejecting) Changes the ejecting flag when the order to abandon ship is givenvoidvoidsetEngineHits(int hits) voidsetEnginesLostRound(int enginesLostRound) Set round that engines were completely destroyed; needed for crash-landing checkvoidsetExitAltitude(int altitude) Sets the altitude at which this unit is climbing out of the atmosphere.voidSets the bomb type selections for external mounts.voidsetFailedManeuver(boolean b) voidsetFCSHits(int hits) voidsetFlyingOff(OffBoardDirection direction) voidsetFuel(int gas) Sets the number of fuel points.voidsetFuelTankHit(boolean value) voidsetFuelTonnage(double fuelTons) Set number of fuel points based on fuel tonnage.voidsetGearHit(boolean hit) voidsetHeatSinks(int hs) voidsetHeatType(int heatSinkType) voidsetIgnoredCrewHits(int hits) voidSets the bomb type selections prior to deployment.voidsetLaunchedEscapePods(int n) Updates the total number of escape pods launched so farvoidsetLaunchedLifeBoats(int n) Updates the total number of lifeboats launched so farvoidsetLeftThrustHits(int hits) voidsetLifeSupport(boolean b) voidsetNextVelocity(int velocity) voidsetOHeatSinks(int hs) voidsetOmni(boolean omni) voidsetOSI(int si) Set the starting Structural Integrity of this unit.voidsetOutControl(boolean outControl) voidsetOutControlHeat(boolean outControlHeat) voidsetPodHeatSinks(int hs) voidsetPotCrit(int crit) voidsetRandomMove(boolean randomMove) voidsetRightThrustHits(int hits) voidsetRolled(boolean roll) voidsetSensorHits(int hits) voidsetSI(int si) voidsetSpheroid(boolean b) voidsetStraightMoves(int i) voidsetThresh(int val, int loc) voidsetUsedInternalBombs(int b) Set count of internal bombs used; this is used to reset, revert, or increase count of internal bombs a unit has dropped during a turn.voidsetVSTOL(boolean b) voidvoidsetWingsHit(boolean b) intsideTableRam(Coords src) Used to determine net velocity of ramming attackbooleanUsed to identify a target that tracks heat buildup (Meks, ASFs, and small craft).voidA method to add/remove sensors that only work in space as we transition in and out of an atmosphereGenerates a vector containing reports on all useful information about this entity.booleanMethods inherited from class megamek.common.units.Entity
activateRadicalHS, addAttackedByThisTurn, addBeenDetectedBy, addBeenSeenBy, addBomb, addBomb, addConditionBonuses, addCoolantFailureAmount, addCritical, addCritical, addCritical, addEquipment, addEquipment, addEquipment, addEquipment, addEquipment, addEquipment, addEquipment, addEquipment, addEquipment, addEquipment, addEquipment, addFailedEquipment, addFiringSolution, addGhostTargetDefensiveBonus, addGhostTargetOffensiveBonus, addGroundAttackedByThisTurn, addIMPHits, addIntrinsicTransporters, addKill, addOffBoardObserver, addPassedThrough, addPilotingModifierForTerrain, addPilotingModifierForTerrain, addPilotingModifierForTerrain, addPilotingModifierForTerrain, addRoofRack, addSensorContact, addTargetedBySwarm, addTechComponent, addTowedUnit, addTransporter, addTransporter, addTsempHitThisTurn, addWeaponGroup, antiTSMVulnerable, applyDamage, applyGravityEffectsOnMP, applyMagneticPulse, armorStringFor, assignAMS, assignTMAMS, assignWeaponQuirk, attachINarcPod, attachNarcPod, braceLocation, C3MasterIs, calcElevation, calcElevation, calculateBattleValue, calculateBattleValue, calculateBattleValue, calculateBattleValue, calculateFreeC3MNodes, calculateFreeC3Nodes, canActivateBloodStalker, canAnnounceAbandon, canAssaultDrop, canAssist, canBePickedUp, canBrace, canEscape, canFall, canFall, canFireWeapon, canFlee, canFlee, canFleeFrom, canFleeInState, canFlipArms, canGoDown, canGoHullDown, canGoUp, canHide, canInitiateInfantryVsInfantryCombat, canLayDemolitionCharges, canLayMine, canLoad, canLoad, canonUnitWithInvalidBuild, canPerformGroundSalvageOperations, canPerformSpaceSalvageOperations, canPickupCarryableObject, canPickupGroundObject, canReinforceInfantryVsInfantry, canShutdownEi, canTow, canTransferCriticalSlots, canUnjamRAC, canUnstickByJumping, changeHeatBuildup, checkBogDown, checkDislodgeSwarmers, checkForMASCFailure, checkForSuperchargerFailure, checkGetUp, checkGunningIt, checkLandingInHeavyWoods, checkLandingOnBlackIce, checkLandingOnIce, checkLandingWithDamage, checkLandingWithPrototypeJJ, checkMovedTooFast, checkMovementInBuilding, checkRecklessMove, checkRubbleMove, checkRunningWithDamage, checkSideSlip, checkSkid, checkSprintingWithMASCAndSupercharger, checkSprintingWithMASCXorSupercharger, checkTurnModeFailure, checkUnstall, checkUsingOverdrive, checkWaterMove, checkWaterMove, chooseSide, clearAttackedByThisTurn, clearBombs, clearDestroyedNarcPods, clearDetectedBy, clearFiringSolutions, clearHeatBreakdown, clearInfantryCombatState, clearNarcAndiNarcPods, clearPartialRepairs, clearSeenBy, clearSensorContacts, climbMode, countEquipment, countForStrengthSum, countMisc, countPartialRepairs, countQuirks, countQuirks, countWeaponQuirks, countWorkingMisc, countWorkingMisc, countWorkingMisc, crewCanLeave, critStateCount, damage, damageBayDoor, damagedJumpJets, damageDockCollar, damageDoorRecovery, damagedSCMCritCount, damageSystem, damageSystem, deactivateRadicalHS, defaultCrewType, deployOffBoard, destroy, destroyLocation, destroyLocation, destroyOneSearchlight, destroyRetractableBlade, disconnectUnit, doBattleValueCalculation, doCheckEngineStallRoll, doomedInExtremeTemp, doomedInVacuum, doomedOnGround, dropCarriedObject, dropCarriedObject, dropGroundObjects, elevationOccupied, elevationOccupied, endOfTurnCargoInteraction, entityIsQuad, equals, extendBlade, factionTechLevel, findTargetedDisplacement, firstArmorIndex, fixElevation, formatHeat, gameOptions, generalName, generateDisplayName, generateShortName, getAbandonmentAnnouncedRound, getActiveSensor, getActiveSubEntities, getActiveUMUCount, getActiveVibrobladeHeat, getActiveVibrobladeHeat, getAllGyroCodeName, getAllowedPhysicalAttacks, getAllTowedUnits, getAllUMUCount, getAlreadyTwisted, getAlternateCost, getAltitude, getAmmo, getAmmo, getAmmo, getAnyTypeMaxJumpMP, getArmedMPBoosters, getArmor, getArmor, getArmor, getArmoredComponentTechAdvancement, getArmorForReal, getArmorForReal, getArmorString, getArmorString, getArmorTechLevel, getArmorTechRating, getArmorType, getArmorWeight, getArmorWeight, getArmsFlipped, getASEWAffected, getAttackedByThisTurn, getAttackingEntity, getBAPRange, getBARRating, getBase64Icon, getBaseAvailability, getBaseChassisFireConWeight, getBaseChassisValue, getBaseEngineValue, getBasePilotingRoll, getBasePilotingRoll, getBay, getBayByAmmo, getBayById, getBayLoadedUnitIds, getBayPersonnel, getBlockedFiringLocations, getBloodStalkerTarget, getBlueShieldRounds, getBoardId, getBoardLocation, getBombLoadout, getBombLoadout, getBombs, getBombs, getBoobyTrap, getBoobyTrapDamage, getBraceMPCost, getBvCalculator, getC3ecmAffected, getC3iNextUUIDAsString, getC3Master, getC3MasterId, getC3MasterIsUUIDAsString, getC3NetId, getC3Top, getC3UUIDAsString, getCamouflage, getCamouflageOrElse, getCamouflageOrElse, getCamouflageOrElseOwners, getCargoMpReduction, getCarriedObject, getCarriedObjects, getChassis, getClanChassisName, getClimbingLevelsChosen, getClubs, getCollarById, getCommonDate, getCommonDateRange, getConnectedUnits, getConsecutiveRHSUses, getConversionMode, getCoolantFailureAmount, getCost, getCrew, getCritical, getCriticalSlots, getCustomWeaponOrder, getCustomWeaponOrder, getDamagedCriticalSlots, getDamageLevel, getDamageLevel, getDamageReductionFromModularArmor, getDefaultPickupLocations, getDependentLocation, getDeployRound, getDisplacementAttack, getDisplayName, getDistinctCarriedObjects, getDockingCollars, getDocks, getDocks, getDropCargoLocationMap, getDroppableUnits, getDuplicateMarker, getEarliestTechDate, getEarliestTechDateAndEra, getECCMInfo, getECMInfo, getECMStrength, getEMPInterferenceRounds, getEMPShutdownRounds, getEmptyCriticalSlots, getEngine, getEngineTechRating, getEngineType, getEntityMajorTypeName, getEntityTypeName, getEquipment, getEquipment, getEquipmentForWeaponQuirk, getEquipmentNum, getEquipmentType, getEvasionBonus, getExteriorUnitAt, getExternalBombLoadout, getExternalId, getExternalIdAsString, getExternalUnits, getExtinctionDate, getExtinctionDate, getExtinctionRange, getExtraC3BV, getExtraCommGearTons, getExtremeRangeModifier, getFacing, getFacingName, getFailedEquipment, getFighterBays, getFiringSolutions, getFleeZone, getFluff, getFluffImage, getForceGeneratorAvailability, getForceId, getForceString, getFreeC3iUUID, getFreeNC3UUID, getFullChassis, getGame, getGaveKillCredit, getGenericBattleValue, getGhostTargetDefensiveBonus, getGhostTargetOffensiveBonus, getGhostTargetOverride, getGhostTargetRoll, getGhostTargetRollMoS, getGoodCriticalSlots, getGrappled, getGrappleSide, getGroundAttackedByThisTurn, getGyroType, getHeading, getHeat, getHeatBreakdown, getHeatCapacity, getHeatFiringModifier, getHeatInArc, getHeatMPReduction, getHeight, getHiddenActivationPhase, getHitchCarrying, getHitchLocations, getHitCriticalSlots, getHittableCriticalSlots, getHQIniBonus, getIcon, getId, getImpLastTurn, getImpMpReduction, getImpToHitModifier, getINarcPodsAttached, getIndividualWeaponList, getInfantryCombatTargetId, getInfantryCombatTurnCount, getInitialBV, getInternal, getInternal, getInternalBombLoadout, getInternalForReal, getInternalString, getIntroductionDate, getIntroductionDate, getIntroductionDateAndEra, getInvalidSourceBuildReasons, getIsJumpingNow, getJumpHeat, getJumpMP, getJumpMP, getJumpMPWithTerrain, getJumpType, getKillerId, getKillNumber, getKills, getLabArmorTonnage, getLabTotalArmorPoints, getLastTarget, getLastTargetDisplayName, getLaunchableDropships, getLaunchableFighters, getLaunchableSmallCraft, getLoadedKeepers, getLoadedTrailers, getLoadedUnits, getLocationAbbr, getLocationAbbr, getLocationDamage, getLocationFromAbbr, getLocationName, getLocationName, getLocationStatus, getLongRangeModifier, getLOSRangeModifier, getMagneticPulseRounds, getManualBV, getMASC, getMASCTarget, getMASCTurns, getMaxElevationDown, getMaxElevationDown, getMaxWeaponRange, getMaxWeaponRange, getMechanicalJumpBoosterMP, getMechanicalJumpBoosterMP, getMediumRangeModifier, getMisc, getMisc, getMiscEquipment, getMissionRoles, getMixedTechAdvancement, getModel, getMotiveSideMod, getMovedBackwards, getMovementBeforeSkidPSRModifier, getMovementMode, getMovementModeAsString, getMPBoosters, getMPBoosters, getMpUsedLastRound, getMulId, getNC3NextUUIDAsString, getNeuralInterfaceMode, getNewRoundNovaNetworkString, getNextSensor, getNumberOfCriticalSlots, getNumberOfCriticalSlots, getNumberOfCriticalSlots, getNumberOfCriticalSlots, getNumberOfShields, getOArmor, getOArmor, getOArmor, getObsoleteQuirkValue, getObsoleteRepairModifier, getObsoleteResaleModifier, getObsoleteYear, getObsoleteYearForModifiers, getObsoleteYears, getOccupiedCoords, getOccupiedHex, getOffBoardDirection, getOffBoardDistance, getOInternal, getOInternal, getOmniAdvancement, getOmniAdvancement, getOriginalBuildYear, getOriginalChassis, getOriginalJumpMP, getOriginalJumpMP, getOriginalModel, getOriginalNovaC3NetId, getOriginalRunMP, getOriginalUnitFileUUID, getOriginalWalkMP, getOwner, getOwnerId, getPartialRepairs, getPassedThrough, getPassedThroughBoardId, getPassedThroughFacing, getPassengerCapacityWithoutBayCrew, getPatchworkArmorAdvancement, getPendingVariableRangeTargetingMode, getPickedUpMekWarriors, getPickupLocationMap, getPlayerPickedPassThrough, getPodMountedTroopCarryingSpace, getPosition, getPowerAmplifierWeight, getPriorPosition, getProductionDate, getProductionDate, getProductionDateRange, getPrototypeDate, getPrototypeDate, getPrototypeRangeDate, getPublished, getPublishedSources, getQuirkIniBonus, getQuirkList, getQuirks, getRecoveryTime, getRecoveryTurn, getReintroductionDate, getReintroductionDate, getRemovalCondition, getRetreatedDirection, getRole, getRunHeat, getRunMP, getRunMPasString, getRunMPasString, getRunMPWithoutMASC, getRunningGravityLimit, getsAutoExternalSearchlight, getSearchlightOverride, getSecondaryFacing, getSecondaryPositions, getSelfDestructedThisTurn, getSelfDestructing, getSelfDestructInitiated, getSensorCheck, getSensorContacts, getSensors, getShortName, getShortNameRaw, getShortRangeModifier, getSource, getSources, getSpotTargetId, getSprintHeat, getSprintMP, getSprintMP, getSprintMPWithOneMASC, getSprintMPWithoutMASC, getStandingHeat, getStartingAnyNWx, getStartingAnyNWx, getStartingAnyNWy, getStartingAnyNWy, getStartingAnySEx, getStartingAnySEx, getStartingAnySEy, getStartingAnySEy, getStartingOffset, getStartingOffset, getStartingPos, getStartingPos, getStartingWidth, getStartingWidth, getStaticTechLevel, getStrength, getStructuralTechRating, getStructureTechLevel, getStructureType, getSubEntities, getSuperCharger, getSuperchargerTarget, getSuperchargerTurns, getSwarmAttackerId, getSwarmTargetId, getTaggedBy, getTargetBay, getTargetedBySwarm, getTargetType, getTaserFeedBackRounds, getTaserInterference, getTaserInterferenceHeat, getTaserInterferenceRounds, getTaserShutdownRounds, getTCPInitiativeBonus, getTechBase, getTechBaseDescription, getTechBaseDescriptions, getTechFaction, getTechLevel, getTechLevelYear, getTechLevelYears, getTechRating, getTilesetModeString, getTMTracker, getTonnage, getTotalAmmoOfType, getTotalArmor, getTotalInternal, getTotalMunitionsOfType, getTotalOArmor, getTotalOInternal, getTotalWeaponList, getTowedBy, getTowing, getTractor, getTraitorId, getTransferLocation, getTransportBays, getTransportId, getTransports, getTroopCarryingSpace, getTrooperAtLocation, getTsempEffect, getTsempHitsThisTurn, getUnitFileUUID, getUnitNumber, getUnitsUnloadableFromBays, getUnitsUnloadableFromNonBays, getUnloadableUnits, getUnused, getUnused, getUnusedString, getUnusedString, getUseManualBV, getValidBraceLocations, getValidHalfWeightPickupLocations, getVariableRangeTargetingMode, getVariableRangeTargetingModifier, getVector, getVectors, getVelocity, getVibroClaws, getWalkHeat, getWalkMP, getWeapon, getWeaponBayList, getWeaponFiringHeight, getWeaponFiringPosition, getWeaponGroupList, getWeaponList, getWeaponListWithHHW, getWeapons, getWeaponSortOrder, getWeight, getWeightClass, getWeightClassName, getWhoCanDetect, getWhoCanSee, getYear, hasAbility, hasAbility, hasActivatedRadicalHS, hasActiveBlueShield, hasActiveDNI, hasActiveECCM, hasActiveECM, hasActiveECM, hasActiveEiCockpit, hasActiveNovaCEWS, hasAimModeTargComp, hasAnyC3System, hasAnyTypeNarcPodsAttached, hasArcFired, hasArmoredChassis, hasArtillery, hasBadLegs, hasBAP, hasBAP, hasBARArmor, hasBattleArmorHandles, hasBoobyTrap, hasBoostedC3, hasC3, hasC3i, hasC3M, hasC3MM, hasC3S, hasCASEII, hasCASEII, hasDamagedRHS, hasDetectedEntity, hasDisplacementAttack, hasDNICockpitMod, hasDNIImplant, hasDNIInducedHardToPilot, hasDroneOs, hasECM, hasEiCockpit, hasEmbeddedIcon, hasEMPInterferenceHeat, hasEngine, hasEntityScopedPreEndDeclaration, hasEnvironmentalSealing, hasETypeFlag, hasExternalSearchlight, hasFallen, hasFiredTsemp, hasFiringSolutionFor, hasFleeZone, hasFlotationHull, hasFrontMountedBulldozer, hasFrontMountedSaw, hasFunctionalArmAES, hasFunctionalLegAES, hasGhostTargetEquipment, hasGhostTargets, hasHardenedArmor, hasHarJelIn, hashCode, hasHierarchicalC3, hasHipCrit, hasINarcPodsAttached, hasInfernoAmmo, hasLegActuatorCrit, hasLinkedMGA, hasLoweredShield, hasLoweredShield, hasMinesweeper, hasMisc, hasMisc, hasMisc, hasModularArmor, hasModularArmor, hasMulId, hasNarcPodsAttached, hasNavalC3, hasNhC3, hasNoDefenseShield, hasNovaCEWS, hasObsoleteQuirk, hasOccupiedHex, hasOriginalBuildYear, hasPatchworkArmor, hasQuirk, hasRaisedShield, hasRaisedShield, hasRearArmor, hasRearMountedBulldozer, hasRHSWentUp, hasSCM, hasSearchlight, hasSeenEntity, hasSensorContactFor, hasShield, hasStealth, hasSystem, hasTAG, hasTargComp, hasTCPAimedShotCapability, hasUMU, hasUndamagedCriticalSlots, hasUnloadedUnitsFromBays, hasUsedRHSLastTurn, hasVariableRangeTargeting, hasViableWeapons, hasVibroblades, hasWorkingBackhoe, hasWorkingBulldozer, hasWorkingMisc, hasWorkingMisc, hasWorkingMisc, hasWorkingMisc, hasWorkingRadicalHS, hasWorkingSCM, hasWorkingSystem, height, hitAllCriticalSlots, incrementInfantryCombatTurnCount, incrementMASCAndSuperchargerLevels, initializeArmor, initializeInternal, initMilitary, initTechAdvancement, isAbandoned, isActive, isActive, isActiveOption, isAeroLandedOnGroundMap, isAirborne, isAirborneAeroOnGroundMap, isAirborneVTOLorWIGE, isAssaultDropInProgress, isAttackingThisTurn, isBATaserShutdown, isBoardable, isBoardProhibited, isBoardProhibited, isBoobyTrapInitiated, isBracing, isC3CompanyCommander, isC3IndependentMaster, isCanon, isCapitalFighter, isCapitalFighter, isCapitalScale, isCaptured, isCarcass, isCarefulStand, isCarryableObject, isChainWhipGrappled, isChameleonShieldActive, isChameleonShieldOn, isCharging, isChassisFamiliarityEligible, isClan, isClanArmor, isClearingMinefield, isClearingWoods, isClimbing, isCommander, isConvertingNow, isDangling, isDeployed, isDesignValid, isDestroyed, isDetectedByEnemy, isDone, isDoomed, isDropping, isEiShutdown, isEjectionPossible, isElevationValid, isEligibleFor, isEligibleForArtyAutoHitHexes, isEligibleForFiring, isEligibleForInfantryVsInfantry, isEligibleForMovement, isEligibleForOffboard, isEligibleForPavementOrRoadBonus, isEligibleForPhysical, isEligibleForPreEndDeclarations, isEligibleForTargetingPhase, isEnemyOf, isEvading, isEverSeenByEnemy, isFindingClub, isFiredTsempThisTurn, isFirefighter, isGhostTargetCapable, isGrappleAttacker, isGrappledThisRound, isGyroDestroyed, isHardenedArmorDamaged, isHidden, isHullDown, isIlluminated, isImmobile, isImmobileForJump, isImpEcmAffected, isINarcedBy, isINarcedWith, isInBuilding, isInDemolishableStructureHex, isInfantryCombatAttacker, isInfantryCombatWantsWithdrawal, isIntroLevel, isInvulnerable, isJumpingWithMechanicalBoosters, isLargeCraft, isLayingMines, isLoadableThisTurn, isLocationBad, isLocationBlownOff, isLocationBlownOffThisPhase, isLocationDeadly, isLocationDeadly, isLocationDoomed, isLocationProhibited, isLocationProhibited, isLocationProhibited, isLocationProhibited, isLocationTrulyDestroyed, isMakingDfa, isMakingVTOLGroundAttack, isManualShutdown, isMASCUsed, isMilitary, isMixedTech, isNarcedBy, isNaval, isNeuralInterfaceEnabled, isNeuralInterfaceFullTracking, isNOE, isNonCanonBySource, isNonCanonBySource, isNotCrewedEntityType, isNuclearHardened, isNullSigActive, isNullSigOn, isObsoleteInYear, isOffBoard, isOffBoardObserved, isOmni, isOnAtmosphericGroundMap, isPartOfFighterSquadron, isPendingAbandon, isPermanentlyImmobilized, isPodMountedTransport, isPowerReverse, isProne, isPushing, isRamming, isReckless, isSalvage, isSelectableThisTurn, isSensorReturn, isShutDown, isShutDownThisPhase, isSpaceborne, isSpotting, isStalled, isStartupThisPhase, isStuck, isSufferingEMI, isSuperchargerUsed, isSuperHeavy, isSurfaceNaval, isTargetable, isTargetOfDisplacementAttack, isTractor, isTrailer, isTransported, isTrapped, isUncrewed, isUnderwater, isUnjammingRAC, isUnloadedThisTurn, isUnofficial, isUsingManAce, isUsingSearchlight, isVisibleToEnemy, isVoidSigActive, isVoidSigOn, isWeaponBlockedAt, isWeaponBlockedByTowing, isWeaponOrderChanged, isWeaponValidForPhase, itemOppositeTech, joinLocationAbbr, load, load, load, load, loadAllWeapons, loadDefaultCustomWeaponOrder, loadedUnitsHaveActiveECM, loadQuirks, loadWeapon, loadWeapon, loadWeaponWithSameAmmo, loadWeaponWithSameAmmo, locationHasCase, locationIsLeg, madePointblankShot, maxGroundObjectTonnage, modifyPhysicalDamageForMeleeSpecialist, needsRollToStand, newPhase, newRoundNovaNetSwitch, newRoundVariableRangeSwitch, nextConversionMode, onSameC3NetworkAs, onSameC3NetworkAs, ownerHasDemolitionCharge, passedOver, passedThrough, passedThroughPrevious, passedWithin, performManualShutdown, performManualStartup, pickUp, pickupCarryableObject, postProcessFacingChange, processPickupStep, processPickupStepEntity, recalculateTechAdvancement, recordedTechLevel, recover, refreshLocations, regenerateUnitFileUUID, relHeight, reloadEmptyWeapons, removeAllINarcPods, removeAllTransporters, removeCriticalSlots, removeFiringSolution, removeINarcPod, removeMisc, removePartialCoverHits, removeSensorContact, removeTowedUnit, removeTransporter, resetBayDoors, resetBays, resetBombAttacks, resetCoolantFailureAmount, resetFiringArcs, resetPickedUpMekWarriors, resetTransporter, restore, rollMovementInBuilding, scmCritStateCount, setAbandonmentAnnouncedRound, setAlreadyTwisted, setAltitude, setArcFired, setArmor, setArmor, setArmor, setArmorTechLevel, setArmorTechLevel, setArmorTechRating, setArmorTechRating, setArmorTonnage, setArmorType, setArmorType, setArmorType, setArmsFlipped, setArmsFlipped, setASEWAffected, setAssaultDropInProgress, setBARRating, setBARRating, setBaseChassisFireConWeight, setBATaserShutdown, setBloodStalkerTarget, setBoardId, setBoobyTrapInitiated, setBraceLocation, setC3ecmAffected, setC3iNextUUIDAsString, setC3Master, setC3Master, setC3MasterIsUUIDAsString, setC3NetId, setC3NetId, setC3NetIdSelf, setC3UUID, setC3UUIDAsString, setCamouflage, setCanon, setCanUnstickByJumping, setCaptured, setCarcass, setCarefulStand, setCarriedObjects, setChassis, setClanChassisName, setClearingMinefield, setClearingWoods, setClimbing, setClimbingLevelsChosen, setClimbMode, setCommander, setConsecutiveRHSUses, setConversionMode, setConvertingNow, setCrew, setCritical, setCustomWeaponOrder, setCustomWeaponOrder, setDangling, setDeployed, setDeployRound, setDesignValid, setDetectedByEnemy, setDisplacementAttack, setDisplayName, setDone, setDoomed, setDuplicateMarker, setEiShutdown, setElevation, setEMI, setEMPInterference, setEMPShutdownRounds, setEngineTechRating, setEngineTechRating, setEvading, setEverSeenByEnemy, setExternalId, setExternalIdAsString, setExternalSearchlight, setFacing, setFallen, setFindingClub, setFiredTsempThisTurn, setFleeZone, setForceGeneratorAvailability, setForceId, setForceString, setGame, setGameOptions, setGrappled, setGrappledThisRound, setGrappleSide, setHardenedArmorDamaged, setHasDamagedRHS, setHasFiredTsemp, setHidden, setHiddenActivationPhase, setHullDown, setIcon, setId, setIGame, setIlluminated, setImpLastTurn, setInfantryCombatAttacker, setInfantryCombatTargetId, setInfantryCombatTurnCount, setInfantryCombatWantsWithdrawal, setInitialBV, setInternal, setInternal, setInvalidSourceBuildReasons, setIsJumpingNow, setJumpingWithMechanicalBoosters, setLandedAssaultDrop, setLastTarget, setLastTargetDisplayName, setLayingMines, setLoadedKeepers, setLoadedThisTurn, setLocationBlownOff, setLocationBlownOffThisPhase, setLocationStatus, setLocationStatus, setMadePointblankShot, setMagneticPulseHit, setManualBV, setManualShutdown, setMASCUsed, setMissionRoles, setMixedTech, setModel, setMovedBackwards, setMovementMode, setMulId, setNC3NextUUIDAsString, setNCrew, setNeverDeployed, setNewRoundNovaNetworkString, setNextSensor, setNMarines, setNPassenger, setOffBoard, setOriginalBuildYear, setOriginalJumpMP, setOriginalWalkMP, setOwner, setOwnerId, setPassedThrough, setPassedThroughBoardId, setPassedThroughFacing, setPendingAbandon, setPendingVariableRangeTargetingMode, setPlayerPickedPassThrough, setPosition, setPosition, setPowerReverse, setProne, setPublished, setPublishedSources, setQuirks, setRamming, setRapidFire, setReckless, setRecoveryTurn, setRemovalCondition, setRetreatedDirection, setSalvage, setSearchlightOverride, setSearchlightState, setSecondaryFacing, setSecondaryFacing, setSelfDestructedThisTurn, setSelfDestructing, setSelfDestructInitiated, setShutDown, setShutDownThisPhase, setSource, setSources, setSpotTargetId, setSpotting, setStartingAnyNWx, setStartingAnyNWy, setStartingAnySEx, setStartingAnySEy, setStartingOffset, setStartingPos, setStartingWidth, setStartupThisPhase, setStruck, setStructuralTechRating, setStructuralTechRating, setStructureTechLevel, setStructureType, setStructureType, setStuck, setSuperchargerUsed, setSwarmAttackerId, setSwarmTargetId, setTaggedBy, setTargetBay, setTaserFeedback, setTaserInterference, setTaserShutdownRounds, setTechFaction, setTechLevel, setTowedBy, setTowing, setTractor, setTraitorId, setTransportId, setTsempEffect, setTurnInterrupted, setUnitFileUUID, setUnitNumber, setUnitRole, setUnjammingRAC, setUnloaded, setUsedRHSLastTurn, setUsedSearchlight, setUseManualBV, setVariableRangeTargetingMode, setVectors, setVisibleToEnemy, setWeaponHit, setWeaponOrderChanged, setWeaponSortOrder, setWeight, setWhoCanDetect, setWhoCanSee, setWigeLiftoffHover, setYear, shouldDeploy, shouldOffBoardDeploy, shouldUseEdge, sideTable, sideTable, sideTable, sideTable, sideTableRam, slotNumber, specificName, statusToString, statusToString, statusToString, storeOriginalUnitData, storeSavedUnitData, taserShutdown, toggleConversionMode, toString, towUnit, turnWasInterrupted, unload, updateBays, updateDuplicateMarkerAfterDelete, usedSearchlight, usedTag, usesTurnMode, usesWeaponBays, wasLoadedThisTurn, wasNeverDeployed, wasStruck, weaponFired, weaponFiredFrom, whichBay, wigeLiftoffHoverMethods inherited from class megamek.common.turns.TurnOrdered
clearInitiative, generateTurnOrder, getAeroTurns, getDropshipTurns, getEvenTurns, getInitCompensationBonus, getInitiative, getJumpshipTurns, getMultiTurns, getNormalTurns, getOtherTurns, getSmallCraftTurns, getSpaceStationTurns, getTeleMissileTurns, getWarshipTurns, incrementAeroTurns, incrementDropshipTurns, incrementEvenTurns, incrementJumpshipTurns, incrementMultiTurns, incrementOtherTurns, incrementSmallCraftTurns, incrementSpaceStationTurns, incrementTeleMissileTurns, incrementWarshipTurns, resetAeroTurns, resetDropshipTurns, resetEvenTurns, resetInitiativeCompensation, resetJumpshipTurns, resetMultiTurns, resetOtherTurns, resetSmallCraftTurns, resetSpaceStationTurns, resetTeleMissileTurns, resetWarshipTurns, rollInitAndResolveTies, rollInitAndResolveTies, rollInitiative, rollInitiative, setInitCompensationBonus, setInitiativeMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface megamek.common.units.BTObject
hasAerodyneSpheroidDistinction, isAerodyne, isAerospace, isAerospaceFighter, isAerospaceSV, isBattleArmor, isBattlefieldSupportAsset, isBattleMek, isCombatVehicle, isConventionalFighter, isConventionalInfantry, isDropShip, isFighter, isFixedWingSupport, isGround, isHandheldWeapon, isIndustrialMek, isInfantry, isJumpShip, isLargeAerospace, isMek, isObjectiveMarker, isProtoMek, isQuadMek, isSingleUnit, isSmallCraft, isSpaceStation, isSupportVehicle, isTripodMek, isUnitGroup, isVehicle, isWarShipMethods inherited from interface megamek.common.interfaces.CombatRole
hasRoleMethods inherited from interface megamek.common.interfaces.ForceAssignable
partOfForceMethods inherited from interface megamek.common.units.IAero
canLandHorizontally, canLandVertically, canTakeOffHorizontally, canTakeOffVertically, checkDown, checkHover, checkManeuver, checkRolls, checkStall, checkThrustSI, checkThrustSITotal, checkVelocityDouble, checkVerticalTakeOff, getAltitude, getFuelUsed, getLandingControlRoll, getLandingControlRoll, getLandingCoords, getLandingLength, getTakeOffLength, hasRoomForHorizontalLanding, hasRoomForHorizontalLanding, hasRoomForHorizontalTakeOff, hasRoomForLanding, hasRoomForLanding, hasRoomForVerticalLanding, hasRoomForVerticalLanding, height, isAirborne, isSpaceborne, land, liftOff, requiresFuel, rollArcs, taxingAeroProhibitedTerrains, updateWeaponGroups, useFuelMethods inherited from interface megamek.common.units.IBomber
applyBombs, clearBombs, getBombChoices, getBombPoints, getBombPoints, getBombs, getExternalBombPoints, getInternalBombsDamageTotal, getMaxExtBombSize, getMaxIntBombSize, getVTOLBombTarget, isVTOLBombing, setBombChoices, setVTOLBombTargetMethods inherited from interface megamek.common.equipment.ICarryable
getCarriedObjectDamageAllocation, targetForArmHitToHitCarriedObjectMethods inherited from interface megamek.common.game.InGameObject
hasOwnerMethods inherited from interface megamek.common.interfaces.ITechnology
calcEraAvailability, calcEraAvailability, calcYearAvailability, calcYearAvailability, calcYearAvailability, findMinimumRulesLevel, findMinimumRulesLevel, getAdvancedRange, getAdvancedRange, getCodeFromIOAbbr, getCodeFromMMAbbr, getCommonDate, getEraAvailabilityName, getEraAvailabilityName, getExperimentalRange, getExperimentalRange, getExtinctionDate, getExtinctionRange, getFullRatingName, getFullRatingName, getIntroductionDate, getProductionDate, getPrototypeDate, getReintroductionDate, getSimpleLevel, getSimpleLevel, getSimpleLevel, getStandardRange, getStandardRange, getTechLevel, getTechLevel, getTechRatingName, isAvailableIn, isAvailableIn, isAvailableIn, isExtinct, isExtinct, isExtinct, isLegal, isLegalMethods inherited from interface megamek.common.units.Targetable
isBuildingEntityOrGunEmplacement, isHexBeingBombed, isOnBoardMethods inherited from interface megamek.common.equipment.Transporter
alwaysDamageCargoIfTransportHit, canTow, getCarryables, getNameForRecordSheets, getNumberLoadedThisTurn, getNumberUnloadedThisTurn, getTransporterType, hardpointCost, setEntity
-
Field Details
-
LOC_NOSE
public static final int LOC_NOSE- See Also:
-
LOC_LEFT_WING
public static final int LOC_LEFT_WING- See Also:
-
LOC_RIGHT_WING
public static final int LOC_RIGHT_WING- See Also:
-
LOC_AFT
public static final int LOC_AFT- See Also:
-
LOC_WINGS
public static final int LOC_WINGSLocation used for capital fighters and squadrons- See Also:
-
LOC_FUSELAGE
public static final int LOC_FUSELAGELocation used for equipment not allocated to a firing arc- See Also:
-
RAM_TOWARD_DIR
public static final int RAM_TOWARD_DIR- See Also:
-
RAM_TOWARD_OBL
public static final int RAM_TOWARD_OBL- See Also:
-
RAM_AWAY_OBL
public static final int RAM_AWAY_OBL- See Also:
-
RAM_AWAY_DIR
public static final int RAM_AWAY_DIR- See Also:
-
HEAT_SINGLE
public static final int HEAT_SINGLE- See Also:
-
HEAT_DOUBLE
public static final int HEAT_DOUBLE- See Also:
-
COCKPIT_STANDARD
public static final int COCKPIT_STANDARD- See Also:
-
COCKPIT_SMALL
public static final int COCKPIT_SMALL- See Also:
-
COCKPIT_COMMAND_CONSOLE
public static final int COCKPIT_COMMAND_CONSOLE- See Also:
-
COCKPIT_PRIMITIVE
public static final int COCKPIT_PRIMITIVE- See Also:
-
COCKPIT_STRING
-
COCKPIT_SHORT_STRING
-
CRIT_NONE
public static final int CRIT_NONE- See Also:
-
CRIT_CREW
public static final int CRIT_CREW- See Also:
-
CRIT_FCS
public static final int CRIT_FCS- See Also:
-
CRIT_WEAPON
public static final int CRIT_WEAPON- See Also:
-
CRIT_CONTROL
public static final int CRIT_CONTROL- See Also:
-
CRIT_SENSOR
public static final int CRIT_SENSOR- See Also:
-
CRIT_BOMB
public static final int CRIT_BOMB- See Also:
-
CRIT_ENGINE
public static final int CRIT_ENGINE- See Also:
-
CRIT_FUEL_TANK
public static final int CRIT_FUEL_TANK- See Also:
-
CRIT_AVIONICS
public static final int CRIT_AVIONICS- See Also:
-
CRIT_GEAR
public static final int CRIT_GEAR- See Also:
-
CRIT_HEATSINK
public static final int CRIT_HEATSINK- See Also:
-
CRIT_CARGO
public static final int CRIT_CARGO- See Also:
-
CRIT_DOCK_COLLAR
public static final int CRIT_DOCK_COLLAR- See Also:
-
CRIT_DOOR
public static final int CRIT_DOOR- See Also:
-
CRIT_KF_BOOM
public static final int CRIT_KF_BOOM- See Also:
-
CRIT_LIFE_SUPPORT
public static final int CRIT_LIFE_SUPPORT- See Also:
-
CRIT_LEFT_THRUSTER
public static final int CRIT_LEFT_THRUSTER- See Also:
-
CRIT_RIGHT_THRUSTER
public static final int CRIT_RIGHT_THRUSTER- See Also:
-
CRIT_CIC
public static final int CRIT_CIC- See Also:
-
CRIT_KF_DRIVE
public static final int CRIT_KF_DRIVE- See Also:
-
CRIT_GRAV_DECK
public static final int CRIT_GRAV_DECK- See Also:
-
CRIT_WEAPON_BROAD
public static final int CRIT_WEAPON_BROAD- See Also:
-
AERO_EFFECTIVE_ELEVATION
public static final int AERO_EFFECTIVE_ELEVATION- See Also:
-
damThresh
protected int[] damThresh -
maxIntBombPoints
protected int maxIntBombPoints -
maxExtBombPoints
protected int maxExtBombPoints -
intBombChoices
-
extBombChoices
-
usedInternalBombs
protected int usedInternalBombs -
TA_ASF
-
TA_ASF_PRIMITIVE
-
COCKPIT_TA
-
CIVILIAN
public static final int CIVILIAN- See Also:
-
MILITARY
public static final int MILITARY- See Also:
-
designType
protected int designType
-
-
Constructor Details
-
Aero
public Aero()
-
-
Method Details
-
canEjectCrew
public boolean canEjectCrew()An aerospace crew can only abandon on the ground; the server's abandonEntity has no airborne path.- Overrides:
canEjectCrewin classEntity
-
getLocationAbbreviations
- Specified by:
getLocationAbbreviationsin classEntity
-
getLocationNames
- Specified by:
getLocationNamesin classEntity
-
getUnitType
public int getUnitType()- Specified by:
getUnitTypein classEntity- See Also:
-
getConstructionTechAdvancement
Description copied from class:Entityreturn - the base construction option tech advancement- Specified by:
getConstructionTechAdvancementin classEntity
-
getCockpitTechAdvancement
-
getCockpitTechAdvancement
-
addSystemTechAdvancement
Description copied from class:EntityIncorporate dates for components that are not in the equipment list, such as engines and structure.- Overrides:
addSystemTechAdvancementin classEntity
-
setDesignType
public void setDesignType(int design) Sets the unit as either a civilian or military design -
setDestroyed
public void setDestroyed(boolean destroyed) - Overrides:
setDestroyedin classEntity
-
getDesignType
public int getDesignType()Returns the unit's design type -
isAeroSensorDestroyed
public boolean isAeroSensorDestroyed()A method to determine if an aero has suffered 3 sensor hits. When double-blind is on, this affects both standard visibility and sensor rolls- Overrides:
isAeroSensorDestroyedin classEntity
-
getWalkMP
-
getCurrentThrust
public int getCurrentThrust()- Specified by:
getCurrentThrustin interfaceIAero- Returns:
- same as
getWalkMP(megamek.common.MPCalculationSetting), but does not divide by 2 when grounded
-
locations
public int locations()Returns the number of locations in the entity -
getBodyLocation
public int getBodyLocation()Description copied from class:EntityDetermines where to place equipment that does not require a specific location. What this means varies byEntitytype.- Overrides:
getBodyLocationin classEntity- Returns:
- The location to place equipment that is not required to be assigned a location, defaulting to Entity.LOC_NONE for unit types that do not have such a location.
-
canChangeSecondaryFacing
public boolean canChangeSecondaryFacing()Description copied from class:EntityCan this entity change secondary facing at all?- Specified by:
canChangeSecondaryFacingin classEntity
-
isValidSecondaryFacing
public boolean isValidSecondaryFacing(int n) Description copied from class:EntityCan this entity torso/turret twist the given direction?- Specified by:
isValidSecondaryFacingin classEntity
-
clipSecondaryFacing
public int clipSecondaryFacing(int n) Aerospace really can't torso twist?- Specified by:
clipSecondaryFacingin classEntity- Returns:
- the closest valid secondary facing.
-
isOutControlTotal
public boolean isOutControlTotal()- Specified by:
isOutControlTotalin interfaceIAero
-
isOutControl
public boolean isOutControl()- Specified by:
isOutControlin interfaceIAero
-
isOutControlHeat
public boolean isOutControlHeat()- Specified by:
isOutControlHeatin interfaceIAero
-
isRandomMove
public boolean isRandomMove()- Specified by:
isRandomMovein interfaceIAero
-
didAccLast
public boolean didAccLast()- Specified by:
didAccLastin interfaceIAero
-
hasLifeSupport
public boolean hasLifeSupport()- Specified by:
hasLifeSupportin interfaceIAero
-
setLifeSupport
public void setLifeSupport(boolean b) -
isRolled
public boolean isRolled() -
setOutControl
public void setOutControl(boolean outControl) - Specified by:
setOutControlin interfaceIAero
-
setOutControlHeat
public void setOutControlHeat(boolean outControlHeat) - Specified by:
setOutControlHeatin interfaceIAero
-
setRandomMove
public void setRandomMove(boolean randomMove) - Specified by:
setRandomMovein interfaceIAero
-
setRolled
public void setRolled(boolean roll) -
setAccLast
public void setAccLast(boolean b) - Specified by:
setAccLastin interfaceIAero
-
getMaxBombPoints
public int getMaxBombPoints()- Specified by:
getMaxBombPointsin interfaceIBomber- Returns:
- The total number of bomb points that the bomber can carry.
-
getMaxIntBombPoints
public int getMaxIntBombPoints()- Specified by:
getMaxIntBombPointsin interfaceIBomber- Returns:
- maximum number of bomb points this bomber can mount internally
-
getMaxExtBombPoints
public int getMaxExtBombPoints()- Specified by:
getMaxExtBombPointsin interfaceIBomber- Returns:
- maximum number of bomb points this bomber can mount externally
-
autoSetMaxBombPoints
public void autoSetMaxBombPoints()Recalculates the internal and external hardpoints that this aero unit has. TM p.217, TW p.245 -
getIntBombChoices
- Specified by:
getIntBombChoicesin interfaceIBomber- Returns:
- The number of each internally-mounted bomb type that was selected prior to deployment
-
setIntBombChoices
Description copied from interface:IBomberSets the bomb type selections prior to deployment.- Specified by:
setIntBombChoicesin interfaceIBomber- Parameters:
bc- An array with the count of each bomb type as the value of the bomb type's index
-
getExtBombChoices
- Specified by:
getExtBombChoicesin interfaceIBomber- Returns:
- The number of each externally-mounted bomb type that was selected prior to deployment
-
setExtBombChoices
Description copied from interface:IBomberSets the bomb type selections for external mounts.- Specified by:
setExtBombChoicesin interfaceIBomber- Parameters:
bc- An array with the count of each bomb type as the value of the bomb type's index
-
clearBombChoices
public void clearBombChoices()Description copied from interface:IBomberSets the count of each bomb to zero- Specified by:
clearBombChoicesin interfaceIBomber
-
reduceMPByBombLoad
public int reduceMPByBombLoad(int t) - Specified by:
reduceMPByBombLoadin interfaceIBomber- Returns:
- The calculates movement factoring in the load of bombs currently on unit, t is current movement
-
setUsedInternalBombs
public void setUsedInternalBombs(int b) Description copied from interface:IBomberSet count of internal bombs used; this is used to reset, revert, or increase count of internal bombs a unit has dropped during a turn.- Specified by:
setUsedInternalBombsin interfaceIBomber
-
increaseUsedInternalBombs
public void increaseUsedInternalBombs(int b) Description copied from interface:IBomberIncrease count of internal bombs used this turn.- Specified by:
increaseUsedInternalBombsin interfaceIBomber
-
getUsedInternalBombs
public int getUsedInternalBombs()- Specified by:
getUsedInternalBombsin interfaceIBomber- Returns:
- the number of internal bombs used by this bomber during a turn, for IBB internal hit calculations.
-
setWhoFirst
public void setWhoFirst() -
getWhoFirst
Deprecated, for removal: This API element is subject to removal in a future version. -
getCurrentVelocity
public int getCurrentVelocity()- Specified by:
getCurrentVelocityin interfaceIAero
-
setCurrentVelocity
public void setCurrentVelocity(int velocity) - Specified by:
setCurrentVelocityin interfaceIAero
-
getNextVelocity
public int getNextVelocity()- Specified by:
getNextVelocityin interfaceIAero
-
setNextVelocity
public void setNextVelocity(int velocity) - Specified by:
setNextVelocityin interfaceIAero
-
getCurrentVelocityActual
public int getCurrentVelocityActual()- Specified by:
getCurrentVelocityActualin interfaceIAero
-
getPotCrit
public int getPotCrit() -
setPotCrit
public void setPotCrit(int crit) -
getSI
public int getSI() -
getOSI
public int getOSI() -
getNoseArmor
public int getNoseArmor()Used to determine modifier for landing; different for Aero and LAM.- Specified by:
getNoseArmorin interfaceIAero
-
getCapArmor
public int getCapArmor()- Specified by:
getCapArmorin interfaceIAero
-
setCapArmor
public void setCapArmor(int i) - Specified by:
setCapArmorin interfaceIAero
-
getCap0Armor
public int getCap0Armor()- Specified by:
getCap0Armorin interfaceIAero
-
getFatalThresh
public int getFatalThresh()- Specified by:
getFatalThreshin interfaceIAero
-
getCurrentDamage
public int getCurrentDamage()- Specified by:
getCurrentDamagein interfaceIAero
-
setCurrentDamage
public void setCurrentDamage(int i) - Specified by:
setCurrentDamagein interfaceIAero
-
setOSI
public void setOSI(int si) Set the starting Structural Integrity of this unit. Also sets the current SI as if bysetSI(int).- Parameters:
si- The new value for SI
-
autoSetSI
public void autoSetSI() -
autoSetCapArmor
public void autoSetCapArmor()- Specified by:
autoSetCapArmorin interfaceIAero
-
autoSetFatalThresh
public void autoSetFatalThresh()- Specified by:
autoSetFatalThreshin interfaceIAero
-
initializeSI
Deprecated.usesetOSI(int)instead -
setSI
public void setSI(int si) -
getSensorHits
public int getSensorHits()- Specified by:
getSensorHitsin interfaceIAero
-
setSensorHits
public void setSensorHits(int hits) -
getFCSHits
public int getFCSHits()- Specified by:
getFCSHitsin interfaceIAero
-
setFCSHits
public void setFCSHits(int hits) -
fuelTankHit
public boolean fuelTankHit() -
setFuelTankHit
public void setFuelTankHit(boolean value) -
setCICHits
public void setCICHits(int hits) -
getCICHits
public int getCICHits() -
setIgnoredCrewHits
public void setIgnoredCrewHits(int hits) -
getIgnoredCrewHits
public int getIgnoredCrewHits() -
getEngineHits
public int getEngineHits()- Specified by:
getEngineHitsin classEntity
-
setEngineHits
public void setEngineHits(int hits) -
getAvionicsHits
public int getAvionicsHits()- Specified by:
getAvionicsHitsin interfaceIAero
-
setAvionicsHits
public void setAvionicsHits(int hits) -
isGearHit
public boolean isGearHit() -
setGearHit
public void setGearHit(boolean hit) - Specified by:
setGearHitin interfaceIAero
-
getLandingGearMod
public int getLandingGearMod(boolean vTakeoff) Modifier to landing or vertical takeoff roll for landing gear damage.- Specified by:
getLandingGearModin interfaceIAero- Parameters:
vTakeoff- true if this is for a vertical takeoff, false if for a landing- Returns:
- the control roll modifier
-
getLandingGearPartialRepairs
public int getLandingGearPartialRepairs()- Specified by:
getLandingGearPartialRepairsin interfaceIAero
-
getAvionicsMisReplaced
public int getAvionicsMisReplaced()- Specified by:
getAvionicsMisReplacedin interfaceIAero
-
getAvionicsMisrepaired
public int getAvionicsMisrepaired()- Specified by:
getAvionicsMisrepairedin interfaceIAero
-
setOHeatSinks
public void setOHeatSinks(int hs) -
getOHeatSinks
public int getOHeatSinks() -
setHeatSinks
public void setHeatSinks(int hs) -
getHeatSinks
public int getHeatSinks()- Specified by:
getHeatSinksin interfaceIAero
-
getHeatSinkHits
public int getHeatSinkHits() -
setHeatType
public void setHeatType(int heatSinkType) -
getPodHeatSinks
public int getPodHeatSinks() -
setPodHeatSinks
public void setPodHeatSinks(int hs) -
tracksHeat
public boolean tracksHeat()Description copied from interface:TargetableUsed to identify a target that tracks heat buildup (Meks, ASFs, and small craft).- Specified by:
tracksHeatin interfaceTargetable- Returns:
- Whether the target tracks heat buildup.
-
setLeftThrustHits
public void setLeftThrustHits(int hits) -
getLeftThrustHits
public int getLeftThrustHits()- Specified by:
getLeftThrustHitsin interfaceIAero
-
setRightThrustHits
public void setRightThrustHits(int hits) -
getRightThrustHits
public int getRightThrustHits()- Specified by:
getRightThrustHitsin interfaceIAero
-
getOriginalFuel
public int getOriginalFuel() -
getFuel
public int getFuel() -
getCurrentFuel
public int getCurrentFuel()- Specified by:
getCurrentFuelin interfaceIAero
-
setFuel
public void setFuel(int gas) Sets the number of fuel points. -
setCurrentFuel
public void setCurrentFuel(int gas) - Specified by:
setCurrentFuelin interfaceIAero
-
getFuelPointsPerTon
public double getFuelPointsPerTon()- Specified by:
getFuelPointsPerTonin interfaceIAero
-
setFuelTonnage
public void setFuelTonnage(double fuelTons) Set number of fuel points based on fuel tonnage.- Specified by:
setFuelTonnagein interfaceIAero- Parameters:
fuelTons- The number of tons of fuel
-
getFuelTonnage
public double getFuelTonnage()Gets the fuel for this Aero in terms of tonnage.- Specified by:
getFuelTonnagein interfaceIAero- Returns:
- The number of tons of fuel on this Aero.
-
getStrategicFuelUse
public double getStrategicFuelUse()Used by SmallCraft and Jumpship and their child classes.- Returns:
- The tons of fuel burned in a day at 1G using strategic movement.
-
primitiveFuelFactor
public double primitiveFuelFactor()Some primitive aerospace units have their fuel efficiency reduced by a factor based on construction year.- Returns:
- The primitive fuel factor for the build year.
-
getHeatType
public int getHeatType() -
wasCritThresh
public boolean wasCritThresh()- Specified by:
wasCritThreshin interfaceIAero
-
setCritThresh
public void setCritThresh(boolean b) - Specified by:
setCritThreshin interfaceIAero
-
isImmobile
public boolean isImmobile()Description copied from class:EntityReturns true if the target is considered immobile (-4 to hit) as a target and also if it is considered immobile or temporarily or permanently immbolized for active movement. Overriding methods should check the status of the unit (shutdown, damage) and also the status of the crew (unconscious).- Specified by:
isImmobilein interfaceTargetable- Overrides:
isImmobilein classEntity- Returns:
- True if the target is considered immobile as a target and unable to move actively.
-
newRound
public void newRound(int roundNumber) Description copied from class:EntityStart a new round- Specified by:
newRoundin interfaceRoundUpdated- Overrides:
newRoundin classEntity- Parameters:
roundNumber- theintnumber of the new round
-
getMovementString
Returns the name of the type of movement used. This is tank-specific.- Specified by:
getMovementStringin classEntity
-
getMovementAbbr
Returns the name of the type of movement used. This is tank-specific.- Specified by:
getMovementAbbrin classEntity
-
getWeaponArc
public int getWeaponArc(int weaponNumber) Returns the Compute.ARC that the weapon fires into.- Specified by:
getWeaponArcin classEntity- Parameters:
weaponNumber- integer equipment number, index from equipment list- Returns:
- arc the specified weapon is in
-
isSecondaryArcWeapon
public boolean isSecondaryArcWeapon(int weaponId) Returns true if this weapon fires into the secondary facing arc. If false, assume it fires into the primary.- Specified by:
isSecondaryArcWeaponin classEntity
-
rollHitLocation
public HitData rollHitLocation(int table, int side, int aimedLocation, AimingMode aimingMode, int cover) Rolls up a hit location- Specified by:
rollHitLocationin classEntity
-
rollHitLocation
Description copied from class:EntityRolls up a hit location- Specified by:
rollHitLocationin classEntity
-
getTransferLocation
Gets the location that excess damage transfers to- Specified by:
getTransferLocationin classEntity
-
getBVTypeModifier
Deprecated, for removal: This API element is subject to removal in a future version.Not used directly but is overwritten in 5 other classes.- Returns:
- BV Type Modifier.
-
addEntityBonuses
Description copied from class:EntityAdd in any piloting skill mods- Specified by:
addEntityBonusesin classEntity
-
victoryReport
Description copied from class:EntityGenerates a vector containing reports on all useful information about this entity.- Specified by:
victoryReportin classEntity
-
getNoOfSlots
public int[] getNoOfSlots()- Specified by:
getNoOfSlotsin classEntity
-
getRunMP
-
getHeatCapacity
public int getHeatCapacity(boolean includeRadicalHeatSink) - Overrides:
getHeatCapacityin classEntity
-
getActiveSinks
public int getActiveSinks()- Specified by:
getActiveSinksin interfaceActiveHeatSinkController- Returns:
- the number of operable heat sinks that are currently active (switched on)
-
getActiveSinksNextRound
public int getActiveSinksNextRound()- Specified by:
getActiveSinksNextRoundin interfaceActiveHeatSinkController- Returns:
- the number of operable heat sinks that will be active next round, taking pending changes into account
-
setActiveSinksNextRound
public void setActiveSinksNextRound(int sinks) Description copied from interface:ActiveHeatSinkControllerRequests that the given number of heat sinks be active next round; the change takes effect in the End Phase.- Specified by:
setActiveSinksNextRoundin interfaceActiveHeatSinkController- Parameters:
sinks- the number of heat sinks that should be active
-
getHeatCapacityWithWater
public int getHeatCapacityWithWater()- Overrides:
getHeatCapacityWithWaterin classEntity- Returns:
- The amount of heat that the entity can sink each turn, factoring in whether the entity is standing in water.
-
getEngineCritHeat
public int getEngineCritHeat()- Overrides:
getEngineCritHeatin classEntity- Returns:
- The extra heat generated by engine crits.
-
autoSetInternal
public void autoSetInternal()Description copied from class:EntitySets the internal structure for every location to appropriate undamaged values for the unit and location.- Specified by:
autoSetInternalin classEntity
-
autoSetThresh
public void autoSetThresh() -
setThresh
public void setThresh(int val, int loc) -
initializeThresh
public void initializeThresh(int loc) -
getThresh
public int getThresh(int loc) -
getHighestThresh
public int getHighestThresh()- Specified by:
getHighestThreshin interfaceIAero
-
isRepairable
public boolean isRepairable()Determine if the unit can be repaired, or only harvested for spares.- Overrides:
isRepairablein classEntity- Returns:
- A
booleanthat istrueif the unit can be repaired (given enough time and parts); if this value isfalse, the unit is only a source of spares. - See Also:
-
canCharge
public boolean canCharge() -
canDFA
public boolean canDFA() -
canRam
public boolean canRam() -
getCost
Description copied from class:EntityCalculates and returns the C-bill cost of the unit. The parameter ignoreAmmo can be used to include or exclude ("dry cost") the cost of ammunition on the unit. A report for the cost calculation will be written to the given calcReport. -
getPriceMultiplier
public double getPriceMultiplier()Description copied from class:EntityReturns a multiplier that combines multiplicative construction cost modifiers for this Entity.This includes only modifiers that apply to an Entity's final, total cost (e.g. - the 1.25x modifier for being an omni-unit, or the 32.0x for being an aerodyne DropShip). It does NOT include multipliers that only apply to a sub-part of the unit (e.g. the weight based multiplier that applies to a vehicle's internal structure cost).
This allows MekHQ to scale the price of a Unit's Parts in a more appropriate manner.
Defaults to 1.0
- Overrides:
getPriceMultiplierin classEntity
-
implicitClanCASE
public int implicitClanCASE()Description copied from class:EntityUsed to for cost calculations. Though the TM rules allow a Clan unit to be designed without CASE, MM assumes that CASE is present in any location that has explosive equipment.- Overrides:
implicitClanCASEin classEntity- Returns:
- The number of locations protected by Clan CASE beyond what is explicitly mounted.
-
doomedInAtmosphere
public boolean doomedInAtmosphere()- Overrides:
doomedInAtmospherein classEntity- Returns:
- True when this unit is not allowed to be or will not survive in any hex of a low altitude a.k.a. atmospheric map (unless it is being transported). Note that this has nothing to do with the atmosphere (or lack of it, depending on planetary conditions), only the map type and scale.
-
doomedInSpace
public boolean doomedInSpace()- Overrides:
doomedInSpacein classEntity- Returns:
- True when this unit is not allowed to be or will not survive in any hex of a space map (unless it is being transported).
-
setEngine
-
getInternalRemainingPercent
public double getInternalRemainingPercent()Returns the percent of the SI remaining- Overrides:
getInternalRemainingPercentin classEntity
-
calculateWalk
protected int calculateWalk() -
addEquipment
public void addEquipment(Mounted<?> mounted, int loc, boolean rearMounted) throws LocationFullException Description copied from class:EntityAdds the given mounted equipment to the unit in the given location, possibly rear-facing depending on the given parameter. This method adds the mounted to the right equipment lists, updates the unit's tech level and adds one-shot ammo where necessary. Overriding methods may perform more tasks. This method, by default, does *NOT* create crit slots, update or add linkages nor handle secondary locations. Overrides for unit types may however do that.- Overrides:
addEquipmentin classEntity- Parameters:
mounted- The new equipmentloc- The location; may be Entity.LOC_NONErearMounted- True to make the equipment rear-facing- Throws:
LocationFullException- When the location is full
-
getCriticalEffect
public int getCriticalEffect(int roll, int target) get the type of critical caused by a critical roll, taking account of existing damage- Parameters:
roll- the final dice rolltarget- the hit location- Returns:
- a critical type
-
setOmni
public void setOmni(boolean omni) -
addClanCase
public void addClanCase()Description copied from class:EntityFor clan units that get automatic Clan CASE, adds clan CASE in every location that has potentially explosive equipment (this includes uncharged PPC Capacitors).As clan CASE does not need critical slots, this method does not perform checks whether other CASE types are already present on a location.
This method does nothing by default and must be overridden for unit types that get Clan CASE.
- Overrides:
addClanCasein classEntity
-
hasCase
public boolean hasCase()Description copied from class:EntityReturns whether there is CASE anywhere on thisEntity. -
sideTableRam
Used to determine net velocity of ramming attack- Overrides:
sideTableRamin classEntity
-
chooseSideRam
-
getMaxEngineHits
public int getMaxEngineHits() -
getMaxElevationChange
public int getMaxElevationChange()Description copied from class:EntityThe maximum elevation change the entity can cross- Overrides:
getMaxElevationChangein classEntity
-
isStealthActive
public boolean isStealthActive()Determine if this unit has an active and working stealth system. (stealth can be active and not working when under ECCM)Subclasses are encouraged to override this method.
- Overrides:
isStealthActivein classEntity- Returns:
trueif this unit has a stealth system that is currently active,falseif there is no stealth system or if it is inactive.
-
isStealthOn
public boolean isStealthOn()Determine if this unit has an active and working stealth system. (stealth can be active and not working when under ECCM)Subclasses are encouraged to override this method.
- Overrides:
isStealthOnin classEntity- Returns:
trueif this unit has a stealth system that is currently active,falseif there is no stealth system or if it is inactive.
-
getStealthModifier
Determine the stealth modifier for firing at this unit from the given range. If the value supplied forrangeis not one of theEntityclass range constants, anIllegalArgumentExceptionwill be thrown.Subclasses are encouraged to override this method.
- Overrides:
getStealthModifierin classEntity- Parameters:
range- - anintvalue that must match one of theComputeclass range constants.ae- - entity making the attack- Returns:
- a
TargetRollvalue that contains the stealth modifier for the given range.
-
setArmorType
public void setArmorType(int armType) - Overrides:
setArmorTypein classEntity
-
setArmorType
public void setArmorType(int armType, boolean addMount) -
isLocationProhibited
Description copied from class:EntityReturns true when the given location cannot legally be entered or deployed into by this unit at the given elevation or altitude. Also returns true when the location doesn't exist. Even when this method returns true, the location need not be deadly to the unit.- Overrides:
isLocationProhibitedin classEntity- Parameters:
testPosition- The position to testtestBoardId- The board to testtestAltitude- The elevation or altitude to test- Returns:
- True when the location is illegal to be in for this unit, regardless of elevation
- See Also:
-
isNightwalker
public boolean isNightwalker()Description copied from class:EntityDetermines if the pilot has the Nightwalker SPA- Overrides:
isNightwalkerin classEntity- Returns:
- true when pilots have the SPA and are not in a flying vehicle.
-
isSpheroid
public boolean isSpheroid()Description copied from interface:BTObjectReturns true when this object has the distinction between aerodyne and spheroid, i.e. if it is a DropShip or SmallCraft, and it is spheroid, false for any other type of object. Returns false for any type of unit group and for any unit that does not have the distinction.- Specified by:
isSpheroidin interfaceBTObject- Specified by:
isSpheroidin interfaceIAero- Returns:
- True when this is object is spheroid
-
setSpheroid
public void setSpheroid(boolean b) -
getStraightMoves
public int getStraightMoves()- Specified by:
getStraightMovesin interfaceIAero
-
setStraightMoves
public void setStraightMoves(int i) - Specified by:
setStraightMovesin interfaceIAero
-
isVSTOL
public boolean isVSTOL() -
isSTOL
public boolean isSTOL() -
setVSTOL
public void setVSTOL(boolean b) -
didFailManeuver
public boolean didFailManeuver()- Specified by:
didFailManeuverin interfaceIAero
-
setFailedManeuver
public void setFailedManeuver(boolean b) - Specified by:
setFailedManeuverin interfaceIAero
-
setAccDecNow
public void setAccDecNow(boolean b) - Specified by:
setAccDecNowin interfaceIAero
-
didAccDecNow
public boolean didAccDecNow()- Specified by:
didAccDecNowin interfaceIAero
-
getTotalCommGearTons
public int getTotalCommGearTons()- Overrides:
getTotalCommGearTonsin classEntity- Returns:
- the total tonnage of communications gear in this entity
-
getBadCriticalSlots
public int getBadCriticalSlots(int type, int index, int loc) The number of critical slots that are destroyed in the component.- Overrides:
getBadCriticalSlotsin classEntity
-
getCockpitType
public int getCockpitType() -
setCockpitType
public void setCockpitType(int type) -
getCockpitTypeString
-
getCockpitTypeString
-
hasCommandConsoleBonus
public boolean hasCommandConsoleBonus()Description copied from class:EntityUnits with a cockpit command console provide an initiative bonus to their side, provided that the commander is not currently functioning as pilot, the unit has advanced fire control, and the unit is heavy or assault weight class.- Overrides:
hasCommandConsoleBonusin classEntity- Returns:
- Whether the Entity qualifies for initiative bonus from cockpit command console.
-
getArmorRemainingPercent
public double getArmorRemainingPercent()Description copied from class:EntityReturns the percent of the armor remaining- Overrides:
getArmorRemainingPercentin classEntity
-
areWingsHit
public boolean areWingsHit()keep track of whether the wings have suffered a weapon critical hit -
setWingsHit
public void setWingsHit(boolean b) -
getOppositeLocation
public int getOppositeLocation(int loc) what location is opposite the given one -
getClusterMods
public int getClusterMods()get modifications to the cluster hit table for critical hits- Specified by:
getClusterModsin interfaceIAero
-
getECMRange
public int getECMRange()What's the range of the ECM equipment?- Overrides:
getECMRangein classEntity- Returns:
- the
intrange of this unit's ECM. This value will beEntity.NONEif no ECM is active.
-
getECCMStrength
public double getECCMStrength()- Overrides:
getECCMStrengthin classEntity- Returns:
- the strength of the ECCM field this unit emits
-
setECCMRoll
public void setECCMRoll(int i) -
getECCMRoll
public int getECCMRoll() -
getECCMTarget
public int getECCMTarget() -
getECCMBonus
public int getECCMBonus() -
isCrewProtected
Deprecated, for removal: This API element is subject to removal in a future version.- Returns:
- is the crew of this vessel protected from gravitational effects, see StratOps, pg. 36
-
canLoad
Determines if this object can accept the given unit. The unit may not be of the appropriate type or there may be no room for the unit. -
getWeaponGroups
- Specified by:
getWeaponGroupsin interfaceIAero
-
groupWeaponsByLocation
Iterate through current weapons and count the number in each capital fighter location.- Specified by:
groupWeaponsByLocationin interfaceIAero- Returns:
- A map with keys in the format "weaponName:loc", with the number of weapons of that type in that location as the value.
-
hasArmoredEngine
public boolean hasArmoredEngine()- Overrides:
hasArmoredEnginein classEntity
-
getForwardArc
public int getForwardArc()- Overrides:
getForwardArcin classEntity
-
getRearArc
public int getRearArc()- Overrides:
getRearArcin classEntity
-
getAltLoss
public int getAltLoss()- Specified by:
getAltLossin interfaceIAero
-
setAltLoss
public void setAltLoss(int i) - Specified by:
setAltLossin interfaceIAero
-
resetAltLoss
public void resetAltLoss()- Specified by:
resetAltLossin interfaceIAero
-
getAltLossThisRound
public int getAltLossThisRound()- Specified by:
getAltLossThisRoundin interfaceIAero
-
setAltLossThisRound
public void setAltLossThisRound(int i) - Specified by:
setAltLossThisRoundin interfaceIAero
-
resetAltLossThisRound
public void resetAltLossThisRound()- Specified by:
resetAltLossThisRoundin interfaceIAero
-
getElevation
public int getElevation()Description copied from interface:TargetableReturns the elevation of this target, relative to the position Hex's surface- Specified by:
getElevationin interfaceTargetable- Overrides:
getElevationin classEntity- Returns:
- The elevation of this Entity, relative to the current Hex's surface. When the unit is transported, returns the elevation of the carrier.
-
canGoDown
public boolean canGoDown() -
isPrimitive
public boolean isPrimitive()- Overrides:
isPrimitivein classEntity- Returns:
- Whether the unit uses primitive or retro tech construction rules
-
getCritDamageString
-
isCrippled
public boolean isCrippled()Description copied from class:EntityReturns TRUE if the entity meets the requirements for crippling damage as detailed in TW pg 258.- Specified by:
isCrippledin classEntity- Returns:
- boolean
-
isCrippled
public boolean isCrippled(boolean checkCrew) Description copied from class:EntityReturns TRUE if the entity meets the requirements for crippling damage as detailed in TW pg 258. Excepting dead or non-existing crew issues- Specified by:
isCrippledin classEntity- Returns:
- boolean
-
isDmgHeavy
public boolean isDmgHeavy()Description copied from class:EntityReturns TRUE if the entity has been heavily damaged.- Specified by:
isDmgHeavyin classEntity- Returns:
- boolean
-
isDmgModerate
public boolean isDmgModerate()Description copied from class:EntityReturns TRUE if the entity has been moderately damaged.- Specified by:
isDmgModeratein classEntity- Returns:
- boolean
-
isDmgLight
public boolean isDmgLight()Description copied from class:EntityReturns TRUE if the entity has been lightly damaged.- Specified by:
isDmgLightin classEntity- Returns:
- boolean
-
canSpot
public boolean canSpot()Description copied from class:EntityUm, basically everything can spot for LRM indirect fire. Except for off-board units, units that sprinted, and units evading. -
doDisbandDamage
public void doDisbandDamage()- Specified by:
doDisbandDamagein interfaceIAero
-
getNCrew
public int getNCrew() -
getNOfficers
public int getNOfficers()- Returns:
- The total number of officers for vessels.
-
getNGunners
public int getNGunners()- Returns:
- The total number of gunners for vessels.
-
getNPassenger
public int getNPassenger()- Overrides:
getNPassengerin classEntity- Returns:
- number of passengers on this unit Intended for spacecraft, where we want to get the crews of transported units plus actual passengers assigned to quarters
-
getEscapeCraft
- Returns:
- Set of Entity IDs used by this ship as escape craft
-
addEscapeCraft
Adds an Escape Craft. Used by MHQ to track where escaped crew and passengers end up.- Parameters:
id- The Entity ID of the ship to add.
-
getNBattleArmor
public int getNBattleArmor()- Returns:
- The number battle armored marines available to vessels for boarding actions.
-
getNMarines
public int getNMarines()- Overrides:
getNMarinesin classEntity- Returns:
- The number conventional marines available to vessels for boarding actions.
-
getMarines
- Returns:
- Map of unique individuals being transported as marines
-
getMarineCount
Deprecated, for removal: This API element is subject to removal in a future version.- Returns:
- number of marines assigned to a unit Used for abandoning a unit
-
getEscapePods
public int getEscapePods()- Returns:
- The number of escape pods carried by the unit
-
getPodsLeft
public int getPodsLeft()- Returns:
- the number of escape pods remaining
-
getLifeBoats
public int getLifeBoats()- Returns:
- The number of lifeboats carried by the unit
-
getLaunchedEscapePods
public int getLaunchedEscapePods()Returns the total number of escape pods launched so far -
setLaunchedEscapePods
public void setLaunchedEscapePods(int n) Updates the total number of escape pods launched so far- Parameters:
n- The number to change
-
getLaunchedLifeBoats
public int getLaunchedLifeBoats()Returns the total number of lifeboats launched so far -
getLifeBoatsLeft
public int getLifeBoatsLeft()- Returns:
- return the number of lifeboats remaining
-
setLaunchedLifeBoats
public void setLaunchedLifeBoats(int n) Updates the total number of lifeboats launched so far- Parameters:
n- The number to change
-
getEntityType
public long getEntityType()- Specified by:
getEntityTypein classEntity
-
isAero
public boolean isAero()Description copied from interface:BTObjectReturns true when this object uses or can use aerospace movement. This includes all aerospace units as well as LAMs (in fighter mode when in a TW game). Returns false for any type of unit group even if it is of the right type.Note that this is not equivalent to "this instanceof Aero" as LAMs are not an Aero subclass. It is also not equivalent to "this instanceof IAero" as LAMs are always IAero but only return true for isAero() when they are in fighter conversion mode. The following cast can be safely made:
if (entity.isAero()) { IAero iAero = (IAero) entity; } -
isBomber
public boolean isBomber()Fighters may carry external ordnance; Other Aerospace units with cargo bays and the Internal Bomb Bay quirk may carry bombs internally.- Specified by:
isBomberin interfaceTargetable- Returns:
- boolean
-
availableBombLocation
public int availableBombLocation(int cost) - Specified by:
availableBombLocationin interfaceIBomber- Parameters:
cost- The cost of the bomb to be mounted- Returns:
- A location with sufficient space to mount the bomb, or Entity.LOC_NONE if the unit does not have the space.
-
getSpriteDrawPriority
public int getSpriteDrawPriority()Description copied from class:EntityUsed to determine the draw priority of different Entity subclasses. This allows different unit types to always be draw above/below other types.- Overrides:
getSpriteDrawPriorityin classEntity
-
getActiveAMS
- Overrides:
getActiveAMSin classEntity- Returns:
- currently operable AMS mounted in this Entity.
-
updateSensorOptions
public void updateSensorOptions()A method to add/remove sensors that only work in space as we transition in and out of an atmosphere- Specified by:
updateSensorOptionsin interfaceIAero
-
hasEjectSeat
public boolean hasEjectSeat()- Returns:
- unit has an ejection seat
-
isAutoEject
public boolean isAutoEject()- Returns:
- Returns the autoEject.
-
setAutoEject
public void setAutoEject(boolean autoEject) - Parameters:
autoEject- Turn the master auto-ejection system on or off
-
isCondEjectAmmo
public boolean isCondEjectAmmo()- Returns:
- Is Auto-Ejection enabled for ammo explosions?
-
setCondEjectAmmo
public void setCondEjectAmmo(boolean condEjectAmmo) Used by Conditional Auto Ejection - will we eject when an ammo explosion is triggered?- Parameters:
condEjectAmmo- Sets auto-ejection for ammo explosions
-
isCondEjectFuel
public boolean isCondEjectFuel()- Returns:
- Is auto-ejection enabled for fuel explosions?
-
setCondEjectFuel
public void setCondEjectFuel(boolean condEjectFuel) Used by Conditional Auto Ejection - will we eject when a fuel explosion is triggered?- Parameters:
condEjectFuel- Sets auto-ejection for fuel tank explosions
-
isCondEjectSIDest
public boolean isCondEjectSIDest()- Returns:
- Is auto-ejection enabled for SI destruction (Fighter only)?
-
setCondEjectSIDest
public void setCondEjectSIDest(boolean condEjectSIDest) Used by Conditional Auto Ejection - will we eject when structural integrity is reduced to 0?- Parameters:
condEjectSIDest- Sets auto-ejection for structural integrity destruction
-
isEjecting
public boolean isEjecting()Intended for large craft.- Returns:
- Indicates that the ship is being abandoned.
-
setEjecting
public void setEjecting(boolean ejecting) Changes the ejecting flag when the order to abandon ship is given- Parameters:
ejecting- Change to the ejecting status of this ship
-
getEnginesLostRound
public int getEnginesLostRound()Description copied from interface:IAeroCheck which turn engines were destroyed in.- Specified by:
getEnginesLostRoundin interfaceIAero
-
setEnginesLostRound
public void setEnginesLostRound(int enginesLostRound) Description copied from interface:IAeroSet round that engines were completely destroyed; needed for crash-landing check- Specified by:
setEnginesLostRoundin interfaceIAero
-
isFlyingOff
public boolean isFlyingOff()- Specified by:
isFlyingOffin interfaceIAero
-
setFlyingOff
- Specified by:
setFlyingOffin interfaceIAero
-
getFlyingOffDirection
- Specified by:
getFlyingOffDirectionin interfaceIAero
-
getExitAltitude
public int getExitAltitude()Description copied from interface:IAeroGets the altitude at which this unit climbed out of the atmosphere. Used for returning units that left via vertical climb out at altitude 10.- Specified by:
getExitAltitudein interfaceIAero- Returns:
- The exit altitude (0 if not a climb out, typically 10 for climb outs)
-
setExitAltitude
public void setExitAltitude(int altitude) Description copied from interface:IAeroSets the altitude at which this unit is climbing out of the atmosphere. Should be set when a unit leaves the map vertically at altitude 10.- Specified by:
setExitAltitudein interfaceIAero- Parameters:
altitude- The exit altitude (typically 10 for climb out, 0 to clear)
-
setOSI(int)instead