Package megamek.common.units
Class LandAirMek
java.lang.Object
megamek.common.turns.TurnOrdered
megamek.common.units.Entity
megamek.common.units.Mek
megamek.common.units.MekWithArms
megamek.common.units.BipedMek
megamek.common.units.LandAirMek
- All Implemented Interfaces:
Serializable,ICarryable,Transporter,InGameObject,CombatRole,ForceAssignable,ITechnology,ITurnOrdered,PhaseUpdated,RoundUpdated,ActiveHeatSinkController,BTObject,Deployable,Fortifiable,IAero,IBomber,RubbleClearer,Targetable
- 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 intprotected BombLoadoutprotected BombLoadoutstatic final intstatic final intstatic final intstatic final intstatic final String[]static final intstatic final intstatic final intLocations for capital fighter weapons groupsstatic final intstatic final String[]Fields inherited from class megamek.common.units.Mek
ACTUATOR_FOOT, ACTUATOR_HAND, ACTUATOR_HIP, ACTUATOR_LOWER_ARM, ACTUATOR_LOWER_LEG, ACTUATOR_SHOULDER, ACTUATOR_UPPER_ARM, ACTUATOR_UPPER_LEG, bCoolantWentUp, bDamagedCoolantSystem, BLOCKED_FIRING_LOCATIONS, bUsedCoolantSystem, COCKPIT_AIMED_SHOT, COCKPIT_COMMAND_CONSOLE, COCKPIT_DUAL, COCKPIT_INDUSTRIAL, COCKPIT_INTERFACE, COCKPIT_OFF, COCKPIT_ON, COCKPIT_PRIMITIVE, COCKPIT_PRIMITIVE_INDUSTRIAL, COCKPIT_QUADVEE, COCKPIT_SHORT_STRING, COCKPIT_SMALL, COCKPIT_SMALL_COMMAND_CONSOLE, COCKPIT_STANDARD, COCKPIT_STRING, COCKPIT_SUPERHEAVY, COCKPIT_SUPERHEAVY_COMMAND_CONSOLE, COCKPIT_SUPERHEAVY_INDUSTRIAL, COCKPIT_SUPERHEAVY_TRIPOD, COCKPIT_SUPERHEAVY_TRIPOD_INDUSTRIAL, COCKPIT_TORSO_MOUNTED, COCKPIT_TRIPOD, COCKPIT_TRIPOD_INDUSTRIAL, COCKPIT_UNKNOWN, COCKPIT_VRRP, cockpitType, EMERGENCY_COOLANT_SYSTEM_FAILURE, FRANKEN_MEK_STRUCTURE_HYBRID, FULL_HEAD_EJECT_STRING, GYRO_COMPACT, GYRO_HEAVY_DUTY, GYRO_NONE, GYRO_SHORT_STRING, GYRO_STANDARD, GYRO_STRING, GYRO_SUPERHEAVY, GYRO_UNKNOWN, GYRO_XL, gyroType, HAS_FALSE, HAS_TRUE, HAS_UNKNOWN, JUMP_DISPOSABLE, JUMP_IMPROVED, JUMP_NONE, JUMP_PROTOTYPE, JUMP_PROTOTYPE_IMPROVED, JUMP_STANDARD, JUMP_UNKNOWN, LOC_CENTER_LEG, LOC_CENTER_TORSO, LOC_HEAD, LOC_LEFT_ARM, LOC_LEFT_LEG, LOC_LEFT_TORSO, LOC_RIGHT_ARM, LOC_RIGHT_LEG, LOC_RIGHT_TORSO, nCoolantSystemLevel, nCoolantSystemMOS, originalMovementMode, RISC_HEAT_SINK_OVERRIDE_KIT, SYSTEM_COCKPIT, SYSTEM_ENGINE, SYSTEM_GYRO, SYSTEM_LIFE_SUPPORT, SYSTEM_SENSORSFields 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.Fortifiable
DUG_IN_FORTIFYING_FIRST, DUG_IN_FORTIFYING_LAST, DUG_IN_NONE, FORTIFY_LOGGERFields 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 TypeMethodDescriptionprotected voidvoidAdd the critical slots necessary for the mek's engine.Add in any piloting skill modsMounted<?> addEquipment(EquipmentType equipmentType, int loc, boolean rearMounted) Creates a new mount for this equipment and adds it in.voidvoidintavailableBombLocation(int cost) Try to find a location that has enough empty bomb bays to accommodate the bomb sizebooleanbooleanCan this entity change secondary facing at all?booleanbooleancanConvertTo(int fromMode, int toMode) Determines whether it is possible to assume a particular mode based on damage and type of map.booleancanConvertTo(EntityMovementMode toMode) booleancanFall(boolean gyroLegDamage) QuadVees and LAMs may not have to make PSRs to avoid falling depending on their mode, and Meks using tracks for movement do not have to make PSRs for damage to gyro or leg actuators.booleanLAMs can only carry mechanized BA in mek modebooleancanRam()booleancanSpot()Um, basically everything can spot for LRM indirect fire.Landing in AirMek mode requires a control roll only if the gyro or any of the hip or leg actuators are damaged.voidSets the count of each bomb to zerovoidRemove all engine critical slots from the mek.booleanbooleanbooleanvoidbooleanbooleanstatic intgetAeroLocation(int loc) Translate a `Mek location to the equivalent Aero location.intintgetAirMekCruiseMP(MPCalculationSetting mpCalculationSetting) intintgetAirMekFlankMP(MPCalculationSetting mpCalculationSetting) intintintgetAirMekRunMP(MPCalculationSetting mpCalculationSetting) intintgetAirMekWalkMP(MPCalculationSetting mpCalculationSetting) intintintintintintintreturn - the base construction option tech advancementintgetConversionModeFor(EntityMovementMode movementMode) intintintintgetCurrentThrust(MPCalculationSetting mpCalculationSetting) intintintWhat's the range of the ECM equipment?intReturns the elevation of this target, relative to the position Hex's surfaceintReturns extra heat generated by engine critsintCheck which turn engines were destroyed in.longintGets the altitude at which this unit climbed out of the atmosphere.intintintgetFighterModeRunMP(MPCalculationSetting mpCalculationSetting) intgetFighterModeWalkMP(MPCalculationSetting mpCalculationSetting) intgetFuel()doubledoubleGets the fuel for this Aero in terms of tonnage.intgetFuelUsed(int thrust) intintintstatic intgetLAMTypeForString(String inType) getLAMTypeString(int lamType) intgetLandingGearMod(boolean vTakeoff) Modifier to landing or vertical takeoff roll for landing gear damage.intintString[]Returns a vector of abbreviations for all locationsString[]Returns a vector of names for all locationsintgetLocationStatus(int loc) returns exposure or breached flag for locationintintgetMaxElevationDown(int currElevation) Returns the maximum number of downward elevation changes a unit can make.intintintFighters and VTOLs can carry any size bomb up to the maximum number of points per location (internal/external), but LAMs are limited to the number of bays in a single location.getMovementAbbr(EntityMovementType movementType) Returns the name of the type of movement used.getMovementString(EntityMovementType movementType) Returns the name of the type of movement used.LAMs cannot benefit from MASC in AirMek or fighter mode and cannot mount a supercharger.intprotected int[]Returns a vector of slot counts for all locationsintUsed to determine modifier for landing.intgetOSI()intWhen cycling through possible movement modes, we need to know if we've returned to the previous mode, which means that no conversion is actually going to take place.getRawSystemName(int index) intintDepends on engine typeintgetRunMP(MPCalculationSetting mpCalculationSetting) intintgetSI()intgetSprintMP(MPCalculationSetting mpCalculationSetting) Returns this entity's sprinting MP, modified according to the given setting.intgetSystemName(int index) intgetThresh(int loc) Exceeding damage threshold does not result in critical, but requires control roll.Entities that use different sprites for different modes should override thisintintget the heat generated by this Entity when walking/cruisingintgetWalkMP(MPCalculationSetting mpCalculationSetting) Current MP is calculated differently depending on the LAM's mode.intgetWeaponArc(int weaponNumber) In fighter mode the weapon arcs need to be translated to Aero arcs.Provide weapon groups for capital fighters.booleanBomb ordnance is treated as inferno ammo for purposes of avoiding explosion due to heat.booleanintheight()Return the height of this Mek above the terrain.voidincreaseUsedInternalBombs(int b) Increase count of internal bombs used this turn.booleanisAero()Returns true when this object uses or can use aerospace movement.booleanisBomber()booleanCannot make any physical attacks in fighter mode except ramming, which is handled in the movement phase.booleanbooleanReturns 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 c, int testBoardId, int testElevation) Returns true when the given location cannot legally be entered or deployed into by this unit at the given elevation or altitude.booleanbooleanDetermines if the pilot has the Nightwalker SPAbooleanbooleanbooleanbooleanbooleanisRolled()booleanReturns true when this object has the distinction between aerodyne and spheroid, i.e.booleanisSTOL()booleanisVSTOL()voidnewRound(int roundNumber) Start a new roundnextConversionMode(EntityMovementMode afterMode) Entities that can convert movement modes (LAMs, QuadVees) report the next mode to assume when a convert movement command is processed.intreduceMPByBombLoad(int t) voidvoidrollHitLocation(int table, int side) Rolls up a hit locationrollHitLocation(int table, int side, int aimedLocation, AimingMode aimingMode, int cover) Hit location table for fighter modevoidsetAccDecNow(boolean b) voidsetAccLast(boolean b) voidsetAltLoss(int i) voidsetAltLossThisRound(int i) voidsetCapArmor(int i) voidsetConversionMode(int mode) Sets the unit to be in the given mode.voidvoidsetCritThresh(boolean b) voidsetCurrentDamage(int i) voidsetCurrentFuel(int gas) voidsetCurrentVelocity(int velocity) 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) voidsetFlyingOff(OffBoardDirection direction) voidsetFuel(int gas) Sets the number of fuel points.voidsetFuelTonnage(double fuelTons) Set number of fuel points based on fuel tonnage.voidsetGearHit(boolean hit) voidSets the bomb type selections prior to deployment.voidsetLAMType(int lamType) voidSet the movement type of the entityvoidsetNextVelocity(int velocity) voidsetOutControl(boolean outControl) voidsetOutControlHeat(boolean outControlHeat) voidsetRandomMove(boolean randomMove) voidsetRolled(boolean roll) voidsetSI(int si) voidsetStraightMoves(int i) 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.voidUsed by VTOLs and LAMs in AirMek mode to declare the target hex for a bomb attack during the movement phase.voidFighter ModevoidA method to add/remove sensors that only work in space as we transition in and out of an atmospherebooleanOnly check for satisfied turn mode for Tanks or QuadVees in vehicle mode, or LAMs in AirMek mode.booleanMethods inherited from class megamek.common.units.BipedMek
canGoHullDown, cannotStandUpFromHullDown, canZweihander, getLegActuatorCost, hasMPReducingHardenedArmor, hasRaisedShield, setInternalMethods inherited from class megamek.common.units.MekWithArms
addIntrinsicTransporters, canBrace, canFlipArms, canPerformGroundSalvageOperations, canPickupGroundObject, checkGetUp, getActiveVibrobladeHeat, getActiveVibrobladeHeat, getBraceMPCost, getDefaultPickupLocations, getNumberOfShields, getValidBraceLocations, getValidHalfWeightPickupLocations, hasFunctionalArmAES, hasLoweredShield, hasLoweredShield, hasNoDefenseShield, hasRaisedShield, hasRetractedBlade, hasShield, hasVibroblades, hasVibrobladesInLocation, maxGroundObjectTonnage, setMekArms, unmodifiedMaxGroundObjectTonnageMethods inherited from class megamek.common.units.Mek
addClanCase, addClanCaseOptOut, addCockpit, addCommandConsole, addCompactGyro, addCoolantFailureAmount, addDualCockpit, addEngineSinks, addEngineSinks, addEngineSinks, addEngineSinks, addEquipment, addEquipment, addEquipment, addGyro, addHeavyDutyGyro, addIndustrialCockpit, addIndustrialPrimitiveCockpit, addInterfaceCockpit, addPrimitiveCockpit, addQuadVeeCockpit, addSmallCockpit, addSmallCommandConsole, addSuperheavyCommandConsole, addSuperheavyGyro, addSuperheavyIndustrialCockpit, addSystemTechAdvancement, addTargCompWithoutSlots, addTorsoMountedCockpit, addXLGyro, antiTSMVulnerable, applyEdgeToHitLocation, applyFrankenMekDonorLocationArmor, applyFrankenMekInternalStructure, atLeastOneBadLeg, autoSetInternal, calculateWalk, canAbandon, canAnnounceAbandon, canDFA, canEjectCrew, canEscape, checkUnstall, clearClanCaseOptOut, clearCockpitCrits, clearFrankenMekLocationSource, clearGyroCrits, clipSecondaryFacing, countBadLegs, countLegActuatorCrits, currentFortifyHealthSignature, damageCowl, damagedHeatSinks, defaultCrewType, destroyLocation, destroyLocation, doCheckEngineStallRoll, doRISCEmergencyCoolantCheckFor, getActiveSinks, getActiveSinksNextRound, getActuatorCost, getAllCockpitCodeName, getArmActuatorCost, getArmor, getArmoredComponentBV, getArmorForReal, getBARRating, getBlockedFiringLocations, getClanCaseOptOutLocations, getCockpit, getCockpitDisplayString, getCockpitStatus, getCockpitStatusNextRound, getCockpitTechAdvancement, getCockpitTechAdvancement, getCockpitType, getCockpitTypeForString, getCockpitTypeString, getCockpitTypeString, getCockpitTypeString, getCoolantFailureAmount, getCoolantSystemMOS, getCost, getCrewForCockpitSlot, getDependentLocation, getDirectionalTorsoMountArc, getDugIn, getEngineHits, getFortifyState, getFrankenMekInternalForLocation, getFrankenMekLocationSourceDisplayName, getFrankenMekLocationSourceType, getFrankenMekStructureCriticalSlots, getFrankenMekStructureDisplayName, getFrankenMekStructureEquipment, getFrankenMekStructureName, getFrankenMekStructureTechLevel, getFrankenMekStructureTonnage, getFrankenMekStructureType, getFrankenMekStructureWeightFraction, getFullHeadEjectAdvancement, getGenericBattleValue, getGrappled, getGrappleSide, getGyroDisplayString, getGyroHits, getGyroMultiplier, getGyroTechAdvancement, getGyroTechAdvancement, getGyroType, getGyroTypeForString, getGyroTypeShortString, getGyroTypeString, getGyroTypeString, getHeatCapacity, getHeatCapacity, getHeatCapacity, getHeatCapacityWithWater, getHeatSinkTypeName, getHQIniBonus, getIndustrialAdvFireConTA, getInnerLocation, getInternal, getJumpHeat, getJumpMP, getJumpType, getLevelsFallen, getLocationDamage, getMaxElevationChange, getMaximumFrankenMekStructureTonnageForConstruction, getMechanicalJumpBoosterMP, getMtf, getNumberOfSinks, getOArmor, getOriginalMechanicalJumpBoosterMP, getPartialWingJumpAtmosphereBonus, getPartialWingJumpAtmosphereBonus, getPartialWingJumpBonus, getPartialWingJumpBonus, getPartialWingJumpWeightClassBonus, getPriceMultiplier, getRecoveryTime, getRiscHeatSinkOverrideKitAdvancement, getRubbleClearTarget, getRubbleClearTurnsCompleted, getRubbleClearTurnsRequired, getRunMPasString, getRunningGravityLimit, getsAutoExternalSearchlight, getSprintHeat, getSpriteDrawPriority, getStandingHeat, getStealthModifier, getStructureType, getTechAdvancement, getTotalCommGearTons, getTransferLocation, getTSMPickupModifier, getUnitType, getWeaponListWithHHW, hardenedArmorMPReduction, hasActiveEiCockpit, hasActiveTSM, hasActiveTSM, hasAdvancedFireControl, hasAnyClanCaseOptOut, hasArmoredCockpit, hasArmoredEngine, hasArmoredGyro, hasChainDrape, hasChameleonShield, hasClanCaseEquipped, hasClaw, hasCommandConsoleBonus, hasCompactHeatSinks, hasCompositeStructure, hasCowl, hasDamagedCoolantSystem, hasDamageInterruptCircuit, hasDoubleHeatSinks, hasEjectSeat, hasExtendedRetractableBlade, hasFullHeadEject, hasFunctionalLegAES, hasGhostTargetEquipment, hasHarJelIIIIn, hasHarJelIIIn, hasHipCrit, hasHybridFrankenMekStructure, hasIndustrialTSM, hasIntactHeatDissipatingArmor, hasJumpBoosters, hasLaserHeatSinks, hasMismatchedFrankenMekLegs, hasMismatchedTonnageFrankenMekLegs, hasNullSig, hasRearArmor, hasReinforcedStructure, hasRiscHeatSinkOverrideKit, hasTracks, hasTSM, hasVoidSig, hasWorkingBackhoe, hasWorkingDIC, heatSinks, heatSinks, implicitClanCASE, initializeFrankenMekStructure, initializeRearArmor, innerRollHitLocation, isAbandoned, isArm, isArmorDamagedThisTurn, isAutoEject, isCarefulStand, isChameleonShieldActive, isChameleonShieldOn, isChassisFamiliarityEligible, isCheckForCrit, isClanCaseOptedOut, isCondEjectAmmo, isCondEjectCTDest, isCondEjectEngine, isCondEjectHeadshot, isCoolingFlawActive, isCrippled, isCrippled, isDICDisabled, isDmgHeavy, isDmgLight, isDmgModerate, isEjectionPossible, isEligibleForMovement, isEligibleForPavementOrRoadBonus, isFrankenMek, isGrappleAttacker, isGrappledThisRound, isGyroDestroyed, isHardenedArmorDamaged, isIndustrial, isIndustrialMek, isJustMovedIntoIndustrialKillingWater, isLocationDeadly, isLocationDeadly, isMek, isNullSigActive, isNullSigOn, isPermanentlyImmobilized, isPrimitive, isRepairable, isSecondaryArcWeapon, isShutDown, isStalled, isStealthActive, isStealthOn, isSuperHeavy, isSystemIntact, isValidSecondaryFacing, isVoidSigActive, isVoidSigOn, joinLocationAbbr, leastRestrictiveLoc, legCount, legHasHipCrit, linkFrankenMekLocationToSource, linkFrankenMekLocationToSource, load, locationIsLeg, locationIsTorso, locations, mostRestrictiveLoc, removeClanCaseOptOut, removePartialCoverHits, resetCoolantFailureAmount, resetSinks, restrictScore, setActiveSinksNextRound, setArmor, setArmorDamagedThisTurn, setAutoEject, setBAGrabBars, setCheckForCrit, setCockpitStatus, setCockpitType, setCondEjectAmmo, setCondEjectCTDest, setCondEjectEngine, setCondEjectHeadshot, setCoolingFlawActive, setDICDisabled, setDugIn, setEngine, setFrankenMek, setFrankenMekStructureTonnage, setFrankenMekStructureTonnageForConstruction, setFrankenMekStructureType, setFrankenMekStructureType, setFullHeadEject, setGrappled, setGrappledThisRound, setGrappleSide, setGyroType, setHardenedArmorDamaged, setHasDamagedCoolantSystem, setJustMovedIntoIndustrialKillingWater, setLevelsFallen, setOmni, setProtoMekClampMounts, setRiscHeatSinkOverrideKit, setRubbleClearTarget, setRubbleClearTurnsCompleted, setRubbleClearTurnsRequired, setShouldDieAtEndOfTurnBecauseOfWater, setStalled, setTechLevel, shieldAbsorptionDamage, shouldDieAtEndOfTurnBecauseOfWater, syncFrankenMekCenterTorsoTonnageToChassis, syncFrankenMekStructureTonnageToChassis, syncMatchingFrankenMekStructureTonnageToChassis, tac, torsoJumpJets, tracksHeat, unlinkFrankenMekLocationSourceIfChanged, victoryReportMethods inherited from class megamek.common.units.Entity
activateRadicalHS, addAttackedByThisTurn, addBeenDetectedBy, addBeenSeenBy, addBomb, addConditionBonuses, addCritical, addCritical, addCritical, addEquipment, addEquipment, addEquipment, addEquipment, addEquipment, addEquipment, addEquipment, addEquipment, addEquipment, addFailedEquipment, addFiringSolution, addGhostTargetDefensiveBonus, addGhostTargetOffensiveBonus, addGroundAttackedByThisTurn, addIMPHits, addKill, addOffBoardObserver, addPassedThrough, addPilotingModifierForTerrain, addPilotingModifierForTerrain, addPilotingModifierForTerrain, addPilotingModifierForTerrain, addRoofRack, addSensorContact, addTargetedBySwarm, addTechComponent, addTowedUnit, addTransporter, addTransporter, addTsempHitThisTurn, addWeaponGroup, applyDamage, applyGravityEffectsOnMP, applyMagneticPulse, armorStringFor, assignAMS, assignTMAMS, assignWeaponQuirk, attachINarcPod, attachNarcPod, braceLocation, C3MasterIs, calcElevation, calcElevation, calculateBattleValue, calculateBattleValue, calculateBattleValue, calculateBattleValue, calculateFreeC3MNodes, calculateFreeC3Nodes, canActivateBloodStalker, canAssist, canBePickedUp, canFall, canFireWeapon, canFlee, canFlee, canFleeFrom, canFleeInState, canGoDown, canGoDown, canGoUp, canHide, canInitiateInfantryVsInfantryCombat, canLayDemolitionCharges, canLayMine, canLoad, canLoad, canonUnitWithInvalidBuild, canPerformSpaceSalvageOperations, canPickupCarryableObject, canReinforceInfantryVsInfantry, canShutdownEi, canTow, canTransferCriticalSlots, canUnjamRAC, canUnstickByJumping, changeHeatBuildup, checkBogDown, checkDislodgeSwarmers, checkForMASCFailure, checkForSuperchargerFailure, checkGunningIt, checkLandingInHeavyWoods, checkLandingOnBlackIce, checkLandingOnIce, checkLandingWithDamage, checkLandingWithPrototypeJJ, checkMovedTooFast, checkMovementInBuilding, checkRecklessMove, checkRubbleMove, checkRunningWithDamage, checkSideSlip, checkSkid, checkSprintingWithMASCAndSupercharger, checkSprintingWithMASCXorSupercharger, checkTurnModeFailure, 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, deployOffBoard, destroy, destroyOneSearchlight, destroyRetractableBlade, disconnectUnit, doBattleValueCalculation, doomedInExtremeTemp, doomedInVacuum, doomedOnGround, dropCarriedObject, dropCarriedObject, dropGroundObjects, elevationOccupied, elevationOccupied, endOfTurnCargoInteraction, entityIsQuad, equals, extendBlade, factionTechLevel, findTargetedDisplacement, firstArmorIndex, fixElevation, formatHeat, gameOptions, generalName, generateDisplayName, generateShortName, getAbandonmentAnnouncedRound, getActiveAMS, getActiveSensor, getActiveSubEntities, getActiveUMUCount, getAllGyroCodeName, getAllowedPhysicalAttacks, getAllTowedUnits, getAllUMUCount, getAlreadyTwisted, getAlternateCost, getAltitude, getAmmo, getAmmo, getAmmo, getAnyTypeMaxJumpMP, getArmor, getArmor, getArmoredComponentTechAdvancement, getArmorForReal, getArmorRemainingPercent, getArmorString, getArmorString, getArmorTechLevel, getArmorTechRating, getArmorType, getArmorWeight, getArmorWeight, getArmsFlipped, getASEWAffected, getAttackedByThisTurn, getAttackingEntity, getBadCriticalSlots, getBAPRange, getBase64Icon, getBaseAvailability, getBaseChassisFireConWeight, getBaseChassisValue, getBaseEngineValue, getBasePilotingRoll, getBasePilotingRoll, getBay, getBayByAmmo, getBayById, getBayLoadedUnitIds, getBayPersonnel, getBloodStalkerTarget, getBlueShieldRounds, getBoardId, getBoardLocation, getBodyLocation, getBombLoadout, getBombLoadout, getBombs, getBombs, getBoobyTrap, getBoobyTrapDamage, 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, getCost, getCrew, getCritical, getCriticalSlots, getCustomWeaponOrder, getCustomWeaponOrder, getDamagedCriticalSlots, getDamageLevel, getDamageLevel, getDamageReductionFromModularArmor, getDeployRound, getDisplacementAttack, getDisplayName, getDistinctCarriedObjects, getDockingCollars, getDocks, getDocks, getDropCargoLocationMap, getDroppableUnits, getDuplicateMarker, getEarliestTechDate, getEarliestTechDateAndEra, getECCMInfo, getECCMStrength, 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, getForwardArc, getFreeC3iUUID, getFreeNC3UUID, getFullChassis, getGame, getGaveKillCredit, getGhostTargetDefensiveBonus, getGhostTargetOffensiveBonus, getGhostTargetOverride, getGhostTargetRoll, getGhostTargetRollMoS, getGoodCriticalSlots, getGroundAttackedByThisTurn, getHeading, getHeat, getHeatBreakdown, getHeatFiringModifier, getHeatInArc, getHeatMPReduction, getHeight, getHiddenActivationPhase, getHitchCarrying, getHitchLocations, getHitCriticalSlots, getHittableCriticalSlots, getIcon, getId, getImpLastTurn, getImpMpReduction, getImpToHitModifier, getINarcPodsAttached, getIndividualWeaponList, getInfantryCombatTargetId, getInfantryCombatTurnCount, getInitialBV, getInternal, getInternalBombLoadout, getInternalForReal, getInternalRemainingPercent, getInternalString, getIntroductionDate, getIntroductionDate, getIntroductionDateAndEra, getInvalidSourceBuildReasons, getIsJumpingNow, getJumpMP, getJumpMPWithTerrain, getKillerId, getKillNumber, getKills, getLabArmorTonnage, getLabTotalArmorPoints, getLastTarget, getLastTargetDisplayName, getLaunchableDropships, getLaunchableFighters, getLaunchableSmallCraft, getLoadedKeepers, getLoadedTrailers, getLoadedUnits, getLocationAbbr, getLocationAbbr, getLocationFromAbbr, getLocationName, getLocationName, getLongRangeModifier, getLOSRangeModifier, getMagneticPulseRounds, getManualBV, getMASC, getMASCTarget, getMASCTurns, getMaxElevationDown, getMaxWeaponRange, getMaxWeaponRange, getMechanicalJumpBoosterMP, getMediumRangeModifier, getMisc, getMisc, getMiscEquipment, getMissionRoles, getMixedTechAdvancement, getModel, getMotiveSideMod, getMovedBackwards, getMovementBeforeSkidPSRModifier, getMovementMode, getMovementModeAsString, getMPBoosters, getMpUsedLastRound, getMulId, getNC3NextUUIDAsString, getNCrew, getNeuralInterfaceMode, getNewRoundNovaNetworkString, getNextSensor, getNMarines, getNPassenger, getNumberOfCriticalSlots, getNumberOfCriticalSlots, getNumberOfCriticalSlots, getNumberOfCriticalSlots, 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, getRearArc, getRecoveryTurn, getReintroductionDate, getReintroductionDate, getRemovalCondition, getRetreatedDirection, getRole, getRunMP, getRunMPasString, getRunMPWithoutMASC, getSearchlightOverride, getSecondaryFacing, getSecondaryPositions, getSelfDestructedThisTurn, getSelfDestructing, getSelfDestructInitiated, getSensorCheck, getSensorContacts, getSensors, getShortName, getShortNameRaw, getShortRangeModifier, getSource, getSources, getSpotTargetId, getSprintMP, getSprintMPWithOneMASC, getSprintMPWithoutMASC, 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, 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, getVariableRangeTargetingMode, getVariableRangeTargetingModifier, getVector, getVectors, getVelocity, getVibroClaws, getWalkMP, getWeapon, getWeaponBayList, getWeaponFiringHeight, getWeaponFiringPosition, getWeaponGroupList, getWeaponList, getWeapons, getWeaponSortOrder, getWeight, getWeightClass, getWeightClassName, getWhoCanDetect, getWhoCanSee, getYear, hasAbility, hasAbility, hasActivatedRadicalHS, hasActiveBlueShield, hasActiveDNI, hasActiveECCM, hasActiveECM, hasActiveECM, hasActiveNovaCEWS, hasAimModeTargComp, hasAnyC3System, hasAnyTypeNarcPodsAttached, hasArcFired, hasArmoredChassis, hasArtillery, hasBadLegs, hasBAP, hasBAP, hasBARArmor, hasBattleArmorHandles, hasBoobyTrap, hasBoostedC3, hasC3, hasC3i, hasC3M, hasC3MM, hasC3S, hasCase, 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, hasGhostTargets, hasHardenedArmor, hasHarJelIn, hashCode, hasHierarchicalC3, hasINarcPodsAttached, hasLegActuatorCrit, hasLinkedMGA, hasMinesweeper, hasMisc, hasMisc, hasMisc, hasModularArmor, hasModularArmor, hasMulId, hasNarcPodsAttached, hasNavalC3, hasNhC3, hasNovaCEWS, hasObsoleteQuirk, hasOccupiedHex, hasOriginalBuildYear, hasPatchworkArmor, hasQuirk, hasRearMountedBulldozer, hasRHSWentUp, hasSCM, hasSearchlight, hasSeenEntity, hasSensorContactFor, hasStealth, hasSystem, hasTAG, hasTargComp, hasTCPAimedShotCapability, hasUMU, hasUndamagedCriticalSlots, hasUnloadedUnitsFromBays, hasUsedRHSLastTurn, hasVariableRangeTargeting, hasViableWeapons, hasWorkingBulldozer, hasWorkingMisc, hasWorkingMisc, hasWorkingMisc, hasWorkingMisc, hasWorkingRadicalHS, hasWorkingSCM, hasWorkingSystem, hitAllCriticalSlots, incrementInfantryCombatTurnCount, incrementMASCAndSuperchargerLevels, initializeArmor, initializeInternal, initMilitary, initTechAdvancement, isActive, isActive, isActiveOption, isAeroLandedOnGroundMap, isAeroSensorDestroyed, isAirborne, isAirborneAeroOnGroundMap, isAirborneVTOLorWIGE, isAssaultDropInProgress, isAttackingThisTurn, isBATaserShutdown, isBoardable, isBoardProhibited, isBoardProhibited, isBoobyTrapInitiated, isBracing, isC3CompanyCommander, isC3IndependentMaster, isCanon, isCapitalFighter, isCapitalFighter, isCapitalScale, isCaptured, isCarcass, isCarryableObject, isChainWhipGrappled, isCharging, isClan, isClanArmor, isClearingMinefield, isClearingWoods, isClimbing, isCommander, isConvertingNow, isDangling, isDeployed, isDesignValid, isDestroyed, isDetectedByEnemy, isDone, isDoomed, isDropping, isEiShutdown, isElevationValid, isEligibleFor, isEligibleForArtyAutoHitHexes, isEligibleForFiring, isEligibleForInfantryVsInfantry, isEligibleForOffboard, isEligibleForPreEndDeclarations, isEligibleForTargetingPhase, isEnemyOf, isEvading, isEverSeenByEnemy, isFindingClub, isFiredTsempThisTurn, isFirefighter, isGhostTargetCapable, isHidden, isHullDown, isIlluminated, isImmobile, isImmobileForJump, isImpEcmAffected, isINarcedBy, isINarcedWith, isInBuilding, isInDemolishableStructureHex, isInfantryCombatAttacker, isInfantryCombatWantsWithdrawal, isIntroLevel, isInvulnerable, isJumpingWithMechanicalBoosters, isLargeCraft, isLayingMines, isLoadableThisTurn, isLocationBad, isLocationBlownOff, isLocationBlownOffThisPhase, isLocationDoomed, isLocationProhibited, isLocationProhibited, isLocationProhibited, isLocationProhibited, isLocationTrulyDestroyed, isMakingDfa, isManualShutdown, isMASCUsed, isMilitary, isMixedTech, isNarcedBy, isNaval, isNeuralInterfaceEnabled, isNeuralInterfaceFullTracking, isNOE, isNonCanonBySource, isNonCanonBySource, isNotCrewedEntityType, isNuclearHardened, isObsoleteInYear, isOffBoard, isOffBoardObserved, isOmni, isOnAtmosphericGroundMap, isPartOfFighterSquadron, isPendingAbandon, isPodMountedTransport, isPowerReverse, isProne, isPushing, isRamming, isReckless, isSalvage, isSelectableThisTurn, isSensorReturn, isShutDownThisPhase, isSpaceborne, isSpotting, isStartupThisPhase, isStuck, isSufferingEMI, isSuperchargerUsed, isSurfaceNaval, isTargetable, isTargetOfDisplacementAttack, isTractor, isTrailer, isTransported, isTrapped, isUncrewed, isUnderwater, isUnjammingRAC, isUnloadedThisTurn, isUnofficial, isUsingManAce, isUsingSearchlight, isVisibleToEnemy, isWeaponBlockedAt, isWeaponBlockedByTowing, isWeaponOrderChanged, isWeaponValidForPhase, itemOppositeTech, load, load, load, loadAllWeapons, loadDefaultCustomWeaponOrder, loadedUnitsHaveActiveECM, loadQuirks, loadWeapon, loadWeapon, loadWeaponWithSameAmmo, loadWeaponWithSameAmmo, locationHasCase, madePointblankShot, modifyPhysicalDamageForMeleeSpecialist, needsRollToStand, newPhase, newRoundNovaNetSwitch, newRoundVariableRangeSwitch, 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, removeSensorContact, removeTowedUnit, removeTransporter, resetBayDoors, resetBays, resetBombAttacks, resetFiringArcs, resetPickedUpMekWarriors, resetTransporter, restore, rollMovementInBuilding, scmCritStateCount, setAbandonmentAnnouncedRound, setAlreadyTwisted, setAltitude, setArcFired, setArmor, setArmor, setArmorTechLevel, setArmorTechLevel, setArmorTechRating, setArmorTechRating, setArmorTonnage, setArmorType, 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, setConvertingNow, setCritical, setCustomWeaponOrder, setCustomWeaponOrder, setDangling, setDeployed, setDeployRound, setDesignValid, setDestroyed, 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, 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, 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, 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, sideTableRam, slotNumber, specificName, statusToString, statusToString, statusToString, storeOriginalUnitData, storeSavedUnitData, taserShutdown, toggleConversionMode, toString, towUnit, turnWasInterrupted, unload, updateBays, updateDuplicateMarkerAfterDelete, usedSearchlight, usedTag, 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, isInfantry, isJumpShip, isLargeAerospace, 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.Fortifiable
advanceFortifyRound, beginFortify, cancelFortify, getFortifyStage, getFortifyTotalStages, getShortName, isFortifyExtendedThisRound, isFortifying, isFortifyOnFinalStageMethods inherited from interface megamek.common.units.IAero
canLandHorizontally, canLandVertically, canTakeOffHorizontally, canTakeOffVertically, checkDown, checkHover, checkManeuver, checkRolls, checkStall, checkThrustSI, checkThrustSITotal, checkVelocityDouble, checkVerticalTakeOff, getAltitude, getClusterMods, getLandingControlRoll, getLandingControlRoll, getLandingCoords, getLandingLength, getTakeOffLength, hasRoomForHorizontalLanding, hasRoomForHorizontalLanding, hasRoomForHorizontalTakeOff, hasRoomForLanding, hasRoomForLanding, hasRoomForVerticalLanding, hasRoomForVerticalLanding, 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, isVTOLBombing, setBombChoicesMethods 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.RubbleClearer
bankRubbleClearTurn, beginClearingRubble, cancelClearingRubble, isClearingRubbleMethods 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
-
CONV_MODE_MEK
public static final int CONV_MODE_MEK- See Also:
-
CONV_MODE_AIR_MEK
public static final int CONV_MODE_AIR_MEK- See Also:
-
CONV_MODE_FIGHTER
public static final int CONV_MODE_FIGHTER- See Also:
-
LAM_AVIONICS
public static final int LAM_AVIONICS- See Also:
-
LAM_LANDING_GEAR
public static final int LAM_LANDING_GEAR- See Also:
-
systemNames
-
LAM_UNKNOWN
public static final int LAM_UNKNOWN- See Also:
-
LAM_STANDARD
public static final int LAM_STANDARD- See Also:
-
LAM_BIMODAL
public static final int LAM_BIMODAL- See Also:
-
LAM_STRING
-
LOC_CAPITAL_NOSE
public static final int LOC_CAPITAL_NOSELocations for capital fighter weapons groups- See Also:
-
LOC_CAPITAL_AFT
public static final int LOC_CAPITAL_AFT- See Also:
-
LOC_CAPITAL_WINGS
public static final int LOC_CAPITAL_WINGS- See Also:
-
intBombChoices
-
extBombChoices
-
-
Constructor Details
-
LandAirMek
public LandAirMek(int inGyroType, int inCockpitType, int inLAMType)
-
-
Method Details
-
getAeroLocation
public static int getAeroLocation(int loc) Translate a `Mek location to the equivalent Aero location. -
getNoOfSlots
protected int[] getNoOfSlots()Returns a vector of slot counts for all locations- Overrides:
getNoOfSlotsin classBipedMek
-
getLocationNames
Returns a vector of names for all locations- Overrides:
getLocationNamesin classBipedMek
-
getLocationAbbreviations
Returns a vector of abbreviations for all locations- Overrides:
getLocationAbbreviationsin classBipedMek
-
clearEngineCrits
public void clearEngineCrits()Description copied from class:MekRemove all engine critical slots from the mek. Note: This is part of the mek creation public API, and might not be referenced by any MegaMek code.- Overrides:
clearEngineCritsin classMek
-
addEngineCrits
public void addEngineCrits()Description copied from class:MekAdd the critical slots necessary for the mek's engine. Calling this method before setting a mek's engine object will result in a NPE. Note: This is part of the mek creation public API, and might not be referenced by any MegaMek code.- Overrides:
addEngineCritsin classMek
-
setCrew
-
getSystemName
- Overrides:
getSystemNamein classMek
-
getRawSystemName
- Overrides:
getRawSystemNamein classMek
-
getLAMType
public int getLAMType() -
setLAMType
public void setLAMType(int lamType) -
getLAMTypeString
-
getLAMTypeString
-
getLAMTypeForString
-
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).
-
getWalkMP
Current MP is calculated differently depending on the LAM's mode. AirMek mode returns cruise/flank; walk/run is treated as a special case of WiGE ground movement. -
getRunMP
- Overrides:
getRunMPin classMekWithArms
-
getSprintMP
Description copied from class:EntityReturns this entity's sprinting MP, modified according to the given setting. For units that can't sprint, this is equal to the modified run/flank MP.- Overrides:
getSprintMPin classMek- Returns:
- This entity's modified sprinting MP
-
getAirMekCruiseMP
-
getAirMekFlankMP
-
getAirMekWalkMP
public int getAirMekWalkMP() -
getAirMekWalkMP
-
getAirMekRunMP
public int getAirMekRunMP() -
getAirMekRunMP
-
getFighterModeWalkMP
-
getFighterModeRunMP
-
getCurrentThrust
public int getCurrentThrust()- Specified by:
getCurrentThrustin interfaceIAero
-
getCurrentThrust
-
getAirMekCruiseMP
public int getAirMekCruiseMP() -
getAirMekFlankMP
public int getAirMekFlankMP() -
getMPBoosters
LAMs cannot benefit from MASC in AirMek or fighter mode and cannot mount a supercharger.- Overrides:
getMPBoostersin classEntity- Returns:
- does this Mek have MASC, Supercharger or both?
-
getArmedMPBoosters
- Overrides:
getArmedMPBoostersin classEntity- Returns:
- does this Mek have Armed MASC, Supercharger or both?
-
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 classBipedMek- Returns:
- True if the target is considered immobile as a target and unable to move actively.
-
getWalkHeat
public int getWalkHeat()Description copied from class:Entityget the heat generated by this Entity when walking/cruising- Overrides:
getWalkHeatin classMek
-
getRunHeat
public int getRunHeat()Description copied from class:MekDepends on engine type- Overrides:
getRunHeatin classMek
-
getAirMekHeat
public int getAirMekHeat() -
getEngineCritHeat
public int getEngineCritHeat()Description copied from class:MekReturns extra heat generated by engine crits- Overrides:
getEngineCritHeatin classMek- Returns:
- The extra heat generated by engine crits.
-
getHeatSinks
public int getHeatSinks()- Specified by:
getHeatSinksin interfaceIAero
-
usesTurnMode
public boolean usesTurnMode()Description copied from class:EntityOnly check for satisfied turn mode for Tanks or QuadVees in vehicle mode, or LAMs in AirMek mode. Except for LAMs, check whether advanced vehicle ground movement is enabled.- Overrides:
usesTurnModein classEntity- Returns:
- True if this
Entitymust make a driving check for turning too sharply.
-
getPreviousMovementMode
When cycling through possible movement modes, we need to know if we've returned to the previous mode, which means that no conversion is actually going to take place.- Returns:
- The movement mode on the previous turn.
-
getPreviousConversionMode
public int getPreviousConversionMode() -
setMovementMode
Description copied from class:EntitySet the movement type of the entity- Overrides:
setMovementModein classEntity
-
setConversionMode
public void setConversionMode(int mode) Description copied from class:EntitySets the unit to be in the given mode.- Overrides:
setConversionModein classEntity- Parameters:
mode- The new mode
-
canAssaultDrop
public boolean canAssaultDrop()- Overrides:
canAssaultDropin classMek
-
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 classMek- Parameters:
c- The position to testtestBoardId- The board to testtestElevation- The elevation or altitude to test- Returns:
- True when the location is illegal to be in for this unit, regardless of elevation
- See Also:
-
getMovementString
Description copied from class:MekReturns the name of the type of movement used. This is Mek-specific.- Overrides:
getMovementStringin classMek
-
getMovementAbbr
Description copied from class:MekReturns the name of the type of movement used. This is Mek-specific.- Overrides:
getMovementAbbrin classMek
-
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.
-
addEntityBonuses
Add in any piloting skill mods- Overrides:
addEntityBonusesin classBipedMek
-
checkAirMekLanding
Landing in AirMek mode requires a control roll only if the gyro or any of the hip or leg actuators are damaged.- Returns:
- The control roll that must be passed to land safely.
-
getMaxElevationDown
public int getMaxElevationDown(int currElevation) Description copied from class:EntityReturns the maximum number of downward elevation changes a unit can make. For some units (namely, WiGEs), this can depend upon their current elevation (since elevation determines if the WiGEs is using WiGE movement or not).- Overrides:
getMaxElevationDownin classMek
-
canChangeSecondaryFacing
public boolean canChangeSecondaryFacing()Description copied from class:EntityCan this entity change secondary facing at all?- Overrides:
canChangeSecondaryFacingin classMek
-
newRound
public void newRound(int roundNumber) Start a new round- Specified by:
newRoundin interfaceRoundUpdated- Overrides:
newRoundin classMek- Parameters:
roundNumber- theintnumber of the new round
-
isEligibleForPhysical
public boolean isEligibleForPhysical()Cannot make any physical attacks in fighter mode except ramming, which is handled in the movement phase.- Overrides:
isEligibleForPhysicalin classEntity
-
canCharge
public boolean canCharge() -
canRam
public boolean canRam() -
nextConversionMode
Description copied from class:EntityEntities that can convert movement modes (LAMs, QuadVees) report the next mode to assume when a convert movement command is processed. This provides a set order for cycling through available modes.- Overrides:
nextConversionModein classMek- Parameters:
afterMode- The movement mode to convert from.- Returns:
- The next movement mode in the sequence.
-
canConvertTo
-
canConvertTo
public boolean canConvertTo(int fromMode, int toMode) Determines whether it is possible to assume a particular mode based on damage and type of map.- Parameters:
fromMode- The mode to convert from (one of CONV_MODE_MEK, CONV_MODE_AIR_MEK, or CONV_MODE_FIGHTER)toMode- The mode to convert to (one of CONV_MODE_MEK, CONV_MODE_AIR_MEK, or CONV_MODE_FIGHTER)- Returns:
- true if it is possible for the LAM to convert to the given mode.
-
getConversionModeFor
-
canFall
public boolean canFall(boolean gyroLegDamage) Description copied from class:MekQuadVees and LAMs may not have to make PSRs to avoid falling depending on their mode, and Meks using tracks for movement do not have to make PSRs for damage to gyro or leg actuators. -
getConstructionTechAdvancement
Description copied from class:Entityreturn - the base construction option tech advancement- Overrides:
getConstructionTechAdvancementin classMek
-
height
public int height()Description copied from class:MekReturn the height of this Mek above the terrain. -
canLoad
LAMs can only carry mechanized BA in mek mode -
hasInfernoAmmo
public boolean hasInfernoAmmo()Bomb ordnance is treated as inferno ammo for purposes of avoiding explosion due to heat.- Overrides:
hasInfernoAmmoin classEntity- Returns:
trueif the unit is still loaded with inferno rounds or bomb ordnance.
-
setWhoFirst
public void setWhoFirst()Fighter Mode -
getMaxBombPoints
public int getMaxBombPoints()- Specified by:
getMaxBombPointsin interfaceIBomber- Returns:
- The total number of bomb points that the bomber can carry.
-
getMaxExtBombPoints
public int getMaxExtBombPoints()- Specified by:
getMaxExtBombPointsin interfaceIBomber- Returns:
- maximum number of bomb points this bomber can mount externally
-
getMaxIntBombPoints
public int getMaxIntBombPoints()- Specified by:
getMaxIntBombPointsin interfaceIBomber- Returns:
- maximum number of bomb points this bomber can mount internally
-
getMaxIntBombSize
public int getMaxIntBombSize()Description copied from interface:IBomberFighters and VTOLs can carry any size bomb up to the maximum number of points per location (internal/external), but LAMs are limited to the number of bays in a single location.- Specified by:
getMaxIntBombSizein interfaceIBomber- Returns:
- Largest empty bay size
-
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
-
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.
-
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
-
getVTOLBombTarget
- Specified by:
getVTOLBombTargetin interfaceIBomber
-
setVTOLBombTarget
Description copied from interface:IBomberUsed by VTOLs and LAMs in AirMek mode to declare the target hex for a bomb attack during the movement phase.- Specified by:
setVTOLBombTargetin interfaceIBomber
-
isMakingVTOLGroundAttack
public boolean isMakingVTOLGroundAttack()- Overrides:
isMakingVTOLGroundAttackin classEntity- Returns:
- true if the VTOL or LAM is making a VTOL strafe or VTOL/AirMek bomb attack
-
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.
-
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
-
isRolled
public boolean isRolled() -
isOutControlTotal
public boolean isOutControlTotal()- Specified by:
isOutControlTotalin interfaceIAero
-
isOutControl
public boolean isOutControl()- Specified by:
isOutControlin interfaceIAero
-
setOutControl
public void setOutControl(boolean outControl) - Specified by:
setOutControlin interfaceIAero
-
isOutControlHeat
public boolean isOutControlHeat()- Specified by:
isOutControlHeatin interfaceIAero
-
setOutControlHeat
public void setOutControlHeat(boolean outControlHeat) - Specified by:
setOutControlHeatin interfaceIAero
-
isRandomMove
public boolean isRandomMove()- Specified by:
isRandomMovein interfaceIAero
-
setRandomMove
public void setRandomMove(boolean randomMove) - Specified by:
setRandomMovein interfaceIAero
-
setRolled
public void setRolled(boolean roll) -
didAccLast
public boolean didAccLast()- Specified by:
didAccLastin interfaceIAero
-
setAccLast
public void setAccLast(boolean b) - Specified by:
setAccLastin interfaceIAero
-
setSI
public void setSI(int si) -
getSI
public int getSI() -
getOSI
public int getOSI() -
hasLifeSupport
public boolean hasLifeSupport()- Specified by:
hasLifeSupportin interfaceIAero
-
getNoseArmor
public int getNoseArmor()Used to determine modifier for landing.- Specified by:
getNoseArmorin interfaceIAero
-
getLocationStatus
public int getLocationStatus(int loc) returns exposure or breached flag for location- Overrides:
getLocationStatusin classEntity
-
getAvionicsHits
public int getAvionicsHits()- Specified by:
getAvionicsHitsin interfaceIAero
-
getSensorHits
public int getSensorHits()- Specified by:
getSensorHitsin interfaceIAero
-
getFCSHits
public int getFCSHits()- Specified by:
getFCSHitsin interfaceIAero
-
getLeftThrustHits
public int getLeftThrustHits()- Specified by:
getLeftThrustHitsin interfaceIAero
-
getRightThrustHits
public int getRightThrustHits()- Specified by:
getRightThrustHitsin interfaceIAero
-
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
-
getWeaponArc
public int getWeaponArc(int weaponNumber) In fighter mode the weapon arcs need to be translated to Aero arcs.- Overrides:
getWeaponArcin classMek- Parameters:
weaponNumber- integer equipment number, index from equipment list- Returns:
- arc the specified weapon is in
-
rollHitLocation
public HitData rollHitLocation(int table, int side, int aimedLocation, AimingMode aimingMode, int cover) Hit location table for fighter mode- Overrides:
rollHitLocationin classMek- Returns:
- HitData, possibly re-rolled once (once!) with Edge.
-
rollHitLocation
Description copied from class:EntityRolls up a hit location- Overrides:
rollHitLocationin classMek
-
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.
-
getThresh
public int getThresh(int loc) Exceeding damage threshold does not result in critical, but requires control roll. -
getHighestThresh
public int getHighestThresh()- Specified by:
getHighestThreshin interfaceIAero- Returns:
- the highest damage threshold for the LAM unit
-
wasCritThresh
public boolean wasCritThresh()- Specified by:
wasCritThreshin interfaceIAero
-
setCritThresh
public void setCritThresh(boolean b) - Specified by:
setCritThreshin interfaceIAero
-
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
-
getStraightMoves
public int getStraightMoves()- Specified by:
getStraightMovesin interfaceIAero
-
setStraightMoves
public void setStraightMoves(int i) - Specified by:
setStraightMovesin interfaceIAero
-
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
-
isVSTOL
public boolean isVSTOL() -
isSTOL
public boolean isSTOL() -
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.
-
getFuelUsed
public int getFuelUsed(int thrust) - Specified by:
getFuelUsedin interfaceIAero
-
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
-
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
-
autoSetCapArmor
public void autoSetCapArmor()- Specified by:
autoSetCapArmorin interfaceIAero
-
autoSetFatalThresh
public void autoSetFatalThresh()- Specified by:
autoSetFatalThreshin interfaceIAero
-
getCurrentDamage
public int getCurrentDamage()- Specified by:
getCurrentDamagein interfaceIAero
-
setCurrentDamage
public void setCurrentDamage(int i) - Specified by:
setCurrentDamagein interfaceIAero
-
getWeaponGroups
- Specified by:
getWeaponGroupsin interfaceIAero
-
groupWeaponsByLocation
Provide weapon groups for capital fighters. For capital fighter purposes we use Aero locations.- 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.
-
doDisbandDamage
public void doDisbandDamage()- Specified by:
doDisbandDamagein interfaceIAero
-
getTilesetModeString
Description copied from class:EntityEntities that use different sprites for different modes should override this- Overrides:
getTilesetModeStringin classEntity- Returns:
- a code identifying the mode, or an empty string for the default sprite
-
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()- Specified by:
isBomberin interfaceTargetable- Returns:
- if this is an
Entitycapable of carrying and using bombs
-
availableBombLocation
public int availableBombLocation(int cost) Try to find a location that has enough empty bomb bays to accommodate the bomb size- 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.
-
addBomb
- Overrides:
addBombin classEntity- Throws:
LocationFullException
-
addEquipment
public Mounted<?> addEquipment(EquipmentType equipmentType, int loc, boolean rearMounted) throws LocationFullException Description copied from class:EntityCreates a new mount for this equipment and adds it in.- Overrides:
addEquipmentin classEntity- Throws:
LocationFullException
-
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. -
getEntityType
public long getEntityType()- Overrides:
getEntityTypein classBipedMek
-
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
-
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)
-