Package megamek.common.battleArmor
Class BattleArmor
java.lang.Object
megamek.common.turns.TurnOrdered
megamek.common.units.Entity
megamek.common.units.Infantry
megamek.common.battleArmor.BattleArmor
- All Implemented Interfaces:
Serializable,ICarryable,Transporter,InGameObject,CombatRole,ForceAssignable,ITechnology,ITurnOrdered,PhaseUpdated,RoundUpdated,BTObject,Deployable,Targetable
This class represents a squad or point of battle armor equipped infantry, sometimes referred to as "Elementals".
- 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 StringThe internal name for advanced.static final int/** The maximum number of men in a battle armor squad.static final StringThe internal name for basic Stealth armor.static final StringThe internal name for Simple Camo equipment.static final intstatic final intstatic final StringInternal name of the disposable NARC ammo pack.static final StringInternal name of the Inner disposable SRM2 ammo pack.static final StringThe internal name for fire-resistant armor.static final StringThe internal name for improved Stealth armor.static final intThe location for infantry equipment.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 String[]A list of the display names for the different manipulator types.static final intstatic final intstatic final String[]A list of the internal names for the different manipulator types.static final StringThe internal name for Mimetic armor.static final StringThe internal name for the Mine Launcher weapon.static final intstatic final intstatic final String[]static final intThe location for mounted equipment on BAstatic final intstatic final intstatic final intHow many mount locations are possible?protected intThe cost of this unit.static final StringThe internal name for Single-Hex ECM equipment.static final StringThe internal name for standard Prototype.static final StringThe internal name for standard Stealth armor.static final StringThe internal name for stealth Prototype.protected static final TechAdvancement[]Fields inherited from class megamek.common.units.Infantry
activeTroopers, DUG_IN_COMPLETE, DUG_IN_FORTIFYING1, DUG_IN_FORTIFYING2, DUG_IN_FORTIFYING3, DUG_IN_NONE, DUG_IN_WORKING, HIT_DECK_TURNS_TO_DIG_IN, LEG_ATTACK, originalTrooperCount, squadCount, squadSize, STOP_SWARM, SWARM_MEK, SWARM_WEAPON_MEK, turnsLayingExplosivesFields 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.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_SEARCHLIGHT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddEquipment(Mounted<?> mounted, int loc, boolean rearMounted) Mounts the specified equipment in the specified location.voidUpdate the unit to reflect damages taken in this phase.intapplyImprovedMagneticPulseTrooperDisable(int missiles) Records Improved Magnetic Pulse (iATM IMP) missile hits on this battle armor unit (IO IMP rules).voidSets the internal structure for every location to appropriate undamaged values for the unit and location.intbooleanbooleanDetermines whether this Battle Armor squad is permitted to carry Disposable Weapons (TO:AuE p.116, Corrected Sixth Printing).booleanCan this entity change secondary facing at all?booleancan this BattleArmor ride as Mechanized BA?booleanbooleanDeprecated, for removal: This API element is subject to removal in a future version.booleancanTransferCriticalSlots(int loc) Returns true if this location should transfer criticalSlots to the next location inwards.static TechAdvancementintdoubledoubleintintgetArmor(int loc, boolean rear) Battle Armor units have no armor on their squad location.static StringgetBaMountLocAbbr(int loc) static StringgetBaMountLocName(int loc) intDeprecated, for removal: This API element is subject to removal in a future version.intreturn - the base construction option tech advancementstatic TechAdvancementgetConstructionTechAdvancement(int weightClass) doublegetCost(CalculationReport calcReport, boolean ignoreAmmo) Calculates and returns the C-bill cost of the unit.longintCalculates a "generic" Battle Value that is based on the average of all units of this type and tonnage.intintgetInternal(int loc) Battle Armor units have no internals on their squad location.intgetJumpMP(MPCalculationSetting mpCalculationSetting) Mounted<?> Returns theMountedfor the manipulator mounted in the left arm of thisBattleArmorsquad.Returns theEquipmentTypeinternal name for the manipulator mounted in the left arm of thisBattleArmorsquad.String[]getLocationDamage(int loc) String[]intDeprecated, for removal: This API element is subject to removal in a future version.getManipulator(int mountLocation) Returns the Mounted for the manipulator in the given location of this BattleArmor squad or null if there is none.intintintgetMaximumJumpMP(boolean ignoreEquipment) Returns the maximum jump MP that this BA can have.intintDeprecated, for removal: This API element is subject to removal in a future version.getMovementAbbr(EntityMovementType movementType) Returns the abbreviation of the type of movement used.getMovementString(EntityMovementType movementType) Returns the name of the type of movement used.protected int[]Battle Armor units have as many critical slots as they need to hold their equipment.intgetNumAllowedAntiMekWeapons(int loc) Returns the number of allowed anti-mek weapons the supplied location can mount.intgetNumAllowedAntiPersonnelWeapons(int loc, int trooper) Returns the number of allowed anti-personnel weapons the location can mount.intintgetNumCrits(int loc) intgetOArmor(int loc, boolean rear) Battle Armor units have no armor on their squad location.intgetOInternal(int loc) Battle Armor units have no internals on their squad location.intReturns this entity's original jumping mp.intintMounted<?> Returns theMountedfor the manipulator mounted in the right arm of thisBattleArmorsquad.Returns theEquipmentTypeinternal name for the manipulator mounted in the right arm of thisBattleArmorsquad.intgetRunMP(MPCalculationSetting mpCalculationSetting) intintDeprecated, for removal: This API element is subject to removal in a future version.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.Returns the name of the stealth Armor used by the BA.intDeprecated, for removal: This API element is subject to removal in a future version.Battle Armor units don't transfer damage.getTrooperAtLocation(HitData hit, Entity transport) For level 3 rules, each trooper occupies a specific location precondition: hit is a location covered by BAdoubleintintintReturn how many BA vibroclaws thisEntityis equipped withintgetWalkMP(MPCalculationSetting mpCalculationSetting) intgetWeaponArc(int weaponNumber) Returns the Rules.ARC that the weapon, specified by number, fires into.doubleintbooleanreturn if the BA has any kind of active probebooleanbooleanhasDWP()does this BA have an unjettisoned DWP?booleanreturn if this BA has improved sensorsbooleanConvenience method for determining if the BA has magnetic clamps.booleanhasMiscInMountLocation(String internalName, int location) Returns true when the entity has a MiscType equipment of the given internalName, regardless of its state, in the given mount location (arm/body...).booleanbooleandoes this ba mount a myomer booster?booleanReturns true when this object is a BattleArmor unit or of type BA for Alpha Strike.booleanDetermines if the battle armor unit is burdened with un-jettisoned equipment.booleanFor future reference.booleanbooleanReturns 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.booleanbooleanreturn if this BA has fire-resistant armorbooleando we have a half-hit hardened armor point in the location struck by this?booleanisLocationProhibited(Coords c, int testBoardId, int currElevation) Returns true when the given location cannot legally be entered or deployed into by this unit at the given elevation or altitude.booleanbooleanreturn if this BA has reactive armorbooleanreturn if this BA has laser reflective armorbooleanisSecondaryArcWeapon(int wn) Returns true if this weapon fires into the secondary facing arc.booleanDetermine if this unit has an active stealth system.booleanbooleanisTrooperActive(int trooperNum) booleanloadWeapon(WeaponMounted mounted, AmmoMounted mountedAmmo) Tries to load the specified weapon with the specified ammo.booleanloadWeaponWithSameAmmo(WeaponMounted mounted, AmmoMounted mountedAmmo) Tries to load the specified weapon with the specified ammo.intReturns the number of Troopers in the BattleArmor squad, since locations for BattleArmor correspond to the different suits instead of the actual mount locations for equipment.voidnewRound(int roundNumber) Prepare the entity for a new round of action.rollHitLocation(int table, int side) Rolls up a hit locationrollHitLocation(int table, int side, int aimedLocation, AimingMode aimingMode, int cover) Battle Armor units can only get hit in undestroyed troopers.rollHitLocation(int side, int aimedLocation, AimingMode aimingMode, boolean isAttackingConvInfantry) Battle Armor units can only get hit in undestroyed troopers.voidsetArmorType(int armType) voidsetChassisType(int inCT) voidsetClanExoWithoutHarJel(boolean clanExoWithoutHarJel) voidsetCost(int inC) voidsetInternal(int value) Set the troopers in the unit to the given values.voidsetIsExoskeleton(boolean exoskeleton) voidsetModularTurret(boolean modular) voidsetTurretSize(int capacity) voidsetWeightClass(int inWC) intMethods inherited from class megamek.common.units.Infantry
addEntityBonuses, beginDigIn, beginFortify, canCallSupport, canCharge, canDFA, canDigInFromDeck, canExitVTOLWithGliderWings, canInitiateInfantryVsInfantryCombat, canReinforceInfantryVsInfantry, checkBogDown, checkBogDown, checkLandingInHeavyWoods, checkSkid, clearGroundPostures, clipSecondaryFacing, createLocalSupport, defaultCrewType, getActiveTroopers, getActiveUMUCount, getAllUMUCount, getBaseMovementMode, getDugIn, getEngineHits, getFortifyStage, getFortifyTotalStages, getIsCallingSupport, getMaxExtraneousLimbPairs, getMotiveTechAdvancement, getRecoveryTime, getSquadCount, getSquadSize, getTurnsOnDeck, hasEngine, hasPatchworkArmor, hasUMU, hasValidCover, hasViableWeapons, isCrippled, isEligibleFor, isFortifyExtendedThisRound, isFortifying, isHitTheDeck, isMechanized, isSquad, isTakingCover, isUsingManAce, isValidSecondaryFacing, setCanCallSupport, setDugIn, setFiredWhileOnDeck, setHitTheDeck, setIsCallingSupport, setSquadCount, setSquadSize, setTakingCover, setTransportId, victoryReportMethods inherited from class megamek.common.units.Entity
activateRadicalHS, addAttackedByThisTurn, addBeenDetectedBy, addBeenSeenBy, addBomb, addBomb, addClanCase, 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, addSystemTechAdvancement, addTargetedBySwarm, addTechComponent, addTowedUnit, addTransporter, addTransporter, addTsempHitThisTurn, addWeaponGroup, antiTSMVulnerable, applyGravityEffectsOnMP, applyMagneticPulse, armorStringFor, assignAMS, assignTMAMS, assignWeaponQuirk, attachINarcPod, attachNarcPod, braceLocation, C3MasterIs, calcElevation, calcElevation, calculateBattleValue, calculateBattleValue, calculateBattleValue, calculateBattleValue, calculateFreeC3MNodes, calculateFreeC3Nodes, canActivateBloodStalker, canAnnounceAbandon, canAssist, canBePickedUp, canBrace, canEjectCrew, canEscape, canFall, canFall, canFireWeapon, canFlee, canFlee, canFleeFrom, canFleeInState, canFlipArms, canGoDown, canGoDown, canGoHullDown, canGoUp, canHide, canLayDemolitionCharges, canLayMine, canLoad, canLoad, canLoad, canonUnitWithInvalidBuild, canPerformGroundSalvageOperations, canPerformSpaceSalvageOperations, canPickupCarryableObject, canPickupGroundObject, canRam, canShutdownEi, canSpot, canTow, canUnjamRAC, canUnstickByJumping, changeHeatBuildup, checkDislodgeSwarmers, checkForMASCFailure, checkForSuperchargerFailure, checkGetUp, checkGunningIt, checkLandingOnBlackIce, checkLandingOnIce, checkLandingWithDamage, checkLandingWithPrototypeJJ, checkMovedTooFast, checkMovementInBuilding, checkRecklessMove, checkRubbleMove, checkRunningWithDamage, checkSideSlip, 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, deployOffBoard, destroy, destroyLocation, destroyLocation, destroyOneSearchlight, destroyRetractableBlade, disconnectUnit, doBattleValueCalculation, doCheckEngineStallRoll, doomedInAtmosphere, doomedInExtremeTemp, doomedInSpace, doomedInVacuum, doomedOnGround, dropCarriedObject, dropCarriedObject, dropGroundObjects, elevationOccupied, elevationOccupied, endOfTurnCargoInteraction, entityIsQuad, equals, extendBlade, factionTechLevel, findTargetedDisplacement, fixElevation, formatHeat, gameOptions, generalName, generateDisplayName, generateShortName, getAbandonmentAnnouncedRound, getActiveAMS, getActiveSensor, getActiveSubEntities, getActiveVibrobladeHeat, getActiveVibrobladeHeat, getAllGyroCodeName, getAllowedPhysicalAttacks, getAllTowedUnits, getAlreadyTwisted, getAltitude, getAmmo, getAmmo, getAmmo, getAnyTypeMaxJumpMP, getArmedMPBoosters, getArmor, getArmor, getArmoredComponentTechAdvancement, getArmorForReal, getArmorForReal, getArmorRemainingPercent, getArmorString, getArmorString, getArmorTechLevel, getArmorTechRating, getArmorType, getArmorWeight, getArmorWeight, getArmsFlipped, getASEWAffected, getAttackedByThisTurn, getAttackingEntity, getBadCriticalSlots, getBAPRange, getBARRating, getBase64Icon, getBaseAvailability, getBaseChassisFireConWeight, getBaseChassisValue, getBaseEngineValue, getBasePilotingRoll, getBasePilotingRoll, getBay, getBayByAmmo, getBayById, getBayLoadedUnitIds, getBayPersonnel, getBlockedFiringLocations, getBloodStalkerTarget, getBlueShieldRounds, getBoardId, getBoardLocation, getBodyLocation, 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, getECCMStrength, getECMInfo, getECMRange, getECMStrength, getElevation, getEMPInterferenceRounds, getEMPShutdownRounds, getEmptyCriticalSlots, getEngine, getEngineCritHeat, 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, getGrappled, getGrappleSide, getGroundAttackedByThisTurn, getGyroType, getHeading, getHeat, getHeatBreakdown, getHeatCapacity, getHeatCapacity, getHeatCapacityWithWater, getHeatFiringModifier, getHeatInArc, getHeatMPReduction, getHeight, getHiddenActivationPhase, getHitchCarrying, getHitchLocations, getHitCriticalSlots, getHittableCriticalSlots, getHQIniBonus, getIcon, getId, getImpLastTurn, getImpMpReduction, getImpToHitModifier, getINarcPodsAttached, getIndividualWeaponList, getInfantryCombatTargetId, getInfantryCombatTurnCount, getInitialBV, getInternal, getInternalBombLoadout, getInternalForReal, getInternalRemainingPercent, getInternalString, getIntroductionDate, getIntroductionDate, getIntroductionDateAndEra, getInvalidSourceBuildReasons, getIsJumpingNow, getJumpHeat, getJumpMP, getJumpMPWithTerrain, getJumpType, getKillerId, getKillNumber, getKills, getLabArmorTonnage, getLabTotalArmorPoints, getLastTarget, getLastTargetDisplayName, getLaunchableDropships, getLaunchableFighters, getLaunchableSmallCraft, getLoadedKeepers, getLoadedTrailers, getLoadedUnits, getLocationAbbr, getLocationAbbr, getLocationFromAbbr, getLocationName, getLocationName, getLocationStatus, getLongRangeModifier, getLOSRangeModifier, getMagneticPulseRounds, getManualBV, getMASC, getMASCTarget, getMASCTurns, getMaxElevationChange, getMaxElevationDown, getMaxElevationDown, getMaxWeaponRange, getMaxWeaponRange, getMechanicalJumpBoosterMP, getMechanicalJumpBoosterMP, getMediumRangeModifier, getMisc, getMisc, getMiscEquipment, getMissionRoles, getMixedTechAdvancement, getModel, getMotiveSideMod, getMovedBackwards, getMovementBeforeSkidPSRModifier, getMovementMode, getMovementModeAsString, getMPBoosters, getMPBoosters, getMpUsedLastRound, getMulId, getNC3NextUUIDAsString, getNCrew, getNeuralInterfaceMode, getNewRoundNovaNetworkString, getNextSensor, getNMarines, getNPassenger, getNumberOfCriticalSlots, getNumberOfCriticalSlots, getNumberOfCriticalSlots, getNumberOfCriticalSlots, getNumberOfShields, getOArmor, getOArmor, getObsoleteQuirkValue, getObsoleteRepairModifier, getObsoleteResaleModifier, getObsoleteYear, getObsoleteYearForModifiers, getObsoleteYears, getOccupiedCoords, getOccupiedHex, getOffBoardDirection, getOffBoardDistance, getOInternal, getOmniAdvancement, getOmniAdvancement, getOriginalBuildYear, getOriginalChassis, getOriginalJumpMP, getOriginalModel, getOriginalNovaC3NetId, getOriginalRunMP, getOriginalUnitFileUUID, getOriginalWalkMP, getOwner, getOwnerId, getPartialRepairs, getPassedThrough, getPassedThroughBoardId, getPassedThroughFacing, getPassengerCapacityWithoutBayCrew, getPatchworkArmorAdvancement, getPendingVariableRangeTargetingMode, getPickedUpMekWarriors, getPickupLocationMap, getPlayerPickedPassThrough, getPodMountedTroopCarryingSpace, getPosition, getPowerAmplifierWeight, getPriceMultiplier, getPriorPosition, getProductionDate, getProductionDate, getProductionDateRange, getPrototypeDate, getPrototypeDate, getPrototypeRangeDate, getPublished, getPublishedSources, getQuirkIniBonus, getQuirkList, getQuirks, getRearArc, 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, getTotalCommGearTons, getTotalInternal, getTotalMunitionsOfType, getTotalOArmor, getTotalOInternal, getTotalWeaponList, getTowedBy, getTowing, getTractor, getTraitorId, getTransferLocation, getTransportBays, getTransportId, getTransports, getTroopCarryingSpace, getTsempEffect, getTsempHitsThisTurn, getUnitFileUUID, getUnitNumber, getUnitsUnloadableFromBays, getUnitsUnloadableFromNonBays, getUnloadableUnits, getUnused, getUnused, getUnusedString, getUnusedString, getUseManualBV, getValidBraceLocations, getValidHalfWeightPickupLocations, getVariableRangeTargetingMode, getVariableRangeTargetingModifier, getVector, getVectors, getVelocity, getWalkHeat, getWalkMP, getWeapon, getWeaponBayList, getWeaponFiringHeight, getWeaponFiringPosition, getWeaponGroupList, getWeaponList, getWeaponListWithHHW, getWeapons, getWeaponSortOrder, getWeightClassName, getWhoCanDetect, getWhoCanSee, getYear, hasAbility, hasAbility, hasActivatedRadicalHS, hasActiveBlueShield, hasActiveDNI, hasActiveECCM, hasActiveECM, hasActiveECM, hasActiveEiCockpit, hasActiveNovaCEWS, hasActiveShield, hasActiveShield, hasAimModeTargComp, hasAnyC3System, hasAnyTypeNarcPodsAttached, hasArcFired, hasArmoredChassis, hasArmoredEngine, hasArtillery, hasBAP, hasBAP, hasBARArmor, hasBattleArmorHandles, hasBoobyTrap, hasBoostedC3, hasC3, hasC3i, hasC3M, hasC3MM, hasC3S, hasCase, hasCASEII, hasCASEII, hasCommandConsoleBonus, hasDamagedRHS, hasDetectedEntity, hasDisplacementAttack, hasDNICockpitMod, hasDNIImplant, hasDNIInducedHardToPilot, hasDroneOs, hasECM, hasEiCockpit, hasEmbeddedIcon, hasEMPInterferenceHeat, hasEntityScopedPreEndDeclaration, hasEnvironmentalSealing, hasETypeFlag, hasExternalSearchlight, hasFallen, hasFiredTsemp, hasFiringSolutionFor, hasFleeZone, hasFlotationHull, hasFrontMountedBulldozer, hasFrontMountedSaw, hasFunctionalArmAES, hasFunctionalLegAES, hasGhostTargetEquipment, hasGhostTargets, hasHardenedArmor, hasHarJelIn, hashCode, hasHierarchicalC3, hasHipCrit, hasINarcPodsAttached, hasInfernoAmmo, hasLegActuatorCrit, hasLinkedMGA, hasMinesweeper, hasMisc, hasMisc, hasMisc, hasModularArmor, hasModularArmor, hasMulId, hasNarcPodsAttached, hasNavalC3, hasNhC3, hasNoDefenseShield, hasNovaCEWS, hasObsoleteQuirk, hasOccupiedHex, hasOriginalBuildYear, hasPassiveShield, hasPassiveShield, hasQuirk, hasRearArmor, hasRearMountedBulldozer, hasRHSWentUp, hasSCM, hasSearchlight, hasSeenEntity, hasSensorContactFor, hasShield, hasStealth, hasSystem, hasTAG, hasTargComp, hasTCPAimedShotCapability, hasUndamagedCriticalSlots, hasUnloadedUnitsFromBays, hasUsedRHSLastTurn, hasVariableRangeTargeting, hasVibroblades, hasWorkingBackhoe, hasWorkingBulldozer, hasWorkingMisc, hasWorkingMisc, hasWorkingMisc, hasWorkingMisc, hasWorkingRadicalHS, hasWorkingSCM, hasWorkingSystem, height, hitAllCriticalSlots, implicitClanCASE, incrementInfantryCombatTurnCount, incrementMASCAndSuperchargerLevels, initializeArmor, initializeInternal, initMilitary, initTechAdvancement, isAbandoned, isActive, isActive, isActiveOption, isAeroLandedOnGroundMap, isAeroSensorDestroyed, isAirborne, isAirborneAeroOnGroundMap, isAirborneVTOLorWIGE, isAssaultDropInProgress, isAttackingThisTurn, isBATaserShutdown, isBoardable, isBoardProhibited, isBoardProhibited, isBoobyTrapInitiated, isBracing, isC3CompanyCommander, isC3IndependentMaster, isCanon, isCapitalFighter, isCapitalFighter, isCapitalScale, isCaptured, isCarcass, isCarefulStand, isChainWhipGrappled, isChameleonShieldActive, isChameleonShieldOn, isCharging, isClan, isClanArmor, isClearingMinefield, isClearingWoods, isClimbing, isCommander, isConvertingNow, isDangling, isDeployed, isDesignValid, isDestroyed, isDetectedByEnemy, isDone, isDoomed, isDropping, isEiShutdown, isEjectionPossible, isElevationValid, isEligibleForArtyAutoHitHexes, isEligibleForFiring, isEligibleForInfantryVsInfantry, isEligibleForMovement, isEligibleForOffboard, isEligibleForPavementOrRoadBonus, isEligibleForPhysical, isEligibleForPreEndDeclarations, isEligibleForTargetingPhase, isEnemyOf, isEvading, isEverSeenByEnemy, isFindingClub, isFiredTsempThisTurn, isFirefighter, isGhostTargetCapable, isGrappleAttacker, isGrappledThisRound, isGyroDestroyed, isHidden, isHullDown, isIlluminated, isImmobile, 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, isNightwalker, isNOE, isNonCanonBySource, isNonCanonBySource, isNotCrewedEntityType, isNuclearHardened, isNullSigActive, isNullSigOn, isObsoleteInYear, isOffBoard, isOffBoardObserved, isOmni, isOnAtmosphericGroundMap, isPartOfFighterSquadron, isPendingAbandon, isPermanentlyImmobilized, isPodMountedTransport, isPowerReverse, isPrimitive, isProne, isPushing, isRamming, isReckless, isRepairable, isSalvage, isSelectableThisTurn, isSensorReturn, isShutDown, isShutDownThisPhase, isSpaceborne, isSpotting, isStalled, isStartupThisPhase, isStealthOn, isStuck, isSufferingEMI, isSuperchargerUsed, isSuperHeavy, isSurfaceNaval, isTargetable, isTargetOfDisplacementAttack, isTractor, isTrailer, isTransported, isTrapped, isUncrewed, isUnderwater, isUnjammingRAC, isUnloadedThisTurn, isUnofficial, isUsingSearchlight, isVisibleToEnemy, isVoidSigActive, isVoidSigOn, isWeaponBlockedAt, isWeaponBlockedByTowing, isWeaponOrderChanged, isWeaponValidForPhase, itemOppositeTech, joinLocationAbbr, load, load, load, load, loadAllWeapons, loadDefaultCustomWeaponOrder, loadedUnitsHaveActiveECM, loadQuirks, loadWeapon, 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, setDestroyed, setDetectedByEnemy, setDisplacementAttack, setDisplayName, setDone, setDoomed, setDuplicateMarker, setEiShutdown, setElevation, setEMI, setEMPInterference, setEMPShutdownRounds, setEngine, 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, setOmni, 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, 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, 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, isAero, isAerodyne, isAerospace, isAerospaceFighter, isAerospaceSV, isBattlefieldSupportAsset, isBattleMek, isCombatVehicle, isConventionalFighter, isConventionalInfantry, isDropShip, isFighter, isFixedWingSupport, isGround, isHandheldWeapon, isIndustrialMek, isInfantry, isJumpShip, isLargeAerospace, isMek, isObjectiveMarker, isProtoMek, isQuadMek, isSingleUnit, isSmallCraft, isSpaceStation, isSpheroid, 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.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
isBomber, isBuildingEntityOrGunEmplacement, isHexBeingBombed, isOnBoard, tracksHeatMethods inherited from interface megamek.common.equipment.Transporter
alwaysDamageCargoIfTransportHit, canTow, getCarryables, getNameForRecordSheets, getNumberLoadedThisTurn, getNumberUnloadedThisTurn, getTransporterType, hardpointCost, setEntity
-
Field Details
-
MANIPULATOR_NONE
public static final int MANIPULATOR_NONE- See Also:
-
MANIPULATOR_ARMORED_GLOVE
public static final int MANIPULATOR_ARMORED_GLOVE- See Also:
-
MANIPULATOR_BASIC
public static final int MANIPULATOR_BASIC- See Also:
-
MANIPULATOR_BASIC_MINE_CLEARANCE
public static final int MANIPULATOR_BASIC_MINE_CLEARANCE- See Also:
-
MANIPULATOR_BATTLE
public static final int MANIPULATOR_BATTLE- See Also:
-
MANIPULATOR_BATTLE_MAGNET
public static final int MANIPULATOR_BATTLE_MAGNET- See Also:
-
MANIPULATOR_BATTLE_VIBRO
public static final int MANIPULATOR_BATTLE_VIBRO- See Also:
-
MANIPULATOR_HEAVY_BATTLE
public static final int MANIPULATOR_HEAVY_BATTLE- See Also:
-
MANIPULATOR_HEAVY_BATTLE_MAGNET
public static final int MANIPULATOR_HEAVY_BATTLE_MAGNET- See Also:
-
MANIPULATOR_HEAVY_BATTLE_VIBRO
public static final int MANIPULATOR_HEAVY_BATTLE_VIBRO- See Also:
-
MANIPULATOR_SALVAGE_ARM
public static final int MANIPULATOR_SALVAGE_ARM- See Also:
-
MANIPULATOR_CARGO_LIFTER
public static final int MANIPULATOR_CARGO_LIFTER- See Also:
-
MANIPULATOR_INDUSTRIAL_DRILL
public static final int MANIPULATOR_INDUSTRIAL_DRILL- See Also:
-
MANIPULATOR_TYPE_STRINGS
A list of the internal names for the different manipulator types. The indices in this collection correspond to the MANIPULATOR defines inBattleArmor. These names should match the internal name for the manipulator's MiscType entry. -
MANIPULATOR_NAME_STRINGS
A list of the display names for the different manipulator types. The indices in this collection correspond to the MANIPULATOR defines inBattleArmor. These names should match the name for the manipulator's MiscType entry. -
CHASSIS_TYPE_BIPED
public static final int CHASSIS_TYPE_BIPED- See Also:
-
CHASSIS_TYPE_QUAD
public static final int CHASSIS_TYPE_QUAD- See Also:
-
myCost
protected int myCostThe cost of this unit. This value should be set when the unit's file is read. -
DISPOSABLE_SRM2_AMMO
Internal name of the Inner disposable SRM2 ammo pack.- See Also:
-
DISPOSABLE_NARC_AMMO
Internal name of the disposable NARC ammo pack.- See Also:
-
MINE_LAUNCHER
The internal name for the Mine Launcher weapon.- See Also:
-
ADVANCED_ARMOR
The internal name for advanced. -
STANDARD_PROTOTYPE
The internal name for standard Prototype. -
STEALTH_PROTOTYPE
The internal name for stealth Prototype. -
BASIC_STEALTH_ARMOR
The internal name for basic Stealth armor. -
STANDARD_STEALTH_ARMOR
The internal name for standard Stealth armor. -
IMPROVED_STEALTH_ARMOR
The internal name for improved Stealth armor. -
MIMETIC_ARMOR
The internal name for Mimetic armor. -
FIRE_RESISTANT
The internal name for fire-resistant armor. -
CAMO_SYSTEM
The internal name for Simple Camo equipment.- See Also:
-
SINGLE_HEX_ECM
The internal name for Single-Hex ECM equipment.- See Also:
-
BA_MAX_MEN
public static final int BA_MAX_MEN/** The maximum number of men in a battle armor squad.- See Also:
-
LOC_SQUAD
public static final int LOC_SQUADThe location for infantry equipment.- See Also:
-
LOC_TROOPER_1
public static final int LOC_TROOPER_1- See Also:
-
LOC_TROOPER_2
public static final int LOC_TROOPER_2- See Also:
-
LOC_TROOPER_3
public static final int LOC_TROOPER_3- See Also:
-
LOC_TROOPER_4
public static final int LOC_TROOPER_4- See Also:
-
LOC_TROOPER_5
public static final int LOC_TROOPER_5- See Also:
-
LOC_TROOPER_6
public static final int LOC_TROOPER_6- See Also:
-
MOUNT_LOC_NONE
public static final int MOUNT_LOC_NONEThe location for mounted equipment on BA- See Also:
-
MOUNT_LOC_BODY
public static final int MOUNT_LOC_BODY- See Also:
-
MOUNT_LOC_RIGHT_ARM
public static final int MOUNT_LOC_RIGHT_ARM- See Also:
-
MOUNT_LOC_LEFT_ARM
public static final int MOUNT_LOC_LEFT_ARM- See Also:
-
MOUNT_LOC_TURRET
public static final int MOUNT_LOC_TURRET- See Also:
-
MOUNT_LOC_NAMES
-
MOUNT_NUM_LOCS
public static final int MOUNT_NUM_LOCSHow many mount locations are possible?- See Also:
-
TA_BATTLEARMOR
-
-
Constructor Details
-
BattleArmor
public BattleArmor()Generate a new, blank, battle armor unit. Hopefully, we'll be loaded from somewhere.
-
-
Method Details
-
getLocationAbbreviations
- Specified by:
getLocationAbbreviationsin classEntity
-
getBaMountLocName
-
getBaMountLocAbbr
-
getLocationNames
- Specified by:
getLocationNamesin classEntity
-
locations
public int locations()Returns the number of Troopers in the BattleArmor squad, since locations for BattleArmor correspond to the different suits instead of the actual mount locations for equipment. -
getUnitType
public int getUnitType()- Specified by:
getUnitTypein classEntity- See Also:
-
exoskeletonTechAdvancement
-
getConstructionTechAdvancement
-
getConstructionTechAdvancement
Description copied from class:Entityreturn - the base construction option tech advancement- Specified by:
getConstructionTechAdvancementin classEntity
-
getOriginalJumpMP
public int getOriginalJumpMP()Returns this entity's original jumping mp.- Overrides:
getOriginalJumpMPin classEntity
-
getWalkMP
-
getRunMP
-
hasMyomerBooster
public boolean hasMyomerBooster()does this ba mount a myomer booster? -
getJumpMP
-
getMovementString
Returns the name of the type of movement used. This is Infantry-specific.- Specified by:
getMovementStringin classEntity
-
getMovementAbbr
Returns the abbreviation of the type of movement used. This is Infantry-specific.- Overrides:
getMovementAbbrin classInfantry
-
rollHitLocation
public HitData rollHitLocation(int table, int side, int aimedLocation, AimingMode aimingMode, int cover) Battle Armor units can only get hit in undestroyed troopers.- Specified by:
rollHitLocationin classEntity
-
rollHitLocation
public HitData rollHitLocation(int side, int aimedLocation, AimingMode aimingMode, boolean isAttackingConvInfantry) Battle Armor units can only get hit in undestroyed troopers.- Parameters:
isAttackingConvInfantry- Set to true when attacked by CI, as these cannot score TacOps crits
-
rollHitLocation
Description copied from class:EntityRolls up a hit location- Specified by:
rollHitLocationin classEntity
-
getTrooperAtLocation
For level 3 rules, each trooper occupies a specific location precondition: hit is a location covered by BA- Overrides:
getTrooperAtLocationin classEntity
-
getTransferLocation
Battle Armor units don't transfer damage.- Specified by:
getTransferLocationin classEntity
-
getArmor
public int getArmor(int loc, boolean rear) Battle Armor units have no armor on their squad location. -
getOArmor
public int getOArmor(int loc, boolean rear) Battle Armor units have no armor on their squad location. -
getInternal
public int getInternal(int loc) Battle Armor units have no internals on their squad location.- Overrides:
getInternalin classEntity- See Also:
-
getOInternal
public int getOInternal(int loc) Battle Armor units have no internals on their squad location.- Overrides:
getOInternalin classEntity- See Also:
-
getOriginalTrooperCount
public int getOriginalTrooperCount()- Overrides:
getOriginalTrooperCountin classInfantry- Returns:
- The full original strength (trooper count) of this infantry unit
-
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
-
setInternal
public void setInternal(int value) Set the troopers in the unit to the given values. -
addEquipment
public void addEquipment(Mounted<?> mounted, int loc, boolean rearMounted) throws LocationFullException Mounts the specified equipment in the specified location.- 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
-
getNoOfSlots
protected int[] getNoOfSlots()Battle Armor units have as many critical slots as they need to hold their equipment.- Overrides:
getNoOfSlotsin classInfantry
-
newRound
public void newRound(int roundNumber) Prepare the entity for a new round of action.- Specified by:
newRoundin interfaceRoundUpdated- Overrides:
newRoundin classInfantry- Parameters:
roundNumber- theintnumber of the new round
-
applyDamage
public void applyDamage()Update the unit to reflect damages taken in this phase.- Overrides:
applyDamagein classInfantry
-
getShootingStrength
public int getShootingStrength()- Overrides:
getShootingStrengthin classInfantry- Returns:
- The number of troopers in the platoon before damage to the current phase is applied.
-
applyImprovedMagneticPulseTrooperDisable
public int applyImprovedMagneticPulseTrooperDisable(int missiles) Records Improved Magnetic Pulse (iATM IMP) missile hits on this battle armor unit (IO IMP rules). Each warhead that hits disables one trooper through the End Phase of the following turn, capped at the number of troopers still alive. Additional hits have no effect beyond the missiles' normal damage, so a later hit never lowers the disabled count (it takes the higher of the existing and new count).- Parameters:
missiles- number of IMP warheads that hit this unit- Returns:
- the number of troopers disabled
-
getImprovedMagneticPulseDisabledTroopers
public int getImprovedMagneticPulseDisabledTroopers() -
setCost
public void setCost(int inC) -
isBurdened
public boolean isBurdened()Determines if the battle armor unit is burdened with un-jettisoned equipment. This can prevent the unit from jumping or using their special Anti-Mek attacks.- Returns:
trueif the unit hasn't jettisoned its equipment yet,falseif it has.
-
canMakeAntiMekAttacks
public boolean canMakeAntiMekAttacks()- Specified by:
canMakeAntiMekAttacksin classInfantry- Returns:
- True for all infantry that are allowed AM attacks. Mechanized infantry and infantry units with encumbering armor or field guns are not allowed to make AM attacks, while all other infantry are. Note that a conventional infantry unit without Anti-Mek gear (15 kg per trooper) can still make AM attacks but has a fixed 8 AM skill rating.
-
hasDWP
public boolean hasDWP()does this BA have an unjettisoned DWP? -
canMountDWP
Deprecated, for removal: This API element is subject to removal in a future version.Returns true if thisBattleArmorcan use a detachable weapon pack. ABattleArmormust have 2 or more walking MP and be Medium or heavier to mount DWP.Used in MML!
- Returns:
- True if this BA can use a detachable weapon pack
-
getStealthName
Returns the name of the stealth Armor used by the BA. Mostly for MegaMekLab Usage.- Returns:
- name of the stealth armor.
-
getCamoName
Deprecated, for removal: This API element is subject to removal in a future version. -
getShortStealthMod
Deprecated, for removal: This API element is subject to removal in a future version.Public interface to the BattleArmors short range stealth modifier- Returns:
- shortStealthMod
-
getMediumStealthMod
Deprecated, for removal: This API element is subject to removal in a future version.Public interface to the BattleArmors medium range stealth modifier- Returns:
- mediumStealthMod
-
getLongStealthMod
Deprecated, for removal: This API element is subject to removal in a future version.Public interface to the BattleArmors long range stealth modifier- Returns:
- longStealthMod
-
isStealthActive
public boolean isStealthActive()Determine if this unit has an active stealth system.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.
-
isMimetic
public boolean isMimetic() -
hasCamoSystem
public boolean hasCamoSystem() -
isStealthy
public boolean isStealthy()- Specified by:
isStealthyin classInfantry- Returns:
- True if this infantry unit has any type of stealth system.
-
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- - the entity making the attack.- Returns:
- a
TargetRollvalue that contains the stealth modifier for the given range.
-
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. -
getAlternateCost
public double getAlternateCost()- Overrides:
getAlternateCostin classEntity- Returns:
- An alternative cost that will be added to the MekSummaryCache - at the moment it is primarily used to rework infantry costs for MekHQ, but it could be applied to other unit types as well - defaults to -1, so there is no confusion.
-
setWeightClass
public void setWeightClass(int inWC) -
getTrooperWeight
public double getTrooperWeight() -
getWeightClass
public int getWeightClass()- Overrides:
getWeightClassin classEntity
-
setChassisType
public void setChassisType(int inCT) -
getChassisType
public int getChassisType() -
canAssaultDrop
public boolean canAssaultDrop()- Overrides:
canAssaultDropin classEntity
-
isTrooperActive
public boolean isTrooperActive(int trooperNum) -
getNumberActiveTroopers
public int getNumberActiveTroopers() -
getRandomTrooper
public int getRandomTrooper() -
loadWeapon
Description copied from class:EntityTries to load the specified weapon with the specified ammo. Returns true if successful, false otherwise.- Overrides:
loadWeaponin classEntity
-
loadWeaponWithSameAmmo
Description copied from class:EntityTries to load the specified weapon with the specified ammo. Returns true if successful, false otherwise.- Overrides:
loadWeaponWithSameAmmoin classEntity
-
getVibroClaws
public int getVibroClaws()Description copied from class:EntityReturn how many BA vibroclaws thisEntityis equipped with- Overrides:
getVibroClawsin classEntity
-
isFireResistant
public boolean isFireResistant()return if this BA has fire-resistant armor -
isReflective
public boolean isReflective()return if this BA has laser reflective armor -
isReactive
public boolean isReactive()return if this BA has reactive armor -
hasImprovedSensors
public boolean hasImprovedSensors()return if this BA has improved sensors -
hasActiveProbe
public boolean hasActiveProbe()return if the BA has any kind of active probe -
canTransferCriticalSlots
public boolean canTransferCriticalSlots(int loc) Description copied from class:EntityReturns true if this location should transfer criticalSlots to the next location inwards. Checks to see that every critical in this location is either already totally destroyed (not just hit) or was never hittable to begin with.- Overrides:
canTransferCriticalSlotsin classEntity
-
canDoMechanizedBA
public boolean canDoMechanizedBA()can this BattleArmor ride as Mechanized BA? -
getWeight
public double getWeight() -
getAlternateWeight
public double getAlternateWeight() -
getWeaponArc
public int getWeaponArc(int weaponNumber) Description copied from class:EntityReturns the Rules.ARC that the weapon, specified by number, fires into.- Specified by:
getWeaponArcin classEntity- Parameters:
weaponNumber- integer equipment number, index from equipment list- Returns:
- arc the specified weapon is in
-
isHardenedArmorDamaged
Description copied from class:Entitydo we have a half-hit hardened armor point in the location struck by this?- Overrides:
isHardenedArmorDamagedin classEntity
-
setIsExoskeleton
public void setIsExoskeleton(boolean exoskeleton) -
isExoskeleton
public boolean isExoskeleton() -
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
-
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
-
calculateSwarmDamage
public int calculateSwarmDamage() -
getEntityType
public long getEntityType()- Specified by:
getEntityTypein classEntity
-
getMaximumJumpMP
public int getMaximumJumpMP() -
getMaximumJumpMP
public int getMaximumJumpMP(boolean ignoreEquipment) Returns the maximum jump MP that this BA can have.- Parameters:
ignoreEquipment- If true, bonuses from equipment like partial wing and jump booster are ignored. This is important for construction purposes, where we shouldn't allow the JSpinner to select these values.
-
getMaximumWalkMP
public int getMaximumWalkMP() -
getMaximumArmorPoints
public int getMaximumArmorPoints() -
setArmorType
public void setArmorType(int armType) - Overrides:
setArmorTypein classEntity
-
getArmCrits
public int getArmCrits() -
getBodyCrits
public int getBodyCrits() -
getTurretCapacity
public int getTurretCapacity() -
setTurretSize
public void setTurretSize(int capacity) -
hasModularTurretMount
public boolean hasModularTurretMount() -
setModularTurret
public void setModularTurret(boolean modular) -
getTotalCrits
Deprecated, for removal: This API element is subject to removal in a future version. -
getNumCrits
public int getNumCrits(int loc) -
getNumAllowedAntiMekWeapons
public int getNumAllowedAntiMekWeapons(int loc) Returns the number of allowed anti-mek weapons the supplied location can mount. The body can mount a set number of anti-mek weapons and a set number of anti-personnel, however for the arms can mount 2 AP or 1 AP and 1 AM. -
getNumAllowedAntiPersonnelWeapons
public int getNumAllowedAntiPersonnelWeapons(int loc, int trooper) Returns the number of allowed anti-personnel weapons the location can mount. The body can mount a set number of anti-mek weapons and a set number of anti-personnel, however the arms can mount 2 AP or 1 AP and 1 AM. -
canCarryDisposableWeapons
public boolean canCarryDisposableWeapons()Determines whether this Battle Armor squad is permitted to carry Disposable Weapons (TO:AuE p.116, Corrected Sixth Printing). A suit may only carry Disposable Weapons if it is also equipped with an anti-personnel weapon mount or two armored gloves. Note that armored gloves themselves carry theMiscType.F_AP_MOUNTflag, so a dedicated AP mount is identified as anF_AP_MOUNTitem that is not an armored glove.- Returns:
trueif this squad may carry Disposable Weapons
-
hasMagneticClamps
public boolean hasMagneticClamps()Convenience method for determining if the BA has magnetic clamps.- Returns:
- true if the unit has at least one magnetic clamp, else false
-
getLeftManipulatorName
Returns theEquipmentTypeinternal name for the manipulator mounted in the left arm of thisBattleArmorsquad. -
getRightManipulatorName
Returns theEquipmentTypeinternal name for the manipulator mounted in the right arm of thisBattleArmorsquad. -
getManipulator
Returns the Mounted for the manipulator in the given location of this BattleArmor squad or null if there is none. Note that the location should be MOUNT_LOC_LEFT_ARM or MOUNT_LOC_RIGHT_ARM.- Throws:
IllegalArgumentException- for locations that are not one of the arms
-
getLeftManipulator
Returns theMountedfor the manipulator mounted in the left arm of thisBattleArmorsquad. -
getRightManipulator
Returns theMountedfor the manipulator mounted in the right arm of thisBattleArmorsquad. -
isClanExoWithoutHarJel
public boolean isClanExoWithoutHarJel() -
setClanExoWithoutHarJel
public void setClanExoWithoutHarJel(boolean clanExoWithoutHarJel) -
getLocationDamage
- Overrides:
getLocationDamagein classEntity
-
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
-
isBattleArmor
public boolean isBattleArmor()Description copied from interface:BTObjectReturns true when this object is a BattleArmor unit or of type BA for Alpha Strike. Returns false for any type of unit group even if it is of the right type.- Returns:
- True when this is a BattleArmor unit
-
firstArmorIndex
public int firstArmorIndex()- Overrides:
firstArmorIndexin classEntity- Returns:
- The index of the first armored location (skipping vehicle body, et al.)
-
getGenericBattleValue
public int getGenericBattleValue()Description copied from class:EntityCalculates a "generic" Battle Value that is based on the average of all units of this type and tonnage. The purpose of this generic Battle Value is to allow a comparison of this unit's actual BV to that for units of its class. This can be used to balance forces without respect to unit or pilot quality.The generic BV values are calculated by a statistical elasticity model based on all data from the MegaMek database.
- Specified by:
getGenericBattleValuein classEntity- Returns:
- The generic Battle value for this unit based on its tonnage and type
-
isCarryableObject
public boolean isCarryableObject()Description copied from interface:BTObjectFor future reference. Returns true when this object is a battlefield object (such as a crate) that can be picked up and carried by some types of units.- Specified by:
isCarryableObjectin interfaceBTObject- Specified by:
isCarryableObjectin interfaceICarryable- Overrides:
isCarryableObjectin classEntity- Returns:
- True when this is a carryable battlefield object.
-
getCarriedObjectDamageAllocation
-
targetForArmHitToHitCarriedObject
public int targetForArmHitToHitCarriedObject() -
hasMiscInMountLocation
Returns true when the entity has a MiscType equipment of the given internalName, regardless of its state, in the given mount location (arm/body...). When available, use EquipmentTypeLookup internal names (or add one when it is not yet used for a MiscType). Note that any internal name, even of weapons, can be given but this method only searches misc equipment and will not find weapons.- Parameters:
internalName- The internal name of the misc, e.g. EquipmentTypeLookup.BA_MYOMER_BOOSTERlocation- The location, e.g. BattleArmor.MOUNT_LOC_LEFT_ARM- Returns:
- True when the entity has a MiscType equipment of the given internalName in the given location
- See Also:
-
canChangeSecondaryFacing
public boolean canChangeSecondaryFacing()Description copied from class:EntityCan this entity change secondary facing at all?- Specified by:
canChangeSecondaryFacingin classEntity
-
isSecondaryArcWeapon
public boolean isSecondaryArcWeapon(int wn) Description copied from class:EntityReturns true if this weapon fires into the secondary facing arc. If false, assume it fires into the primary.- Specified by:
isSecondaryArcWeaponin classEntity
-
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:
c- The position to testtestBoardId- The board to testcurrElevation- The elevation or altitude to test- Returns:
- True when the location is illegal to be in for this unit, regardless of elevation
- See Also:
-