Class Mek
- All Implemented Interfaces:
Serializable
,BTObject
,CombatRole
,Deployable
,ForceAssignable
,InGameObject
,ITechnology
,ITurnOrdered
,PhaseUpdated
,RoundUpdated
,Targetable
,Transporter
- Direct Known Subclasses:
MekWithArms
,QuadMek
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class megamek.common.Entity
Entity.InvalidSourceBuildReason
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
protected boolean
protected boolean
Contains a mapping of locations which are blocked when carrying cargo in the "key" locationprotected boolean
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final String[]
static final int
static final int
static final int
static final String[]
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
protected int
protected static int[]
static final String
static final int
static final int
static final int
static final String[]
static final int
static final String[]
static final int
static final int
static final int
protected int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
protected int
protected int
protected EntityMovementMode
static final String
static final int
static final int
static final int
static final int
static final int
static final String[]
Fields inherited from class megamek.common.Entity
_isEMId, ALTERNATE_MASC_FAILURE, ALTERNATE_MASC_FAILURE_ENHANCED, altitude, ammoList, armorTechLevel, armorTechRating, armorTonnage, armorType, armsFlipped, asewAffectedTurns, aTracker, BLOOD_STALKER_TARGET_CLEARED, bMASCWentUp, bombList, bSuperchargerWentUp, c3CompanyMasterIndex, c3Master, c3NetIdString, camouflage, canUnstickByJumping, carcass, chassis, clanChassisName, consecutiveRHSUses, convertingNow, coolFromExternal, crits, damageThisPhase, damageThisRound, delta_distance, designValid, destroyed, displacementAttack, DMG_CRIPPLED, DMG_HEAVY, DMG_LIGHT, DMG_MODERATE, DMG_NONE, dodging, DOES_NOT_TRACK_HEAT, done, doomed, elevation, engineHitsThisPhase, engineTechRating, equipmentList, ETYPE_AERO, ETYPE_AEROSPACEFIGHTER, ETYPE_ARMLESS_MEK, ETYPE_BATTLEARMOR, ETYPE_BIPED_MEK, 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, 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, military, miscList, mixedTech, model, moved, movedLastRound, movementMode, mpUsed, mpUsedLastRound, mulId, narcPods, nCrew, nMarines, nMASCLevel, nPassenger, nSuperchargerLevel, omni, owner, ownerId, pendingINarcPods, pendingNarcPods, previousMovementMode, prone, reckless, rolledForEngineExplosion, searchlightIsActive, 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, techLevel, tmTracker, totalWeaponList, traitorId, twistedPhase, underwaterRounds, unjammingRAC, UNLIMITED_JUMP_DOWN, USE_STRUCTURAL_RATING, usedMASC, usedSearchlight, usedSupercharger, useManualBV, vectors, walkMP, weaponBayList, weaponGroupList, weaponList, weight, wigeBonus, year
Fields inherited from interface megamek.common.ITechnology
DATE_ES, DATE_NONE, DATE_PS, ERA_CLAN, ERA_DA, ERA_NUM, ERA_SL, ERA_SW, F_CBR, F_CBS, F_CC, F_CCC, F_CCY, F_CF, F_CFM, F_CGB, F_CGS, F_CHH, F_CIH, F_CJF, F_CLAN, F_CMN, F_CNC, F_CP, F_CS, F_CSA, F_CSF, F_CSJ, F_CSR, F_CSV, F_CWF, F_CWM, F_CWV, F_CWX, F_DC, F_EI, F_FC, F_FR, F_FS, F_FW, F_IS, F_LC, F_MC, F_MERC, F_MH, F_NONE, F_OA, F_PER, F_RA, F_RD, F_RS, F_RW, F_TA, F_TC, F_TH, F_WB, IO_FACTION_CODES, MM_FACTION_CODES, RATING_A, RATING_B, RATING_C, RATING_D, RATING_E, RATING_F, RATING_FSTAR, RATING_X, ratingNames, TECH_BASE_ALL, TECH_BASE_CLAN, TECH_BASE_IS
Fields inherited from interface megamek.common.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_INARC_POD, TYPE_MINEFIELD_CLEAR, TYPE_MINEFIELD_DELIVER, TYPE_SEARCHLIGHT
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
For clan units that get automatic Clan CASE, adds clan CASE in every location that has potentially explosive equipment (this includes uncharged PPC Capacitors).boolean
Add the critical slots necessary for a standard cockpit.boolean
boolean
Add the critical slots necessary for a compact gyro.void
addCoolantFailureAmount
(int amount) This is implemented in subclasses, do nothing in generalboolean
boolean
Add the critical slots necessary for the mek's engine.void
addEngineSinks
(int totalSinks, String sinkName) base for adding engine sinks.void
addEngineSinks
(int totalSinks, EquipmentFlag heatSinkFlag) Adds heat sinks to the engine.void
addEngineSinks
(int totalSinks, EquipmentFlag heatSinkFlag, boolean clan) Adds heat sinks to the engine.void
addEngineSinks
(String sinkName, int toAllocate) add heat sinks into the engineAdd in any piloting skill modsMounted<?>
addEquipment
(EquipmentType etype, EquipmentType etype2, int loc, boolean omniPod, boolean armored) void
addEquipment
(Mounted<?> mounted, int loc, boolean rearMounted) Mounts the specified weapon in the specified location.void
addEquipment
(Mounted<?> mounted, int loc, boolean rearMounted, int critSlot) Mounts the specified weapon in the specified location.boolean
addGyro()
Add the critical slots necessary for a standard gyro.boolean
Add the critical slots necessary for a heavy-duty gyro.boolean
Add the critical slots necessary for an industrial cockpit.boolean
Add the critical slots necessary for an industrial primitive cockpit.boolean
Add the critical slots necessary for a small cockpit.boolean
Add the critical slots necessary for an industrial cockpit.boolean
boolean
Add the critical slots necessary for a small cockpit.boolean
boolean
boolean
Add the critical slots necessary for a standard gyro.boolean
protected void
Incorporate dates for components that are not in the equipment list, such as engines and structure.addTargCompWithoutSlots
(MiscType etype, int loc, boolean omniPod, boolean armored) Adds equipment without adding slots for it.boolean
addTorsoMountedCockpit
(boolean vrpp) Add the critical slots necessary for a torso-mounted cockpit.boolean
Add the critical slots necessary for an extra-light gyro.boolean
Check for vulnerability to anti-TSM munitions.void
Set the internal structure to the appropriate value for the Mek's weight classprotected int
Used to set this Mek's original walk mpboolean
boolean
Can this entity change secondary facing at all?boolean
boolean
canDFA()
boolean
boolean
canFall
(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.abstract boolean
void
checkUnstall
(Vector<Report> vPhaseReport) Check for uninstalling of this Entity's engine (only used for ICE-powered 'Meks).void
Remove all cockpit critical slots from the mek.void
Remove all engine critical slots from the mek.void
Remove all gyro critical slots from the mek.int
clipSecondaryFacing
(int dir) Return the nearest valid direction to torso twist inint
Count the number of destroyed or breached legs on the Mekint
countLegActuatorCrits
(int loc) Count non-hip leg actuator critsint
damageCowl
(int amount) Damages the remaining cowl armor, if any, by the given amount.int
Returns the number of destroyed heat sinks.void
destroyLocation
(int loc) Marks all equipment in a location on this entity as destroyed.void
destroyLocation
(int loc, boolean blownOff) Marks all equipment in a location on this entity as destroyed.doCheckEngineStallRoll
(Vector<Report> vPhaseReport) Possibly do a ICE-Engine stall PSR (only intended for Meks, both Industrial and Battle).boolean
boolean
boolean
boolean
boolean
boolean
doRISCEmergencyCoolantCheckFor
(Vector<Report> vDesc, HashMap<Integer, List<CriticalSlot>> vCriticals) return if a RISC emergency coolant failed its rollint
int
double
protected double
int
getArmor
(int loc, boolean rear) Returns the amount of armor in the location specified.double
int
getArmorForReal
(int loc, boolean rear) int
getBARRating
(int loc) Return the BAR-rating of this Entity's armorMethod that returns the mapping between locations which, if cargo is carried, block other locations from firing.Convenience function that returns the critical slot containing the cockpitstatic String
getCockpitDisplayString
(int inType) int
int
static TechAdvancement
getCockpitTechAdvancement
(int cockpitType) int
static int
getCockpitTypeForString
(String inType) static String
getCockpitTypeString
(int inCockpitType) static String
getCockpitTypeString
(int cockpitType, boolean industrial) return - the base construction option tech advancementint
How many times TacOps coolant failure has occurred, which is also the reduction in heat sinking capacityint
double
getCost
(CalculationReport calcReport, boolean ignoreAmmo) Calculates and returns the C-bill cost of the unit.int
getCrewForCockpitSlot
(int loc, CriticalSlot cs) Determines which crew slot is associated with a particular cockpit critical.int
getDependentLocation
(int loc) Gets the location that is destroyed recursivelyint
Returns extra heat generated by engine critsint
long
static TechAdvancement
int
Calculates a "generic" Battle Value that is based on the average of all units of this type and tonnage.int
int
static String
getGyroDisplayString
(int inType) int
double
static TechAdvancement
getGyroTechAdvancement
(int gyroType) int
Only Meks have Gyros but this helps keep the code a bit cleaner.static int
getGyroTypeForString
(String inType) static String
getGyroTypeShortString
(int inGyroType) static String
getGyroTypeString
(int inGyroType) int
Returns the about of heat that the entity can sink each turn.int
getHeatCapacity
(boolean radicalHeatSink) int
getHeatCapacity
(boolean includePartialWing, boolean includeRadicalHeatSink) int
Returns the about of heat that the entity can sink each turn, factoring for water.Returns the name of the heat sinks mounted on this 'Mek.int
static TechAdvancement
static int
getInnerLocation
(int location) Returns the location that transferred damage or crits will go to from a given location.int
getInternal
(int loc) Returns the amount of internal structure in the location specified, or ARMOR_NA, or ARMOR_DESTROYED.int
getJumpHeat
(int movedMP) get the heat generated by this Entity when jumping for a certain amount of MPint
getJumpMP
(MPCalculationSetting mpCalculationSetting) int
Returns the type of jump jet system the Mek has.protected abstract double
int
how many levels did this Mek fall this turn?getLocationDamage
(int loc) int
The maximum elevation change the entity can crossint
getMaxElevationDown
(int currElevation) Returns the maximum number of downward elevation changes a unit can make.int
getMechanicalJumpBoosterMP
(MPCalculationSetting mpCalculationSetting) Returns the name of the type of movement used.Returns the name of the type of movement used.getMtf()
Get an '.mtf' file representation of the Mek.int
int
getOArmor
(int loc, boolean rear) Returns the original amount of armor in the location specified.int
int
int
getPartialWingJumpAtmoBonus
(MPCalculationSetting mpCalculationSetting) int
getPartialWingJumpBonus
(Mounted<?> mount) int
getPartialWingJumpBonus
(Mounted<?> mount, MPCalculationSetting mpCalculationSetting) Gives the bonus to Jump MP conferred by a Mek partial wing.int
double
Returns a multiplier that combines multiplicative construction cost modifiers for this Entity.getRawSystemName
(int index) static TechAdvancement
int
Depends on engine typeint
getRunMP
(MPCalculationSetting mpCalculationSetting) Returns this entity's running/flank mp as a string.int
get the gravity limit for ground movementboolean
int
Depends on engine typeint
getSprintMP
(MPCalculationSetting mpCalculationSetting) Returns this entity's sprinting MP, modified according to the given setting.int
Used to determine the draw priority of different Entity subclasses.int
get the heat generated by this Entity when standing stillgetStealthModifier
(int range, Entity ae) Determine the stealth modifier for firing at this unit from the given range.getSystemName
(int index) static TechAdvancement
getTechAdvancement
(long etype, boolean primitive, boolean industrial, int weightClass) int
Gets the location that excess damage transfers toint
int
get the heat generated by this Entity when walking/cruisingint
getWeaponArc
(int wn) Returns the Compute.ARC that the weapon fires into.protected int
boolean
boolean
boolean
hasActiveTSM
(boolean includeIndustrial) Checks whether any type of TSM is active.boolean
boolean
boolean
boolean
boolean
boolean
does this Mek have a chameleon light polarization shield?boolean
hasClaw
(int location) Check to see if a Mek has a claw in one of its armsboolean
Units with a cockpit command console provide an initiative bonus to their side, provided that the commander is not currently functioning as pilot, the unit has advanced fire control, and the unit is heavy or assault weight class.boolean
boolean
does this Mek have composite internal structure?boolean
hasCowl()
boolean
boolean
boolean
boolean
boolean
Does this Mek have an extended retractable blade in working condition?boolean
boolean
boolean
hasHarJelIIIIn
(int loc) Does this Mek have an undamaged HarJel system in this location?boolean
hasHarJelIIIn
(int loc) Does this Mek have an undamaged HarJel system in this location?boolean
Returns true if the entity has a hip crit.boolean
does this Mek have industrial TSM=boolean
Check whether a Mek has intact heat-dissipating armor in every location thus protecting it from external heat sources like fires or magmaboolean
does this Mek have working jump boosters?boolean
abstract boolean
boolean
does this Mek have a null-sig-system?boolean
hasRearArmor
(int loc) Does this location have rear armor?boolean
does this Mek have reinforced internal structure?boolean
hasRetractedBlade
(int loc) Does the entity have a retracted blade in the given location? Only true for biped Meksboolean
boolean
Does this Mek have tracks? Used for tracks as industrial equipment; QuadVees return false.boolean
hasTSM
(boolean includePrototype) Check for whether the Mek has triple strength myomerboolean
does this Mek have a void-sig-system?int
Returns the number of heat sinks, functional or not.int
heatSinks
(boolean countPrototypes) Returns the number of heat sinks, functional or not.int
height()
Return the height of this Mek above the terrain.int
Used to for cost calculations.void
initializeRearArmor
(int val, int loc) Initializes the rear armor on the Mek.boolean
isArm
(int loc) Is the passed in location an arm?boolean
isArmorDamagedThisTurn
(int loc) did the armor in this location take damage which did not destroy it at least once this turn? this is used to decide whether to trigger Harjel II/IIIboolean
boolean
boolean
Does the Mek have a functioning Chameleon Light Polarization Field? For a CLPS to be functioning it must be on and the unit can't have mounted mechanized BattleArmor.boolean
Does the Mek Chameleon Light Polarization Field turned on? This is used for heat generation purposes.boolean
should this Mek check for a critical hit at the end of turn due to being an industrial Mek and having been the target of a successful physical attack or for fallingboolean
boolean
boolean
boolean
boolean
boolean
Returns TRUE if the entity meets the requirements for crippling damage as detailed in TW pg 258.boolean
isCrippled
(boolean checkCrew) Returns TRUE if the entity meets the requirements for crippling damage as detailed in TW pg 258.boolean
Returns TRUE if the entity has been heavily damaged.boolean
Returns TRUE if the entity has been lightly damaged.boolean
Returns TRUE if the entity has been moderately damaged.boolean
boolean
Pretty much anybody's eligible for movement.boolean
Tanks and certain other units can get a +1 bonus to MP if their move is entirely on pavement.boolean
boolean
boolean
Only Meks have gyros, but this helps keep the code a bit cleaner.boolean
do we have a half-hit hardened armor point in the location struck by this?boolean
Is this an Industrial Mek?boolean
Returns true when this object is an Industrial Mek or of type IM for Alpha Strike.boolean
did this Mek just moved into water that would kill it because we lack environmental sealing?boolean
Returns true if the specified hex contains some sort of deadly terrain.boolean
isLocationProhibited
(Coords c, int currElevation) boolean
isMek()
Returns true when this object is a Mek (Industrial Mek or BattleMek) or of type BM/IM for Alpha Strike.boolean
Checks if the unit is hardened against nuclear strikes.boolean
Does the Mek have a functioning null signature system, or a void sig that is acting as a a null sig because of externally carried BA?boolean
Determine if this unit has an active null-signature system.boolean
isPermanentlyImmobilized
(boolean checkCrew) This method returns true if a unit is permanently immobilized either because its crew is dead/gone or because of damageboolean
boolean
Determine if the unit can be repaired, or only harvested for spares.boolean
isSecondaryArcWeapon
(int weaponId) Returns true if this weapon fires into the secondary facing arc.boolean
boolean
Is this Entity's ICE Engine stalled?boolean
Determine if this unit has an active and working stealth system.boolean
Determine if this unit has an active and working stealth system.boolean
boolean
isSystemIntact
(int system) This function returns true iff the system is in perfect condition.boolean
isValidSecondaryFacing
(int dir) Can this Mek torso twist in the given direction?boolean
Does the Mek have a functioning void signature system?boolean
Does the Mek have a functioning void signature system?joinLocationAbbr
(List<Integer> locations, int limit) Joins the abbreviations for the locations into a String with / as the separator.static int
leastRestrictiveLoc
(int location1, int location2) find the least restrictive location of the two locations passed inprotected int
legCount()
boolean
legHasHipCrit
(int loc) Return true is the location is a leg and has a hip critvoid
Load the given unit.boolean
locationIsLeg
(int loc) Returns true if the location in question is a legboolean
locationIsTorso
(int loc) Returns true if the location in question is a torso locationint
Returns the number of locations in the entitystatic int
mostRestrictiveLoc
(int location1, int location2) Returns the location with the most restrictive firing arc for a weapon.void
newRound
(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.boolean
removePartialCoverHits
(int location, int cover, int side) void
Reset count of TacOps coolant failures to zero (no loss)void
static int
restrictScore
(int location) Helper function designed to give relative restrictiveness of locations.rollHitLocation
(int table, int side) Rolls up a hit locationrollHitLocation
(int table, int side, int aimedLocation, AimingMode aimingMode, int cover) Rolls the to-hit numbervoid
setActiveSinksNextRound
(int sinks) void
setArmor
(int val, int loc, boolean rear) Sets the amount of armor in the location specified.void
setArmorDamagedThisTurn
(int loc, boolean tookdamage) did the armor in this location take damage which did not destroy it at least once this turn? this is used to decide whether to trigger Harjel II/IIIvoid
setAutoEject
(boolean autoEject) void
void
setCheckForCrit
(boolean check) void
setCockpitStatus
(int state) void
setCockpitType
(int type) void
setCondEjectAmmo
(boolean condEjectAmmo) void
setCondEjectCTDest
(boolean condEjectCTDest) void
setCondEjectEngine
(boolean condEjectEngine) void
setCondEjectHeadshot
(boolean condEjectHeadshot) void
setCoolingFlawActive
(boolean flawActive) void
set this Mek'sEngine
void
setFullHeadEject
(boolean fullHeadEject) void
setGrappled
(int id, boolean attacker) void
setGrappledThisRound
(boolean grappled) void
setGrappleSide
(int side) void
setGyroType
(int type) void
setHardenedArmorDamaged
(HitData hit, boolean damaged) void
setHasDamagedCoolantSystem
(boolean hit) abstract void
setInternal
(int head, int ct, int t, int arm, int leg) Sets the internal structure for the Mek.void
setJustMovedIntoIndustrialKillingWater
(boolean moved) set if this Mek just moved into water that would kill it because of the lack of environmental sealingvoid
setLevelsFallen
(int levels) void
setOmni
(boolean omni) OmniMeks have handles for Battle Armor squads to latch onto.void
void
setRiscHeatSinkOverrideKit
(boolean heatSinkKit) void
setShouldDieAtEndOfTurnBecauseOfWater
(boolean moved) set if this Mek should die at the end of turn because it's an IndustrialMek without environmental sealing that moved into water last round and stayed there?void
setStalled
(boolean stalled) Set if this Mek's ICE Engine is stalled or not should only be used for industrial Meks carrying an ICE engineint
shieldAbsorptionDamage
(int damage, int location, boolean rear) boolean
should this Mek die at the end of turn because it's an IndustrialMek without environmental sealing that moved into water last round and stayed there?protected HitData
tac
(int table, int side, int location, int cover, boolean rear) Called when a thru-armor-crit is rolled.int
Returns the number of (working) jump jets mounted in the torsos.boolean
Used to identify an target that tracks heat buildup (Meks, ASFs, and small craft).Generates a vector containing reports on all useful information about this entity.Methods inherited from class megamek.common.Entity
addAttackedByThisTurn, addBeenDetectedBy, addBeenSeenBy, addBomb, addBomb, addConditionBonuses, addCritical, addCritical, addCritical, addEquipment, addEquipment, addEquipment, addEquipment, addEquipment, addEquipment, addEquipment, addEquipment, addEquipment, addFailedEquipment, addFiringSolution, addGroundAttackedByThisTurn, addIMPHits, addKill, addOffBoardObserver, addPassedThrough, addPilotingModifierForTerrain, addPilotingModifierForTerrain, addPilotingModifierForTerrain, addPilotingModifierForTerrain, addSensorContact, addTargetedBySwarm, addTechComponent, addTowedUnit, addTransporter, addTransporter, addTsempHitThisTurn, addWeaponGroup, applyDamage, applyGravityEffectsOnMP, armorStringFor, assignAMS, assignTMAMS, assignWeaponQuirk, attachINarcPod, attachNarcPod, braceLocation, C3MasterIs, calcElevation, calcElevation, calcElevation, calculateBattleValue, calculateBattleValue, calculateBattleValue, calculateBattleValue, calculateFreeC3MNodes, calculateFreeC3Nodes, canActivateBloodStalker, canAssist, canBrace, canFall, canFireWeapon, canFlee, canFlipArms, canGoDown, canGoDown, canGoHullDown, canGoUp, canLayMine, canLoad, canLoad, canonUnitWithInvalidBuild, canPickupGroundObject, canRam, canSpot, canTow, canTransferCriticals, canUnjamRAC, canUnstickByJumping, checkBogDown, checkDislodgeSwarmers, checkForMASCFailure, checkForSuperchargerFailure, checkGetUp, 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, clearNarcAndiNarcPods, clearPartialRepairs, clearSeenBy, clearSensorContacts, climbMode, countEquipment, countForStrengthSum, countMisc, countPartialRepairs, countQuirks, countQuirks, countWeaponQuirks, countWorkingMisc, countWorkingMisc, countWorkingMisc, critStateCount, damageBayDoor, damagedJumpJets, damageDockCollar, damageDoorRecovery, damagedSCMCritCount, damageSystem, damageSystem, deactivateRadicalHS, deployOffBoard, destroy, destroyOneSearchlight, destroyRetractableBlade, disconnectUnit, doBattleValueCalculation, dropGroundObject, dropGroundObject, dropGroundObjects, elevationOccupied, elevationOccupied, endOfTurnCargoInteraction, entityIsQuad, equals, extendBlade, factionTechLevel, findTargetedDisplacement, firstArmorIndex, fixElevation, formatHeat, gameOptions, generalName, generateDisplayName, generateShortName, getActiveAMS, getActiveSensor, getActiveSubEntities, getActiveUMUCount, getActiveVibrobladeHeat, getActiveVibrobladeHeat, getAllGyroCodeName, getAllowedPhysicalAttacks, getAllTowedUnits, getAllUMUCount, getAlreadyTwisted, getAlternateCost, getAltitude, getAmmo, getAmmo, getAmmo, getAnyTypeMaxJumpMP, getArmedMPBoosters, getArmor, getArmor, getArmoredComponentTechAdvancement, getArmorForReal, getArmorRemainingPercent, getArmorString, getArmorString, getArmorTechLevel, getArmorTechRating, getArmorType, getArmorWeight, getArmorWeight, getArmsFlipped, getASEWAffected, getAttackedByThisTurn, getBadCriticals, getBAPRange, getBase64Icon, getBaseAvailability, getBaseChassisFireConWeight, getBaseChassisValue, getBaseEngineValue, getBasePilotingRoll, getBasePilotingRoll, getBay, getBayByAmmo, getBayById, getBayLoadedUnitIds, getBayPersonnel, getBloodStalkerTarget, getBlueShieldRounds, getBodyLocation, getBombLoadout, getBombLoadout, getBombs, getBombs, getBraceMPCost, getBvCalculator, getC3iNextUUIDAsString, getC3Master, getC3MasterId, getC3MasterIsUUIDAsString, getC3NetId, getC3Top, getC3UUIDAsString, getCamouflage, getCamouflageOrElse, getCamouflageOrElse, getCamouflageOrElseOwners, getCargoMpReduction, getCarriedObject, getCarriedObjects, getChassis, getClanChassisName, getClubs, getCollarById, getCommonDate, getConnectedUnits, getConsecutiveRHSUses, getConversionMode, getCost, getCrew, getCritical, getCriticalSlots, getCustomWeaponOrder, getCustomWeaponOrder, getDamagedCriticals, getDamageLevel, getDamageLevel, getDamageReductionFromModularArmor, getDefaultPickupLocations, getDeployRound, getDisplacementAttack, getDisplayName, getDistinctCarriedObjects, getDockingCollars, getDocks, getDocks, getDroppableUnits, getDuplicateMarker, getEarliestTechDate, getECCMInfo, getECCMStrength, getECMInfo, getECMRange, getECMStrength, getElevation, getEmptyCriticals, 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, getForceId, getForceString, getForwardArc, getFreeC3iUUID, getFreeNC3UUID, getFullChassis, getGame, getGaveKillCredit, getGhostTargetOverride, getGhostTargetRoll, getGhostTargetRollMoS, getGoodCriticals, getGroundAttackedByThisTurn, getHeading, getHeat, getHeatFiringModifier, getHeatInArc, getHeatMPReduction, getHeight, getHiddenActivationPhase, getHitchById, getHitchCarrying, getHitchLocations, getHitCriticals, getHittableCriticals, getIcon, getId, getIMPMoveMod, getINarcPodsAttached, getIndividualWeaponList, getInitialBV, getInternal, getInternalBombLoadout, getInternalForReal, getInternalRemainingPercent, getInternalString, getIntroductionDate, getIntroductionDate, getInvalidSourceBuildReasons, getIsJumpingNow, getJumpMP, getJumpMPWithTerrain, getKillerId, getKillNumber, getKills, getLabArmorTonnage, getLabTotalArmorPoints, getLastTarget, getLastTargetDisplayName, getLaunchableDropships, getLaunchableFighters, getLaunchableSmallCraft, getLoadedKeepers, getLoadedTrailers, getLoadedUnits, getLocationAbbr, getLocationAbbr, getLocationAbbrs, getLocationFromAbbr, getLocationName, getLocationName, getLocationNames, getLocationStatus, getLongRangeModifier, getLOSRangeModifier, getManualBV, getMASC, getMASCTarget, getMASCTurns, getMaxElevationDown, getMaxWeaponRange, getMaxWeaponRange, getMechanicalJumpBoosterMP, getMediumRangeModifier, getMisc, getMisc, getMiscEquipment, getMixedTechAdvancement, getModel, getMotiveSideMod, getMovedBackwards, getMovementBeforeSkidPSRModifier, getMovementMode, getMovementModeAsString, getMPBoosters, getMPBoosters, getMpUsedLastRound, getMulId, getNC3NextUUIDAsString, getNCrew, getNewRoundNovaNetworkString, getNextSensor, getNMarines, getNoOfSlots, getNPassenger, getNumberOfCriticals, getNumberOfCriticals, getNumberOfCriticals, getNumberOfCriticals, getNumberOfShields, getOArmor, getOArmor, getOccupiedCoords, getOffBoardDirection, getOffBoardDistance, getOInternal, getOInternal, getOmniAdvancement, getOmniAdvancement, getOriginalBuildYear, getOriginalJumpMP, getOriginalJumpMP, getOriginalNovaC3NetId, getOriginalRunMP, getOriginalWalkMP, getOwner, getOwnerId, getPartialRepairs, getPassedThrough, getPassedThroughFacing, getPatchworkArmorAdvancement, getPickedUpMekWarriors, getPlayerPickedPassThrough, getPodMountedTroopCarryingSpace, getPosition, getPowerAmplifierWeight, getPriorPosition, getProductionDate, getProductionDate, getPrototypeDate, getPrototypeDate, getQuirkIniBonus, getQuirkList, getQuirks, getRearArc, getRecoveryTurn, getReintroductionDate, getReintroductionDate, getRemovalCondition, getRetreatedDirection, getRole, getRunMP, getRunMPwithoutMASC, getSecondaryFacing, getSecondaryPositions, getSelfDestructedThisTurn, getSelfDestructing, getSelfDestructInitiated, getSensorCheck, getSensorContacts, getSensors, getShortName, getShortNameRaw, getShortRangeModifier, getSource, 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, getTechBase, getTechBaseDescription, getTechBaseDescriptions, getTechLevel, getTechLevelYear, getTechRating, getTilesetModeString, getTMTracker, getTotalAmmoOfType, getTotalArmor, getTotalInternal, getTotalMunitionsOfType, getTotalOArmor, getTotalOInternal, getTotalWeaponList, getTowedBy, getTowing, getTractor, getTraitorId, getTransferLocation, getTransportBays, getTransportId, getTransports, getTroopCarryingSpace, getTrooperAtLocation, getTsempEffect, getTsempHitsThisTurn, getUnitNumber, getUnitsUnloadableFromBays, getUnitsUnloadableFromNonBays, getUnloadableUnits, getUnused, getUnused, getUnusedString, getUnusedString, getUseManualBV, getValidBraceLocations, getValidHalfWeightPickupLocations, getVector, getVectors, getVelocity, getVibroClaws, getWalkMP, getWalkMP, getWeapon, getWeaponBayList, getWeaponGroupList, getWeaponList, getWeapons, getWeaponSortOrder, getWeight, getWeightClass, getWeightClassName, getWhoCanDetect, getWhoCanSee, getYear, hasAbility, hasAbility, hasActivatedRadicalHS, hasActiveBlueShield, hasActiveECCM, hasActiveECM, hasActiveECM, hasActiveNovaCEWS, hasActiveShield, hasActiveShield, hasAimModeTargComp, hasAnyC3System, hasAnyTypeNarcPodsAttached, hasArcFired, hasArmoredChassis, hasBAP, hasBAP, hasBARArmor, hasBattleArmorHandles, hasBoostedC3, hasC3, hasC3i, hasC3M, hasC3MM, hasC3S, hasCase, hasCASEII, hasCASEII, hasDamagedRHS, hasDetectedEntity, hasDisplacementAttack, hasDroneOs, hasECM, hasEmbeddedIcon, hasEngine, hasEnvironmentalSealing, hasETypeFlag, hasExternalSearchlight, hasFallen, hasFiredTsemp, hasFiringSolutionFor, hasFleeZone, hasFlotationHull, hasFunctionalArmAES, hasGhostTargets, hasHardenedArmor, hasHarJelIn, hashCode, hasINarcPodsAttached, hasInfernoAmmo, hasLegActuatorCrit, hasLinkedMGA, hasMisc, hasMisc, hasMisc, hasModularArmor, hasModularArmor, hasMulId, hasNarcPodsAttached, hasNavalC3, hasNhC3, hasNoDefenseShield, hasNovaCEWS, hasOccupiedHex, hasPassiveShield, hasPassiveShield, hasPatchworkArmor, hasQuirk, hasSCM, hasSearchlight, hasSeenEntity, hasSensorContactFor, hasShield, hasStealth, hasSystem, hasTAG, hasTargComp, hasUMU, hasUndamagedCriticalSlots, hasUnloadedUnitsFromBays, hasViableWeapons, hasVibroblades, hasWorkingMisc, hasWorkingMisc, hasWorkingMisc, hasWorkingMisc, hasWorkingSCM, hasWorkingSystem, hitAllCriticals, incrementMASCAndSuperchargerLevels, initializeArmor, initializeInternal, initMilitary, initTechAdvancement, isActive, isActive, isAeroSensorDestroyed, isAirborne, isAirborneAeroOnGroundMap, isAirborneVTOLorWIGE, isAssaultDropInProgress, isAttackingThisTurn, isBATaserShutdown, isBoardProhibited, isBracing, isC3CompanyCommander, isC3IndependentMaster, isCanon, isCapitalFighter, isCapitalFighter, isCapitalScale, isCaptured, isCarcass, isChainWhipGrappled, isCharging, isClan, isClanArmor, isClearingMinefield, isCommander, isConvertingNow, isDeployed, isDesignValid, isDestroyed, isDetectedByEnemy, isDone, isDoomed, isDropping, isElevationValid, isEligibleFor, isEligibleForArtyAutoHitHexes, isEligibleForFiring, isEligibleForOffboard, isEligibleForPhysical, isEligibleForTargetingPhase, isEnemyOf, isEvading, isEverSeenByEnemy, isFindingClub, isFiredTsempThisTurn, isHidden, isHullDown, isIlluminated, isImmobile, isImmobile, isImmobileForJump, isINarcedBy, isINarcedWith, isIntroLevel, isJumpingWithMechanicalBoosters, isLargeCraft, isLayingMines, isLoadableThisTurn, isLocationBad, isLocationBlownOff, isLocationBlownOffThisPhase, isLocationDoomed, isLocationProhibited, isLocationTrulyDestroyed, isMakingDfa, isMakingVTOLGroundAttack, isManualShutdown, isMASCUsed, isMilitary, isMixedTech, isNarcedBy, isNaval, isNightwalker, isNOE, isOffBoard, isOffBoardObserved, isOmni, isOnAtmosphericGroundMap, isPartOfFighterSquadron, isPodMountedTransport, isPowerReverse, isProne, isPushing, isRamming, isReckless, isSalvage, isSelectableThisTurn, isSensorReturn, isShutDownThisPhase, isSpaceborne, isSpotting, isStartupThisPhase, isStuck, isSufferingEMI, isSuperchargerUsed, isSurfaceNaval, isTargetable, isTargetOfDisplacementAttack, isTractor, isTrailer, isTrapped, isUnderwater, isUnjammingRAC, isUnloadedThisTurn, isUnofficial, isUsingManAce, isUsingSearchlight, isVisibleToEnemy, isWeaponBlockedAt, isWeaponBlockedByTowing, isWeaponValidForPhase, isWeapOrderChanged, itemOppositeTech, load, load, load, loadAllWeapons, loadDefaultCustomWeaponOrder, loadedUnitsHaveActiveECM, loadQuirks, loadWeapon, loadWeapon, loadWeaponWithSameAmmo, loadWeaponWithSameAmmo, locationHasCase, madePointblankShot, maxGroundObjectTonnage, modifyPhysicalDamageForMeleeSpecialist, needsRollToStand, newPhase, newRoundNovaNetSwitch, onSameC3NetworkAs, onSameC3NetworkAs, passedOver, passedThrough, passedThroughPrevious, passedWithin, performManualShutdown, performManualStartup, pickUp, pickupGroundObject, postProcessFacingChange, recalculateTechAdvancement, recover, refreshLocations, relHeight, reloadEmptyWeapons, removeAllINarcPods, removeAllTransporters, removeCriticals, removeFiringSolution, removeFleeZone, removeINarcPod, removeMisc, removeSensorContact, removeTowedUnit, removeTransporter, resetBayDoors, resetBays, resetBombAttacks, resetFiringArcs, resetTransporter, restore, rollMovementInBuilding, scmCritStateCount, setAlreadyTwisted, setAltitude, setArcFired, setArmor, setArmor, setArmorTechLevel, setArmorTechLevel, setArmorTechRating, setArmorTonnage, setArmorType, setArmorType, setArmorType, setArmorType, setArmsFlipped, setArmsFlipped, setASEWAffected, setAssaultDropInProgress, setBARRating, setBARRating, setBaseChassisFireConWeight, setBATaserShutdown, setBloodStalkerTarget, setBraceLocation, setC3iNextUUIDAsString, setC3Master, setC3Master, setC3MasterIsUUIDAsString, setC3NetId, setC3NetIdSelf, setC3UUID, setC3UUIDAsString, setCamouflage, setCanon, setCanUnstickByJumping, setCaptured, setCarcass, setCarefulStand, setCarriedObjects, setChassis, setClanChassisName, setClearingMinefield, setClimbMode, setCommander, setConsecutiveRHSUses, setConversionMode, setConvertingNow, setCrew, setCritical, setCustomWeaponOrder, setCustomWeaponOrder, setDeployed, setDeployRound, setDesignValid, setDestroyed, setDetectedByEnemy, setDisplacementAttack, setDisplayName, setDone, setDoomed, setDuplicateMarker, setElevation, setEMI, setEngineTechRating, setEvading, setEverSeenByEnemy, setExternalId, setExternalIdAsString, setExternalSearchlight, setFacing, setFallen, setFindingClub, setFiredTsempThisTurn, setFleeZone, setForceId, setForceString, setGame, setGameOptions, setHasDamagedRHS, setHasFiredTsemp, setHidden, setHiddenActivationPhase, setHullDown, setIcon, setId, setIGame, setIlluminated, setInitialBV, setInternal, setInternal, setInvalidSourceBuildReasons, setIsJumpingNow, setJumpingWithMechanicalBoosters, setLandedAssaultDrop, setLastTarget, setLastTargetDisplayName, setLayingMines, setLoadedKeepers, setLoadedThisTurn, setLocationBlownOff, setLocationBlownOffThisPhase, setLocationStatus, setLocationStatus, setMadePointblankShot, setManualBV, setManualShutdown, setMASCUsed, setMixedTech, setModel, setMovedBackwards, setMovementMode, setMpUsedLastRound, setMulId, setNC3NextUUIDAsString, setNCrew, setNeverDeployed, setNewRoundNovaNetworkString, setNextSensor, setNMarines, setNPassenger, setOffBoard, setOriginalBuildYear, setOriginalJumpMP, setOriginalWalkMP, setOwner, setOwnerId, setPassedThrough, setPassedThroughFacing, setPlayerPickedPassThrough, setPosition, setPosition, setPowerReverse, setProne, setQuirks, setRamming, setRapidFire, setReckless, setRecoveryTurn, setRemovalCondition, setRetreatedDirection, setSalvage, setSearchlightState, setSecondaryFacing, setSecondaryFacing, setSelfDestructedThisTurn, setSelfDestructing, setSelfDestructInitiated, setShutDown, setShutDownThisPhase, setSource, setSpotTargetId, setSpotting, setStartingAnyNWx, setStartingAnyNWy, setStartingAnySEx, setStartingAnySEy, setStartingOffset, setStartingPos, setStartingWidth, setStartupThisPhase, setStruck, setStructuralTechRating, setStructureTechLevel, setStructureType, setStructureType, setStuck, setSuperchargerUsed, setSwarmAttackerId, setSwarmTargetId, setTaggedBy, setTargetBay, setTaserFeedback, setTaserInterference, setTaserShutdownRounds, setTechLevel, setTowedBy, setTowing, setTractor, setTraitorId, setTransportId, setTsempEffect, setTurnInterrupted, setUnitNumber, setUnitRole, setUnjammingRAC, setUnloaded, setUsedSearchlight, setUseManualBV, setVectors, setVisibleToEnemy, setWeaponHit, setWeaponSortOrder, setWeapOrderChanged, setWeight, setWhoCanDetect, setWhoCanSee, setWigeLiftoffHover, setYear, shouldDeploy, shouldOffBoardDeploy, shouldUseEdge, sideTable, sideTable, sideTable, sideTable, sideTableRam, sideTableRam, slotNumber, specificName, statusToString, statusToString, statusToString, taserShutdown, toggleConversionMode, toString, towUnit, turnWasInterrupted, unload, updateBays, updateDuplicateMarkerAfterDelete, usedSearchlight, usedTag, usesTurnMode, usesWeaponBays, wasLoadedThisTurn, wasNeverDeployed, wasStruck, weaponFired, weaponFiredFrom, whichBay, wigeLiftoffHover
Methods inherited from class megamek.common.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, rollInitiative, setInitCompensationBonus, setInitiative
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface megamek.common.BTObject
hasAerodyneSpheroidDistinction, isAero, isAerodyne, isAerospace, isAerospaceFighter, isAerospaceSV, isBattleArmor, isBattleMek, isCarryableObject, isCombatVehicle, isConventionalFighter, isConventionalInfantry, isDropShip, isFighter, isFixedWingSupport, isGround, isHandheldWeapon, isInfantry, isJumpShip, isLargeAerospace, isObjectiveMarker, isProtoMek, isQuadMek, isSingleUnit, isSmallCraft, isSpaceStation, isSpheroid, isSupportVehicle, isTripodMek, isUnitGroup, isVehicle, isWarShip
Methods inherited from interface megamek.common.CombatRole
hasRole
Methods inherited from interface megamek.common.ForceAssignable
partOfForce
Methods inherited from interface megamek.common.InGameObject
hasOwner
Methods inherited from interface megamek.common.ITechnology
calcEraAvailability, calcEraAvailability, calcYearAvailability, calcYearAvailability, calcYearAvailability, findMinimumRulesLevel, findMinimumRulesLevel, getAdvancedRange, getAdvancedRange, 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, isLegal
Methods inherited from interface megamek.common.Targetable
isBomber, isHexBeingBombed
Methods inherited from interface megamek.common.Transporter
canTow, getNumberLoadedThisTurn, getNumberUnloadedThisTurn, getType, hardpointCost
-
Field Details
-
SYSTEM_LIFE_SUPPORT
public static final int SYSTEM_LIFE_SUPPORT- See Also:
-
SYSTEM_SENSORS
public static final int SYSTEM_SENSORS- See Also:
-
SYSTEM_COCKPIT
public static final int SYSTEM_COCKPIT- See Also:
-
SYSTEM_ENGINE
public static final int SYSTEM_ENGINE- See Also:
-
SYSTEM_GYRO
public static final int SYSTEM_GYRO- See Also:
-
ACTUATOR_SHOULDER
public static final int ACTUATOR_SHOULDER- See Also:
-
ACTUATOR_UPPER_ARM
public static final int ACTUATOR_UPPER_ARM- See Also:
-
ACTUATOR_LOWER_ARM
public static final int ACTUATOR_LOWER_ARM- See Also:
-
ACTUATOR_HAND
public static final int ACTUATOR_HAND- See Also:
-
ACTUATOR_HIP
public static final int ACTUATOR_HIP- See Also:
-
ACTUATOR_UPPER_LEG
public static final int ACTUATOR_UPPER_LEG- See Also:
-
ACTUATOR_LOWER_LEG
public static final int ACTUATOR_LOWER_LEG- See Also:
-
ACTUATOR_FOOT
public static final int ACTUATOR_FOOT- See Also:
-
systemNames
-
LOC_HEAD
public static final int LOC_HEAD- See Also:
-
LOC_CT
public static final int LOC_CT- See Also:
-
LOC_RT
public static final int LOC_RT- See Also:
-
LOC_LT
public static final int LOC_LT- See Also:
-
LOC_RARM
public static final int LOC_RARM- See Also:
-
LOC_LARM
public static final int LOC_LARM- See Also:
-
LOC_RLEG
public static final int LOC_RLEG- See Also:
-
LOC_LLEG
public static final int LOC_LLEG- See Also:
-
LOC_CLEG
public static final int LOC_CLEG- See Also:
-
COCKPIT_OFF
public static final int COCKPIT_OFF- See Also:
-
COCKPIT_ON
public static final int COCKPIT_ON- See Also:
-
COCKPIT_AIMED_SHOT
public static final int COCKPIT_AIMED_SHOT- See Also:
-
GYRO_UNKNOWN
public static final int GYRO_UNKNOWN- See Also:
-
GYRO_STANDARD
public static final int GYRO_STANDARD- See Also:
-
GYRO_XL
public static final int GYRO_XL- See Also:
-
GYRO_COMPACT
public static final int GYRO_COMPACT- See Also:
-
GYRO_HEAVY_DUTY
public static final int GYRO_HEAVY_DUTY- See Also:
-
GYRO_NONE
public static final int GYRO_NONE- See Also:
-
GYRO_SUPERHEAVY
public static final int GYRO_SUPERHEAVY- See Also:
-
GYRO_STRING
-
GYRO_SHORT_STRING
-
COCKPIT_UNKNOWN
public static final int COCKPIT_UNKNOWN- See Also:
-
COCKPIT_STANDARD
public static final int COCKPIT_STANDARD- See Also:
-
COCKPIT_SMALL
public static final int COCKPIT_SMALL- See Also:
-
COCKPIT_COMMAND_CONSOLE
public static final int COCKPIT_COMMAND_CONSOLE- See Also:
-
COCKPIT_TORSO_MOUNTED
public static final int COCKPIT_TORSO_MOUNTED- See Also:
-
COCKPIT_DUAL
public static final int COCKPIT_DUAL- See Also:
-
COCKPIT_INDUSTRIAL
public static final int COCKPIT_INDUSTRIAL- See Also:
-
COCKPIT_PRIMITIVE
public static final int COCKPIT_PRIMITIVE- See Also:
-
COCKPIT_PRIMITIVE_INDUSTRIAL
public static final int COCKPIT_PRIMITIVE_INDUSTRIAL- See Also:
-
COCKPIT_SUPERHEAVY
public static final int COCKPIT_SUPERHEAVY- See Also:
-
COCKPIT_SUPERHEAVY_TRIPOD
public static final int COCKPIT_SUPERHEAVY_TRIPOD- See Also:
-
COCKPIT_TRIPOD
public static final int COCKPIT_TRIPOD- See Also:
-
COCKPIT_INTERFACE
public static final int COCKPIT_INTERFACE- See Also:
-
COCKPIT_VRRP
public static final int COCKPIT_VRRP- See Also:
-
COCKPIT_QUADVEE
public static final int COCKPIT_QUADVEE- See Also:
-
COCKPIT_SUPERHEAVY_INDUSTRIAL
public static final int COCKPIT_SUPERHEAVY_INDUSTRIAL- See Also:
-
COCKPIT_SUPERHEAVY_COMMAND_CONSOLE
public static final int COCKPIT_SUPERHEAVY_COMMAND_CONSOLE- See Also:
-
COCKPIT_SMALL_COMMAND_CONSOLE
public static final int COCKPIT_SMALL_COMMAND_CONSOLE- See Also:
-
COCKPIT_TRIPOD_INDUSTRIAL
public static final int COCKPIT_TRIPOD_INDUSTRIAL- See Also:
-
COCKPIT_SUPERHEAVY_TRIPOD_INDUSTRIAL
public static final int COCKPIT_SUPERHEAVY_TRIPOD_INDUSTRIAL- See Also:
-
COCKPIT_STRING
-
COCKPIT_SHORT_STRING
-
FULL_HEAD_EJECT_STRING
- See Also:
-
RISC_HEAT_SINK_OVERRIDE_KIT
- See Also:
-
BLOCKED_FIRING_LOCATIONS
Contains a mapping of locations which are blocked when carrying cargo in the "key" location -
JUMP_UNKNOWN
public static final int JUMP_UNKNOWN- See Also:
-
JUMP_NONE
public static final int JUMP_NONE- See Also:
-
JUMP_STANDARD
public static final int JUMP_STANDARD- See Also:
-
JUMP_IMPROVED
public static final int JUMP_IMPROVED- See Also:
-
JUMP_PROTOTYPE
public static final int JUMP_PROTOTYPE- See Also:
-
JUMP_DISPOSABLE
public static final int JUMP_DISPOSABLE- See Also:
-
JUMP_PROTOTYPE_IMPROVED
public static final int JUMP_PROTOTYPE_IMPROVED- See Also:
-
HAS_FALSE
public static final int HAS_FALSE- See Also:
-
HAS_UNKNOWN
public static final int HAS_UNKNOWN- See Also:
-
HAS_TRUE
public static final int HAS_TRUE- See Also:
-
gyroType
protected int gyroType -
cockpitType
protected int cockpitType -
EMERGENCY_COOLANT_SYSTEM_FAILURE
protected static int[] EMERGENCY_COOLANT_SYSTEM_FAILURE -
nCoolantSystemLevel
protected int nCoolantSystemLevel -
bCoolantWentUp
protected boolean bCoolantWentUp -
bUsedCoolantSystem
protected boolean bUsedCoolantSystem -
bDamagedCoolantSystem
protected boolean bDamagedCoolantSystem -
nCoolantSystemMOS
protected int nCoolantSystemMOS -
originalMovementMode
-
-
Constructor Details
-
Mek
public Mek()Construct a new, blank, Mek. -
Mek
public Mek(int inGyroType, int inCockpitType)
-
-
Method Details
-
getUnitType
public int getUnitType()- Specified by:
getUnitType
in classEntity
- See Also:
-
defaultCrewType
- Overrides:
defaultCrewType
in classEntity
-
cannotStandUpFromHullDown
public abstract boolean cannotStandUpFromHullDown()- Returns:
- True if this Mek can NOT stand up from hulldown. Checks leg and gyro damage.
-
hasCowl
public boolean hasCowl()- Returns:
- True if this Mek has the Cowl quirk and quirks are used in the present game.
-
damageCowl
public int damageCowl(int amount) Damages the remaining cowl armor, if any, by the given amount. Returns the amount of excess damage that is left after deducting cowl armor. This method tests if the unit has Cowl and quirks are being used.- Parameters:
amount
- The incoming damage- Returns:
- The damage left after deducting the cowl's remaining armor, if any
-
getInnerLocation
public static int getInnerLocation(int location) Returns the location that transferred damage or crits will go to from a given location. -
mostRestrictiveLoc
public static int mostRestrictiveLoc(int location1, int location2) Returns the location with the most restrictive firing arc for a weapon. -
leastRestrictiveLoc
public static int leastRestrictiveLoc(int location1, int location2) find the least restrictive location of the two locations passed in- Parameters:
location1
-location2
-- Returns:
-
restrictScore
public static int restrictScore(int location) Helper function designed to give relative restrictiveness of locations. Used for finding the most restrictive firing arc for a weapon. -
setOmni
public void setOmni(boolean omni) OmniMeks have handles for Battle Armor squads to latch onto. Please note, this method should only be called during this Mek's construction.Overrides
Entity#setOmni(boolean)
-
setBAGrabBars
public void setBAGrabBars() -
setProtoMekClampMounts
public void setProtoMekClampMounts() -
load
Description copied from class:Entity
Load the given unit. -
locations
public int locations()Returns the number of locations in the entity -
newRound
public void newRound(int roundNumber) Description copied from class:Entity
Start a new round- Specified by:
newRound
in interfaceRoundUpdated
- Overrides:
newRound
in classEntity
- Parameters:
roundNumber
- theint
number of the new round
-
locationIsTorso
public boolean locationIsTorso(int loc) Returns true if the location in question is a torso location -
locationIsLeg
public boolean locationIsLeg(int loc) Returns true if the location in question is a leg- Overrides:
locationIsLeg
in classEntity
- Parameters:
loc
- the location to check.
-
countBadLegs
public int countBadLegs()Count the number of destroyed or breached legs on the Mek -
hasHipCrit
public boolean hasHipCrit()Returns true if the entity has a hip crit.- Overrides:
hasHipCrit
in classEntity
-
legHasHipCrit
public boolean legHasHipCrit(int loc) Return true is the location is a leg and has a hip crit -
isSystemIntact
public boolean isSystemIntact(int system) This function returns true iff the system is in perfect condition.- Parameters:
system
- the system to check- Returns:
- false if the system is damaged.
-
countLegActuatorCrits
public int countLegActuatorCrits(int loc) Count non-hip leg actuator crits -
hasCompositeStructure
public boolean hasCompositeStructure()does this Mek have composite internal structure?- Returns:
-
hasReinforcedStructure
public boolean hasReinforcedStructure()does this Mek have reinforced internal structure?- Returns:
-
hasJumpBoosters
public boolean hasJumpBoosters()does this Mek have working jump boosters?- Returns:
-
hasExtendedRetractableBlade
public boolean hasExtendedRetractableBlade()Does this Mek have an extended retractable blade in working condition? -
hasRetractedBlade
public boolean hasRetractedBlade(int loc) Does the entity have a retracted blade in the given location? Only true for biped Meks -
hasTSM
public boolean hasTSM(boolean includePrototype) Check for whether the Mek has triple strength myomer- Parameters:
includePrototype
- Whether to include prototype TSM in the check. Prototype TSM does not have a movement bonus or a required heat level.- Returns:
- Whether the Mek has TSM
-
antiTSMVulnerable
public boolean antiTSMVulnerable()Description copied from class:Entity
Check for vulnerability to anti-TSM munitions. ATSM affects Meks with prototype TSM and any industrial TSM created before 3050, and conventional infantry with TSM implants.- Overrides:
antiTSMVulnerable
in classEntity
- Returns:
- Whether the unit is affected by ATSM munitions
-
hasActiveTSM
public boolean hasActiveTSM() -
hasActiveTSM
public boolean hasActiveTSM(boolean includeIndustrial) Checks whether any type of TSM is active. Industrial and prototype are always on. Standard is on when heat level is >= 9.- Parameters:
includeIndustrial
- Whether to include industrial TSM in the check- Returns:
- Whether the Mek has some form of TSM and it's active
-
hasIndustrialTSM
public boolean hasIndustrialTSM()does this Mek have industrial TSM=- Returns:
-
hasNullSig
public boolean hasNullSig()does this Mek have a null-sig-system?- Returns:
-
hasVoidSig
public boolean hasVoidSig()does this Mek have a void-sig-system?- Returns:
-
hasTracks
public boolean hasTracks()Does this Mek have tracks? Used for tracks as industrial equipment; QuadVees return false.- Returns:
-
hasChameleonShield
public boolean hasChameleonShield()does this Mek have a chameleon light polarization shield?- Returns:
-
getStandingHeat
public int getStandingHeat()Description copied from class:Entity
get the heat generated by this Entity when standing still- Overrides:
getStandingHeat
in classEntity
-
setEngine
set this Mek'sEngine
-
calculateWalk
protected int calculateWalk()Used to set this Mek's original walk mp- Returns:
- this units calculated walking speed, dependent on engine rating and weight
-
getWalkHeat
public int getWalkHeat()Description copied from class:Entity
get the heat generated by this Entity when walking/cruising- Overrides:
getWalkHeat
in classEntity
-
getRunMP
-
getRunMPasString
Returns this entity's running/flank mp as a string.- Overrides:
getRunMPasString
in classEntity
-
getRunHeat
public int getRunHeat()Depends on engine type- Overrides:
getRunHeat
in classEntity
-
getSprintMP
Description copied from class:Entity
Returns 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:
getSprintMP
in classEntity
- Returns:
- This entity's modified sprinting MP
-
getRunningGravityLimit
public int getRunningGravityLimit()Description copied from class:Entity
get the gravity limit for ground movement- Overrides:
getRunningGravityLimit
in classEntity
-
getSprintHeat
public int getSprintHeat()Depends on engine type- Overrides:
getSprintHeat
in classEntity
-
getJumpMP
-
getOriginalMechanicalJumpBoosterMP
public int getOriginalMechanicalJumpBoosterMP()- Returns:
- The jump MP for the Mek's mechanical jump boosters, unmodified by damage, other equipment (shields) or any other effects.
-
getMechanicalJumpBoosterMP
- Overrides:
getMechanicalJumpBoosterMP
in classEntity
- Returns:
- The jump MP for a Mek's mechanical jump boosters, modified as given through the MPCalculationSetting. Returns 0 for non-Meks.
-
hasChainDrape
public boolean hasChainDrape() -
getPartialWingJumpWeightClassBonus
public int getPartialWingJumpWeightClassBonus() -
getPartialWingJumpAtmoBonus
public int getPartialWingJumpAtmoBonus() -
getPartialWingJumpAtmoBonus
-
getPartialWingJumpBonus
Gives the bonus to Jump MP conferred by a Mek partial wing.- Parameters:
mount
- The mounted location of the Wing- Returns:
- The Jump MP bonus conferred by the wing
-
getPartialWingJumpBonus
-
getJumpType
public int getJumpType()Returns the type of jump jet system the Mek has.- Overrides:
getJumpType
in classEntity
-
getJumpHeat
public int getJumpHeat(int movedMP) Description copied from class:Entity
get the heat generated by this Entity when jumping for a certain amount of MP- Overrides:
getJumpHeat
in classEntity
- Parameters:
movedMP
- the number of movement points spent
-
torsoJumpJets
public int torsoJumpJets()Returns the number of (working) jump jets mounted in the torsos. -
isEligibleForPavementOrRoadBonus
public boolean isEligibleForPavementOrRoadBonus()Description copied from class:Entity
Tanks and certain other units can get a +1 bonus to MP if their move is entirely on pavement.- Overrides:
isEligibleForPavementOrRoadBonus
in classEntity
- Returns:
- true if the
Entity
gets a movement bonus on pavement
-
nextConversionMode
Description copied from class:Entity
Entities 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:
nextConversionMode
in classEntity
- Parameters:
afterMode
- The movement mode to convert from.- Returns:
- The next movement mode in the sequence.
-
canFall
public boolean canFall(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. -
height
public int height()Return the height of this Mek above the terrain. -
addEngineSinks
Adds heat sinks to the engine. Uses clan/normal depending on the currently set techLevel -
addEngineSinks
Adds heat sinks to the engine. Adds either the engine capacity, or the entire number of heat sinks, whichever is less -
addEngineSinks
base for adding engine sinks. Newer method allows externals to say how much are engine HS.- Parameters:
totalSinks
- the amount of heatsinks to add to the enginesinkName
- theString
determining the type of heatsink to add. must be a lookupname of a heatsinktype
-
addEngineSinks
add heat sinks into the engine- Parameters:
sinkName
- theString
determining the type of heatsink to add. must be a lookupname of a heatsinktypetoAllocate
- Number of hs to add to the Engine.
-
getEngineCritHeat
public int getEngineCritHeat()Returns extra heat generated by engine crits- Specified by:
getEngineCritHeat
in classEntity
-
heatSinks
public int heatSinks()Returns the number of heat sinks, functional or not. -
heatSinks
public int heatSinks(boolean countPrototypes) Returns the number of heat sinks, functional or not.- Parameters:
countPrototypes
- Set TRUE to include Prototype Heat Sinks in the total.
-
damagedHeatSinks
public int damagedHeatSinks()Returns the number of destroyed heat sinks. -
getHeatSinkTypeName
Returns the name of the heat sinks mounted on this 'Mek.- Returns:
-
getHeatCapacity
public int getHeatCapacity()Returns the about of heat that the entity can sink each turn.- Overrides:
getHeatCapacity
in classEntity
-
getHeatCapacity
public int getHeatCapacity(boolean radicalHeatSink) - Specified by:
getHeatCapacity
in classEntity
-
getHeatCapacity
public int getHeatCapacity(boolean includePartialWing, boolean includeRadicalHeatSink) -
getHeatCapacityWithWater
public int getHeatCapacityWithWater()Returns the about of heat that the entity can sink each turn, factoring for water.- Specified by:
getHeatCapacityWithWater
in classEntity
-
tracksHeat
public boolean tracksHeat()Description copied from interface:Targetable
Used to identify an target that tracks heat buildup (Meks, ASFs, and small craft).- Returns:
- Whether the target tracks heat buildup.
-
getMovementString
Returns the name of the type of movement used. This is Mek-specific.- Specified by:
getMovementString
in classEntity
-
getMovementAbbr
Returns the name of the type of movement used. This is Mek-specific.- Specified by:
getMovementAbbr
in classEntity
-
canChangeSecondaryFacing
public boolean canChangeSecondaryFacing()Description copied from class:Entity
Can this entity change secondary facing at all?- Specified by:
canChangeSecondaryFacing
in classEntity
-
isValidSecondaryFacing
public boolean isValidSecondaryFacing(int dir) Can this Mek torso twist in the given direction?- Specified by:
isValidSecondaryFacing
in classEntity
-
clipSecondaryFacing
public int clipSecondaryFacing(int dir) Return the nearest valid direction to torso twist in- Specified by:
clipSecondaryFacing
in classEntity
- Returns:
- the closest valid secondary facing.
-
hasRearArmor
public boolean hasRearArmor(int loc) Description copied from class:Entity
Does this location have rear armor?- Specified by:
hasRearArmor
in classEntity
-
getArmor
public int getArmor(int loc, boolean rear) Returns the amount of armor in the location specified. Mek version, handles rear armor. -
getArmorForReal
public int getArmorForReal(int loc, boolean rear) - Overrides:
getArmorForReal
in classEntity
-
getOArmor
public int getOArmor(int loc, boolean rear) Returns the original amount of armor in the location specified. Mek version, handles rear armor. -
setArmor
public void setArmor(int val, int loc, boolean rear) Sets the amount of armor in the location specified. Mek version, handles rear armor. -
initializeRearArmor
public void initializeRearArmor(int val, int loc) Initializes the rear armor on the Mek. Sets the original and starting point of the armor to the same number. -
setHardenedArmorDamaged
- Overrides:
setHardenedArmorDamaged
in classEntity
-
isHardenedArmorDamaged
Description copied from class:Entity
do we have a half-hit hardened armor point in the location struck by this?- Overrides:
isHardenedArmorDamaged
in classEntity
- Returns:
-
setArmorDamagedThisTurn
public void setArmorDamagedThisTurn(int loc, boolean tookdamage) did the armor in this location take damage which did not destroy it at least once this turn? this is used to decide whether to trigger Harjel II/III -
isArmorDamagedThisTurn
public boolean isArmorDamagedThisTurn(int loc) did the armor in this location take damage which did not destroy it at least once this turn? this is used to decide whether to trigger Harjel II/III -
getWeaponArc
public int getWeaponArc(int wn) Returns the Compute.ARC that the weapon fires into.- Specified by:
getWeaponArc
in classEntity
-
isSecondaryArcWeapon
public boolean isSecondaryArcWeapon(int weaponId) Returns true if this weapon fires into the secondary facing arc. If false, assume it fires into the primary.- Specified by:
isSecondaryArcWeapon
in classEntity
-
joinLocationAbbr
Description copied from class:Entity
Joins the abbreviations for the locations into a String with / as the separator. If the number of locations exceeds the provided limit, the result is abbreviated. By default the abbreviation is simply an asterisk, but Meks have specific abbreviations locations that include all torso or leg positions.- Overrides:
joinLocationAbbr
in classEntity
- Parameters:
locations
- A list of location indiceslimit
- The maximum number of locations to show in full- Returns:
- A string formatted for display that shows the locations
-
rollHitLocation
Description copied from class:Entity
Rolls up a hit location- Specified by:
rollHitLocation
in classEntity
-
rollHitLocation
public HitData rollHitLocation(int table, int side, int aimedLocation, AimingMode aimingMode, int cover) Description copied from class:Entity
Rolls the to-hit number- Specified by:
rollHitLocation
in classEntity
-
tac
Called when a thru-armor-crit is rolled. Checks the game options and either returns no critical hit, rolls a floating crit, or returns a TAC in the specified location. -
getTransferLocation
Gets the location that excess damage transfers to- Specified by:
getTransferLocation
in classEntity
-
getDependentLocation
public int getDependentLocation(int loc) Gets the location that is destroyed recursively- Specified by:
getDependentLocation
in classEntity
-
setInternal
public abstract void setInternal(int head, int ct, int t, int arm, int leg) Sets the internal structure for the Mek.- Parameters:
head
- headct
- center torsot
- right/left torsoarm
- right/left armleg
- right/left leg
-
autoSetInternal
public void autoSetInternal()Set the internal structure to the appropriate value for the Mek's weight class- Specified by:
autoSetInternal
in classEntity
-
addClanCase
public void addClanCase()Description copied from class:Entity
For clan units that get automatic Clan CASE, adds clan CASE in every location that has potentially explosive equipment (this includes uncharged PPC Capacitors).As clan CASE does not need critical slots, this method does not perform checks whether other CASE types are already present on a location.
This method does nothing by default and must be overridden for unit types that get Clan CASE.
- Overrides:
addClanCase
in classEntity
-
addTargCompWithoutSlots
public MiscMounted addTargCompWithoutSlots(MiscType etype, int loc, boolean omniPod, boolean armored) throws LocationFullException Adds equipment without adding slots for it. Specifically for targeting computers, which when loaded from a file don't have a correct size and get loaded slot by slot- Throws:
LocationFullException
-
addEquipment
public Mounted<?> addEquipment(EquipmentType etype, EquipmentType etype2, int loc, boolean omniPod, boolean armored) throws LocationFullException - Throws:
LocationFullException
-
addEquipment
public void addEquipment(Mounted<?> mounted, int loc, boolean rearMounted) throws LocationFullException Mounts the specified weapon in the specified location.- Overrides:
addEquipment
in classEntity
- Throws:
LocationFullException
-
addEquipment
public void addEquipment(Mounted<?> mounted, int loc, boolean rearMounted, int critSlot) throws LocationFullException Mounts the specified weapon in the specified location.- Overrides:
addEquipment
in classEntity
- Throws:
LocationFullException
-
getTechAdvancement
public static TechAdvancement getTechAdvancement(long etype, boolean primitive, boolean industrial, int weightClass) -
getConstructionTechAdvancement
Description copied from class:Entity
return - the base construction option tech advancement- Specified by:
getConstructionTechAdvancement
in classEntity
-
getIndustrialAdvFireConTA
-
getCockpitTechAdvancement
-
getCockpitTechAdvancement
-
getGyroTechAdvancement
-
getGyroTechAdvancement
-
getFullHeadEjectAdvancement
-
getRiscHeatSinkOverrideKitAdvancement
-
addSystemTechAdvancement
Description copied from class:Entity
Incorporate dates for components that are not in the equipment list, such as engines and structure.- Overrides:
addSystemTechAdvancement
in classEntity
-
getCost
Description copied from class:Entity
Calculates and returns the C-bill cost of the unit. The parameter ignoreAmmo can be used to include or exclude ("dry cost") the cost of ammunition on the unit. A report for the cost calculation will be written to the given calcReport. -
getPriceMultiplier
public double getPriceMultiplier()Description copied from class:Entity
Returns a multiplier that combines multiplicative construction cost modifiers for this Entity.This includes only modifiers that apply to an Entity's final, total cost (e.g. - the 1.25x modifier for being an omni-unit, or the 32.0x for being an aerodyne DropShip). It does NOT include multipliers that only apply to a sub-part of the unit (e.g. the weight based multiplier that applies to a vehicle's internal structure cost).
This allows MekHQ to scale the price of a Unit's Parts in a more appropriate manner.
Defaults to 1.0
- Overrides:
getPriceMultiplier
in classEntity
-
implicitClanCASE
public int implicitClanCASE()Description copied from class:Entity
Used to for cost calculations. Though the TM rules allow a Clan unit to be designed without CASE, MM assumes that CASE is present in any location that has explosive equipment.- Overrides:
implicitClanCASE
in classEntity
- Returns:
- The number of locations protected by Clan CASE beyond what is explicitly mounted.
-
getActuatorCost
public double getActuatorCost() -
getArmActuatorCost
protected double getArmActuatorCost() -
getLegActuatorCost
protected abstract double getLegActuatorCost() -
victoryReport
Description copied from class:Entity
Generates a vector containing reports on all useful information about this entity.- Specified by:
victoryReport
in classEntity
-
addEntityBonuses
Add in any piloting skill mods- Specified by:
addEntityBonuses
in classEntity
-
getMaxElevationChange
public int getMaxElevationChange()Description copied from class:Entity
The maximum elevation change the entity can cross- Specified by:
getMaxElevationChange
in classEntity
-
getMaxElevationDown
public int getMaxElevationDown(int currElevation) Description copied from class:Entity
Returns 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:
getMaxElevationDown
in classEntity
- Returns:
-
isStealthActive
public boolean isStealthActive()Determine if this unit has an active and working stealth system. (stealth can be active and not working when under ECCM)Sub-classes are encouraged to override this method.
- Overrides:
isStealthActive
in classEntity
- Returns:
true
if this unit has a stealth system that is currently active,false
if there is no stealth system or if it is inactive.
-
isStealthOn
public boolean isStealthOn()Determine if this unit has an active and working stealth system. (stealth can be active and not working when under ECCM)Sub-classes are encouraged to override this method.
- Overrides:
isStealthOn
in classEntity
- Returns:
true
if this unit has a stealth system that is currently active,false
if there is no stealth system or if it is inactive.
-
isNullSigActive
public boolean isNullSigActive()Does the Mek have a functioning null signature system, or a void sig that is acting as a a null sig because of externally carried BA?- Overrides:
isNullSigActive
in classEntity
- Returns:
true
if this unit has a null signature system that is currently active,false
if there is no stealth system or if it is inactive.
-
isNullSigOn
public boolean isNullSigOn()Description copied from class:Entity
Determine if this unit has an active null-signature system.Sub-classes are encouraged to override this method.
- Overrides:
isNullSigOn
in classEntity
- Returns:
true
if this unit has a null signature system that is currently active,false
if there is no stealth system or if it is inactive.
-
isVoidSigActive
public boolean isVoidSigActive()Does the Mek have a functioning void signature system?- Overrides:
isVoidSigActive
in classEntity
- Returns:
true
if this unit has a void signature system that is currently active,false
if there is no stealth system or if it is inactive.
-
isVoidSigOn
public boolean isVoidSigOn()Does the Mek have a functioning void signature system?- Overrides:
isVoidSigOn
in classEntity
- Returns:
true
if this unit has a void signature system that is currently active,false
if there is no stealth system or if it is turned off.
-
isChameleonShieldActive
public boolean isChameleonShieldActive()Does the Mek have a functioning Chameleon Light Polarization Field? For a CLPS to be functioning it must be on and the unit can't have mounted mechanized BattleArmor.- Overrides:
isChameleonShieldActive
in classEntity
- Returns:
true
if this unit has a void signature system that is currently active,false
if there is no stealth system or if it is inactive.
-
isChameleonShieldOn
public boolean isChameleonShieldOn()Does the Mek Chameleon Light Polarization Field turned on? This is used for heat generation purposes. A CLPS can be on and generating heat but not providing any benefit if the unit has mechanized BattleArmor.- Overrides:
isChameleonShieldOn
in classEntity
- Returns:
true
if this unit has a void signature system that is currently active,false
if there is no stealth system or if it is inactive.
-
getStealthModifier
Determine the stealth modifier for firing at this unit from the given range. If the value supplied forrange
is not one of theEntity
class range constants, anIllegalArgumentException
will be thrown.Sub-classes are encouraged to override this method.
- Overrides:
getStealthModifier
in classEntity
- Parameters:
range
- - anint
value that must match one of theCompute
class range constants.ae
- - entity making the attack- Returns:
- a
TargetRoll
value that contains the stealth modifier for the given range.
-
isRepairable
public boolean isRepairable()Determine if the unit can be repaired, or only harvested for spares.- Overrides:
isRepairable
in classEntity
- Returns:
- A
boolean
that istrue
if the unit can be repaired (given enough time and parts); if this value isfalse
, the unit is only a source of spares. - See Also:
-
canCharge
public boolean canCharge() -
canDFA
public boolean canDFA() -
getNumberOfSinks
public int getNumberOfSinks()- Returns:
- the total number of sinks
-
hasDoubleHeatSinks
public boolean hasDoubleHeatSinks() -
hasLaserHeatSinks
public boolean hasLaserHeatSinks() -
setActiveSinksNextRound
public void setActiveSinksNextRound(int sinks) -
getActiveSinks
public int getActiveSinks() -
resetSinks
public void resetSinks() -
getActiveSinksNextRound
public int getActiveSinksNextRound() -
hasEjectSeat
public boolean hasEjectSeat()- Returns:
- unit has an ejection seat
-
isAutoEject
public boolean isAutoEject()- Returns:
- Returns the autoEject.
-
setAutoEject
public void setAutoEject(boolean autoEject) - Parameters:
autoEject
- The autoEject to set.
-
isCondEjectAmmo
public boolean isCondEjectAmmo()- Returns:
- Conditional Ejection Ammo
-
setCondEjectAmmo
public void setCondEjectAmmo(boolean condEjectAmmo) - Parameters:
condEjectAmmo
- The condEjectAmmo to set.
-
isCondEjectEngine
public boolean isCondEjectEngine()- Returns:
- Conditional Ejection Engine
-
setCondEjectEngine
public void setCondEjectEngine(boolean condEjectEngine) - Parameters:
condEjectEngine
- The condEjectEngine to set.
-
isCondEjectCTDest
public boolean isCondEjectCTDest()- Returns:
- Conditional Ejection CTDest
-
setCondEjectCTDest
public void setCondEjectCTDest(boolean condEjectCTDest) - Parameters:
condEjectCTDest
- The condEjectCTDest to set.
-
isCondEjectHeadshot
public boolean isCondEjectHeadshot()- Returns:
- Conditional Ejection Headshot
-
setCondEjectHeadshot
public void setCondEjectHeadshot(boolean condEjectHeadshot) - Parameters:
condEjectHeadshot
- The condEjectHeadshot to set.
-
removePartialCoverHits
public boolean removePartialCoverHits(int location, int cover, int side) - Overrides:
removePartialCoverHits
in classEntity
-
doomedInExtremeTemp
public boolean doomedInExtremeTemp()- Specified by:
doomedInExtremeTemp
in classEntity
-
doomedInVacuum
public boolean doomedInVacuum()- Specified by:
doomedInVacuum
in classEntity
-
doomedOnGround
public boolean doomedOnGround()- Specified by:
doomedOnGround
in classEntity
-
doomedInAtmosphere
public boolean doomedInAtmosphere()- Specified by:
doomedInAtmosphere
in classEntity
-
doomedInSpace
public boolean doomedInSpace()- Specified by:
doomedInSpace
in classEntity
-
hasEiCockpit
public boolean hasEiCockpit()- Overrides:
hasEiCockpit
in classEntity
-
hasActiveEiCockpit
public boolean hasActiveEiCockpit()- Overrides:
hasActiveEiCockpit
in classEntity
-
getCockpitStatus
public int getCockpitStatus() -
getCockpitStatusNextRound
public int getCockpitStatusNextRound() -
setCockpitStatus
public void setCockpitStatus(int state) -
getGyroType
public int getGyroType()Description copied from class:Entity
Only Meks have Gyros but this helps keep the code a bit cleaner.- Overrides:
getGyroType
in classEntity
- Returns:
-1
-
getCockpitType
public int getCockpitType() -
setGyroType
public void setGyroType(int type) -
setCockpitType
public void setCockpitType(int type) -
getGyroTypeString
-
getCockpitTypeString
-
getCockpitTypeString
-
getGyroTypeString
-
getGyroTypeShortString
-
getCockpitTypeString
-
getGyroTypeForString
-
getCockpitTypeForString
-
getSystemName
-
getRawSystemName
-
getGyroDisplayString
-
getCockpitDisplayString
-
hasAdvancedFireControl
public boolean hasAdvancedFireControl() -
canAssaultDrop
public boolean canAssaultDrop()- Overrides:
canAssaultDrop
in classEntity
-
isLocationProhibited
- Overrides:
isLocationProhibited
in classEntity
- Parameters:
c
-Coords
CoordinatescurrElevation
- Elevation level- Returns:
- true if the specified hex contains some sort of prohibited terrain if the Entity is at the specified elevation. Elevation generally only matters for units like WiGEs or VTOLs.
-
isLocationDeadly
Description copied from class:Entity
Returns true if the specified hex contains some sort of deadly terrain.- Overrides:
isLocationDeadly
in classEntity
-
getMtf
Get an '.mtf' file representation of the Mek. This string can be directly written to disk as a file and later loaded by the MtfFile class. -
addCockpit
public boolean addCockpit()Add the critical slots necessary for a standard cockpit. Note: This is part of the mek creation public API, and might not be referenced by any MegaMek code.- Returns:
- false if insufficient critical space
-
addIndustrialCockpit
public boolean addIndustrialCockpit()Add the critical slots necessary for an industrial cockpit. Note: This is part of the mek creation public API, and might not be referenced by any MegaMek code.- Returns:
- false if insufficient critical space
-
addPrimitiveCockpit
public boolean addPrimitiveCockpit()Add the critical slots necessary for an industrial cockpit. Note: This is part of the mek creation public API, and might not be referenced by any MegaMek code.- Returns:
- false if insufficient critical space
-
addIndustrialPrimitiveCockpit
public boolean addIndustrialPrimitiveCockpit()Add the critical slots necessary for an industrial primitive cockpit. Note: This is part of the mek creation public API, and might not be referenced by any MegaMek code.- Returns:
- false if insufficient critical space
-
addSmallCockpit
public boolean addSmallCockpit()Add the critical slots necessary for a small cockpit. Note: This is part of the mek creation public API, and might not be referenced by any MegaMek code.- Returns:
- false if insufficient critical space
-
addInterfaceCockpit
public boolean addInterfaceCockpit()Add the critical slots necessary for a small cockpit. Note: This is part of the mek creation public API, and might not be referenced by any MegaMek code.- Returns:
- false if insufficient critical space
-
addCommandConsole
public boolean addCommandConsole() -
addQuadVeeCockpit
public boolean addQuadVeeCockpit() -
addDualCockpit
public boolean addDualCockpit() -
addSuperheavyIndustrialCockpit
public boolean addSuperheavyIndustrialCockpit() -
addSuperheavyCommandConsole
public boolean addSuperheavyCommandConsole() -
addSmallCommandConsole
public boolean addSmallCommandConsole() -
addTorsoMountedCockpit
public boolean addTorsoMountedCockpit(boolean vrpp) Add the critical slots necessary for a torso-mounted cockpit. Note: This is part of the mek creation public API, and might not be referenced by any MegaMek code.- Parameters:
vrpp
- if this is a VRPP rather than a standard torso-mounted cockpit- Returns:
- false if insufficient critical space
-
getCockpit
Convenience function that returns the critical slot containing the cockpit- Returns:
-
getCrewForCockpitSlot
Determines which crew slot is associated with a particular cockpit critical.- Parameters:
cs
- A cockpit critical slot- Returns:
- The crew slot index associated with this critical slot, or -1 to indicate the entire crew.
-
hasCommandConsoleBonus
public boolean hasCommandConsoleBonus()Description copied from class:Entity
Units with a cockpit command console provide an initiative bonus to their side, provided that the commander is not currently functioning as pilot, the unit has advanced fire control, and the unit is heavy or assault weight class.- Overrides:
hasCommandConsoleBonus
in classEntity
- Returns:
- Whether the Entity qualifies for initiative bonus from cockpit command console.
-
addGyro
public boolean addGyro()Add the critical slots necessary for a standard gyro. Also set the gyro type variable. Note: This is part of the mek creation public API, and might not be referenced by any MegaMek code.- Returns:
- false if insufficient critical space
-
addSuperheavyGyro
public boolean addSuperheavyGyro()Add the critical slots necessary for a standard gyro. Also set the gyro type variable. Note: This is part of the mek creation public API, and might not be referenced by any MegaMek code.- Returns:
- false if insufficient critical space
-
addCompactGyro
public boolean addCompactGyro()Add the critical slots necessary for a compact gyro. Also set the gyro type variable. Note: This is part of the mek creation public API, and might not be referenced by any MegaMek code.- Returns:
- false if insufficient critical space
-
addXLGyro
public boolean addXLGyro()Add the critical slots necessary for an extra-light gyro. Also set the gyro type variable. Note: This is part of the mek creation public API, and might not be referenced by any MegaMek code.- Returns:
- false if insufficient critical space
-
addHeavyDutyGyro
public boolean addHeavyDutyGyro()Add the critical slots necessary for a heavy-duty gyro. Also set the gyro type variable. Note: This is part of the mek creation public API, and might not be referenced by any MegaMek code.- Returns:
- false if insufficient critical space
-
addEngineCrits
public boolean addEngineCrits()Add 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.- Returns:
- false if insufficient critical space
-
clearEngineCrits
public void clearEngineCrits()Remove 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. -
clearCockpitCrits
public void clearCockpitCrits()Remove all cockpit critical slots from the mek. Note: This is part of the mek creation public API, and might not be referenced by any MegaMek code. -
clearGyroCrits
public void clearGyroCrits()Remove all gyro critical slots from the mek. Note: This is part of the mek creation public API, and might not be referenced by any MegaMek code. -
shieldAbsorptionDamage
public int shieldAbsorptionDamage(int damage, int location, boolean rear) -
hasHarJelIIIn
public boolean hasHarJelIIIn(int loc) Does this Mek have an undamaged HarJel system in this location?- Parameters:
loc
- theint
location to check- Returns:
- a
boolean
value indicating a present HarJel system
-
hasHarJelIIIIn
public boolean hasHarJelIIIIn(int loc) Does this Mek have an undamaged HarJel system in this location?- Parameters:
loc
- theint
location to check- Returns:
- a
boolean
value indicating a present HarJel system
-
setGrappled
public void setGrappled(int id, boolean attacker) - Overrides:
setGrappled
in classEntity
-
isGrappleAttacker
public boolean isGrappleAttacker()- Overrides:
isGrappleAttacker
in classEntity
-
getGrappled
public int getGrappled()- Overrides:
getGrappled
in classEntity
-
isGrappledThisRound
public boolean isGrappledThisRound()- Overrides:
isGrappledThisRound
in classEntity
-
setGrappledThisRound
public void setGrappledThisRound(boolean grappled) - Overrides:
setGrappledThisRound
in classEntity
-
isEligibleForMovement
public boolean isEligibleForMovement()Description copied from class:Entity
Pretty much anybody's eligible for movement. If the game option is toggled on, inactive and immobile entities are not eligible. OffBoard units are always ineligible- Overrides:
isEligibleForMovement
in classEntity
- Returns:
- whether or not the entity is allowed to move
-
isNuclearHardened
public boolean isNuclearHardened()Description copied from class:Entity
Checks if the unit is hardened against nuclear strikes.- Specified by:
isNuclearHardened
in classEntity
- Returns:
- true if this is a hardened unit.
-
destroyLocation
public void destroyLocation(int loc) Description copied from class:Entity
Marks all equipment in a location on this entity as destroyed.- Overrides:
destroyLocation
in classEntity
- Parameters:
loc
- The location that is destroyed.
-
destroyLocation
public void destroyLocation(int loc, boolean blownOff) Description copied from class:Entity
Marks all equipment in a location on this entity as destroyed.- Overrides:
destroyLocation
in classEntity
- Parameters:
loc
- The location that is destroyed.blownOff
- true if the location was blown off
-
setGrappleSide
public void setGrappleSide(int side) - Overrides:
setGrappleSide
in classEntity
-
getGrappleSide
public int getGrappleSide()- Overrides:
getGrappleSide
in classEntity
-
isCarefulStand
public boolean isCarefulStand()- Overrides:
isCarefulStand
in classEntity
-
getCoolantFailureAmount
public int getCoolantFailureAmount()How many times TacOps coolant failure has occurred, which is also the reduction in heat sinking capacity- Overrides:
getCoolantFailureAmount
in classEntity
-
addCoolantFailureAmount
public void addCoolantFailureAmount(int amount) Description copied from class:Entity
This is implemented in subclasses, do nothing in general- Overrides:
addCoolantFailureAmount
in classEntity
- Parameters:
amount
- Amount of Coolant to add
-
resetCoolantFailureAmount
public void resetCoolantFailureAmount()Reset count of TacOps coolant failures to zero (no loss)- Overrides:
resetCoolantFailureAmount
in classEntity
-
getTotalCommGearTons
public int getTotalCommGearTons()- Specified by:
getTotalCommGearTons
in classEntity
- Returns:
- the total tonnage of communications gear in this entity
-
getHQIniBonus
public int getHQIniBonus()- Overrides:
getHQIniBonus
in classEntity
- Returns:
- the initiative bonus this Entity grants for HQ
-
getBARRating
public int getBARRating(int loc) Description copied from class:Entity
Return the BAR-rating of this Entity's armor- Overrides:
getBARRating
in classEntity
- Returns:
- the BAR rating
-
isIndustrial
public boolean isIndustrial()Is this an Industrial Mek?- Returns:
- if this Mek has an industrial inner structure
-
setJustMovedIntoIndustrialKillingWater
public void setJustMovedIntoIndustrialKillingWater(boolean moved) set if this Mek just moved into water that would kill it because of the lack of environmental sealing- Parameters:
moved
-
-
isJustMovedIntoIndustrialKillingWater
public boolean isJustMovedIntoIndustrialKillingWater()did this Mek just moved into water that would kill it because we lack environmental sealing?- Returns:
-
shouldDieAtEndOfTurnBecauseOfWater
public boolean shouldDieAtEndOfTurnBecauseOfWater()should this Mek die at the end of turn because it's an IndustrialMek without environmental sealing that moved into water last round and stayed there?- Returns:
-
setShouldDieAtEndOfTurnBecauseOfWater
public void setShouldDieAtEndOfTurnBecauseOfWater(boolean moved) set if this Mek should die at the end of turn because it's an IndustrialMek without environmental sealing that moved into water last round and stayed there?- Parameters:
moved
-
-
setStalled
public void setStalled(boolean stalled) Set if this Mek's ICE Engine is stalled or not should only be used for industrial Meks carrying an ICE engine- Parameters:
stalled
-
-
isStalled
public boolean isStalled()Description copied from class:Entity
Is this Entity's ICE Engine stalled? -
isShutDown
public boolean isShutDown()- Overrides:
isShutDown
in classEntity
-
doCheckEngineStallRoll
Description copied from class:Entity
Possibly do a ICE-Engine stall PSR (only intended for Meks, both Industrial and Battle).- Overrides:
doCheckEngineStallRoll
in classEntity
- Parameters:
vPhaseReport
- theReport
Vector
containing the phase reports- Returns:
- a
Report
Vector
containing the passed in reports, and any additional ones
-
checkUnstall
Description copied from class:Entity
Check for uninstalling of this Entity's engine (only used for ICE-powered 'Meks).- Overrides:
checkUnstall
in classEntity
- Parameters:
vPhaseReport
- theReport
Vector
containing the phase reports
-
isPrimitive
public boolean isPrimitive()- Overrides:
isPrimitive
in classEntity
- Returns:
- Whether the unit uses primitive or retro tech construction rules
-
hasArmoredCockpit
public boolean hasArmoredCockpit() -
hasArmoredGyro
public boolean hasArmoredGyro() -
hasArmoredEngine
public boolean hasArmoredEngine()- Overrides:
hasArmoredEngine
in classEntity
-
isCheckForCrit
public boolean isCheckForCrit()should this Mek check for a critical hit at the end of turn due to being an industrial Mek and having been the target of a successful physical attack or for falling -
getLevelsFallen
public int getLevelsFallen()how many levels did this Mek fall this turn?- Returns:
-
setLevelsFallen
public void setLevelsFallen(int levels) -
setCheckForCrit
public void setCheckForCrit(boolean check) -
isArm
public boolean isArm(int loc) Is the passed in location an arm?- Parameters:
loc
-- Returns:
-
getArmoredComponentBV
public double getArmoredComponentBV() -
getGyroMultiplier
public double getGyroMultiplier() -
setFullHeadEject
public void setFullHeadEject(boolean fullHeadEject) -
hasFullHeadEject
public boolean hasFullHeadEject() -
setRiscHeatSinkOverrideKit
public void setRiscHeatSinkOverrideKit(boolean heatSinkKit) -
hasRiscHeatSinkOverrideKit
public boolean hasRiscHeatSinkOverrideKit() -
hasMPReducingHardenedArmor
public abstract boolean hasMPReducingHardenedArmor() -
hardenedArmorMPReduction
protected int hardenedArmorMPReduction()- Returns:
- The MP reduction due to hardened armor on this unit; 1 if it has HA, 0 if not.
-
getEngineHits
public int getEngineHits()- Specified by:
getEngineHits
in classEntity
-
getGyroHits
public int getGyroHits() -
isGyroDestroyed
public boolean isGyroDestroyed()Description copied from class:Entity
Only Meks have gyros, but this helps keep the code a bit cleaner.- Overrides:
isGyroDestroyed
in classEntity
- Returns:
- true if the
Entity
is a Mek and has taken enough gyro hits to destroy it
-
getLocationDamage
- Specified by:
getLocationDamage
in classEntity
-
isCrippled
public boolean isCrippled()Description copied from class:Entity
Returns TRUE if the entity meets the requirements for crippling damage as detailed in TW pg 258.- Specified by:
isCrippled
in classEntity
- Returns:
- boolean
-
isCrippled
public boolean isCrippled(boolean checkCrew) Description copied from class:Entity
Returns TRUE if the entity meets the requirements for crippling damage as detailed in TW pg 258. Excepting dead or non-existing crew issues- Specified by:
isCrippled
in classEntity
- Returns:
- boolean
-
canEscape
public boolean canEscape() -
isPermanentlyImmobilized
public boolean isPermanentlyImmobilized(boolean checkCrew) Description copied from class:Entity
This method returns true if a unit is permanently immobilized either because its crew is dead/gone or because of damage- Overrides:
isPermanentlyImmobilized
in classEntity
- Returns:
- true if unit is permanently immobile
-
isDmgHeavy
public boolean isDmgHeavy()Description copied from class:Entity
Returns TRUE if the entity has been heavily damaged.- Specified by:
isDmgHeavy
in classEntity
- Returns:
- boolean
-
isDmgModerate
public boolean isDmgModerate()Description copied from class:Entity
Returns TRUE if the entity has been moderately damaged.- Specified by:
isDmgModerate
in classEntity
- Returns:
- boolean
-
isDmgLight
public boolean isDmgLight()Description copied from class:Entity
Returns TRUE if the entity has been lightly damaged.- Specified by:
isDmgLight
in classEntity
- Returns:
- boolean
-
hasCompactHeatSinks
public boolean hasCompactHeatSinks() -
getInternal
public int getInternal(int loc) Description copied from class:Entity
Returns the amount of internal structure in the location specified, or ARMOR_NA, or ARMOR_DESTROYED.- Overrides:
getInternal
in classEntity
-
isSuperHeavy
public boolean isSuperHeavy()- Overrides:
isSuperHeavy
in classEntity
-
getEntityType
public long getEntityType()- Specified by:
getEntityType
in classEntity
-
isEjectionPossible
public boolean isEjectionPossible()- Overrides:
isEjectionPossible
in classEntity
-
hasClaw
public boolean hasClaw(int location) Check to see if a Mek has a claw in one of its arms- Parameters:
location
- (LOC_RARM or LOC_LARM)- Returns:
- True/False
-
hasIntactHeatDissipatingArmor
public boolean hasIntactHeatDissipatingArmor()Check whether a Mek has intact heat-dissipating armor in every location thus protecting it from external heat sources like fires or magma- Returns:
- True/False
-
doRISCEmergencyCoolantCheckFor
public boolean doRISCEmergencyCoolantCheckFor(Vector<Report> vDesc, HashMap<Integer, List<CriticalSlot>> vCriticals) return if a RISC emergency coolant failed its roll- Parameters:
vDesc
-vCriticals
-- Returns:
-
hasDamagedCoolantSystem
public boolean hasDamagedCoolantSystem() -
setHasDamagedCoolantSystem
public void setHasDamagedCoolantSystem(boolean hit) -
getCoolantSystemMOS
public int getCoolantSystemMOS() -
isCoolingFlawActive
public boolean isCoolingFlawActive() -
setCoolingFlawActive
public void setCoolingFlawActive(boolean flawActive) -
getSpriteDrawPriority
public int getSpriteDrawPriority()Description copied from class:Entity
Used to determine the draw priority of different Entity subclasses. This allows different unit types to always be draw above/below other types.- Overrides:
getSpriteDrawPriority
in classEntity
-
isMek
public boolean isMek()Description copied from interface:BTObject
Returns true when this object is a Mek (Industrial Mek or BattleMek) or of type BM/IM 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 Mek or BM/IM
-
isIndustrialMek
public boolean isIndustrialMek()Description copied from interface:BTObject
Returns true when this object is an Industrial Mek or of type IM for Alpha Strike. Returns false for any type of unit group even if it is of the right type.- Returns:
- True when this is an Industrial Mek (not a BattleMek)
-
getGenericBattleValue
public int getGenericBattleValue()Description copied from class:Entity
Calculates 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:
getGenericBattleValue
in classEntity
- Returns:
- The generic Battle value for this unit based on its tonnage and type
-
getsAutoExternalSearchlight
public boolean getsAutoExternalSearchlight()- Overrides:
getsAutoExternalSearchlight
in classEntity
- Returns:
- True for unit types that have an automatic external searchlight (Meks and Tanks).
-
getAllCockpitCodeName
-
getBlockedFiringLocations
Description copied from class:Entity
Method that returns the mapping between locations which, if cargo is carried, block other locations from firing.- Overrides:
getBlockedFiringLocations
in classEntity
-
hasFunctionalLegAES
public boolean hasFunctionalLegAES()- Overrides:
hasFunctionalLegAES
in classEntity
-
legCount
protected int legCount()- Returns:
- The number of legs on this Mek (the nominal number, regardless of state or damage, i.e. 2, 3 or 4)
-