Class Aero
- All Implemented Interfaces:
Serializable
,BTObject
,CombatRole
,Deployable
,ForceAssignable
,IAero
,IBomber
,InGameObject
,ITechnology
,ITurnOrdered
,PhaseUpdated
,RoundUpdated
,Targetable
,Transporter
- Direct Known Subclasses:
AeroSpaceFighter
,Jumpship
,SmallCraft
,TeleMissile
- 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 String[]
Deprecated, for removal: This API element is subject to removal in a future version.No indicated uses.static final int
static final int
static final String[]
protected static final TechAdvancement[]
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
static final int
static final int
static final int
static final int
protected int[]
protected int
protected int[]
static final int
static final int
protected int[]
static final int
static final int
Location used for equipment not allocated to a firing arcstatic final int
static final int
static final int
static final int
Location used for capital fighters and squadronsprotected int
protected int
static final int
static final int
static final int
static final int
static final int
protected static final TechAdvancement
protected static final TechAdvancement
protected int
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.IBomber
ALT_BOMB_ATTACK, DIVE_BOMB_ATTACK, SPACE_BOMB_ATTACK
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).Add in any piloting skill modsvoid
addEquipment
(Mounted<?> mounted, int loc, boolean rearMounted) void
addEscapeCraft
(String id) Adds an Escape Craft.void
Deprecated, for removal: This API element is subject to removal in a future version.No indicated uses.protected void
Incorporate dates for components that are not in the equipment list, such as engines and structure.boolean
keep track of whether the wings have suffered a weapon critical hitvoid
void
void
Sets the internal structure for every location to appropriate undamaged values for the unit and location.void
void
void
int
availableBombLocation
(int cost) protected int
boolean
Can this entity change secondary facing at all?boolean
boolean
canDFA()
boolean
boolean
Determines if this object can accept the given unit.boolean
canRam()
boolean
canSpot()
Um, basically everything can spot for LRM indirect fire.int
chooseSideRam
(Coords src) void
Sets the count of each bomb to zeroint
clipSecondaryFacing
(int n) Aerospace really can't torso twist?boolean
boolean
boolean
void
boolean
boolean
boolean
boolean
boolean
boolean
int
int
double
Returns the percent of the armor remainingint
int
int
int
getBadCriticals
(int type, int index, int loc) The number of critical slots that are destroyed in the component.int
Determines where to place equipment that does not require a specific location.double
Not used directly but is overwritten in 5 other classes.int
int
int
int
get modifications to the cluster hit table for critical hitsstatic TechAdvancement
getCockpitTechAdvancement
(int cockpitType) int
static String
getCockpitTypeString
(int inCockpitType) return - the base construction option tech advancementdouble
getCost
(CalculationReport calcReport, boolean ignoreAmmo) Calculates and returns the C-bill cost of the unit.int
getCriticalEffect
(int roll, int target) get the type of critical caused by a critical roll, taking account of existing damageint
int
int
int
int
int
getDependentLocation
(int loc) Gets the location that is destroyed recursivelyint
Returns the unit's design typeint
int
double
int
int
What's the range of the ECM equipment?int
Returns the elevation of this target, relative to the position Hex's surfaceint
Returns extra heat generated by engine critsint
int
Check which turn engines were destroyed in.long
int
Deprecated, for removal: This API element is subject to removal in a future version.no indicated usesint
int[]
int
int
int
int
getFuel()
double
double
Gets the fuel for this Aero in terms of tonnage.int
Deprecated, for removal: This API element is subject to removal in a future version.no indicated uses.int
Deprecated, for removal: This API element is subject to removal in a future version.No indicated uses.int
getHeatCapacity
(boolean includeRadicalHeatSink) int
Returns the amount of heat that the entity can sink each turn, factoring in whether the entity is standing in water.int
int
int
int
int
int[]
double
Returns the percent of the SI remainingint
getLandingGearMod
(boolean vTakeoff) Modifier to landing or vertical takeoff roll for landing gear damage.int
int
Returns the total number of escape pods launched so farint
Returns the total number of lifeboats launched so farint
int
int
String[]
getLocationDamage
(int loc) String[]
int
int
int
The maximum elevation change the entity can crossint
int
int
getMovementAbbr
(EntityMovementType entityMovementType) Returns the name of the type of movement used.getMovementString
(EntityMovementType entityMovementType) Returns the name of the type of movement used.int
int
getNCrew()
int
int
int
int
int[]
int
Used to determine modifier for landing; different for Aero and LAM.int
int
int
getOppositeLocation
(int loc) what location is opposite the given oneint
int
getOSI()
int
int
int
double
Returns a multiplier that combines multiplicative construction cost modifiers for this Entity.int
int
int
getRunMP
(MPCalculationSetting mpCalculationSetting) int
int
getSI()
int
Used to determine the draw priority of different Entity subclasses.getStealthModifier
(int range, Entity ae) Determine the stealth modifier for firing at this unit from the given range.int
double
Used by SmallCraft and Jumpship and their child classes.int
Deprecated, for removal: This API element is subject to removal in a future version.No indicated uses.int
getThresh
(int loc) int
Deprecated, for removal: This API element is subject to removal in a future version.no indicated uses.int
Gets the location that excess damage transfers toint
int
int
getWalkMP
(MPCalculationSetting mpCalculationSetting) int
getWeaponArc
(int wn) Returns the Compute.ARC that the weapon fires into.int
Iterate through current weapons and count the number in each capital fighter location.boolean
boolean
hasCase()
Returns whether there is CASE anywhere on thisEntity
.boolean
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
Deprecated, for removal: This API element is subject to removal in a future version.No indicated usesboolean
boolean
hasRearArmor
(int loc) Does this location have rear armor?int
Used to for cost calculations.void
increaseUsedInternalBombs
(int b) Increase count of internal bombs used this turn.void
initializeSI
(int val) Deprecated.usesetOSI(int)
insteadvoid
initializeThresh
(int loc) boolean
isAero()
Returns true when this object uses or can use aerospace movement.boolean
A method to determine if an aero has suffered 3 sensor hits.boolean
boolean
isBomber()
Fighters may carry external ordnance; Other Aerospace units with cargo bays and the Internal Bomb Bay quirk may carry bombs internally.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
Intended for large craft.boolean
boolean
Is this entity shut down or is the crew unconscious?boolean
isLocationProhibited
(Coords c, int currElevation) boolean
Determines if the pilot has the Nightwalker SPAboolean
Checks if the unit is hardened against nuclear strikes.boolean
boolean
boolean
boolean
boolean
boolean
Determine if the unit can be repaired, or only harvested for spares.boolean
isRolled()
boolean
isSecondaryArcWeapon
(int weaponId) Returns true if this weapon fires into the secondary facing arc.boolean
Returns true when this object has the distinction between aerodyne and spheroid, i.e.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
isSTOL()
boolean
isValidSecondaryFacing
(int n) Can this entity torso/turret twist the given direction?boolean
isVSTOL()
int
Returns the number of locations in the entityvoid
newRound
(int roundNumber) Start a new rounddouble
Some primitive aerospace units have their fuel efficiency reduced by a factor based on construction year.int
reduceMPByBombLoad
(int t) void
Deprecated, for removal: This API element is subject to removal in a future version.No indicated uses.void
removeMarine
(UUID personId) Deprecated, for removal: This API element is subject to removal in a future version.No indicated uses.void
void
rollHitLocation
(int table, int side) Rolls up a hit locationrollHitLocation
(int table, int side, int aimedLocation, AimingMode aimingMode, int cover) Rolls up a hit locationvoid
setAccDecNow
(boolean b) void
setAccLast
(boolean b) void
setAltLoss
(int i) void
setAltLossThisRound
(int i) void
setArmorType
(int armType) void
setArmorType
(int armType, boolean addMount) void
setAutoEject
(boolean autoEject) void
setAvionicsHits
(int hits) void
setCapArmor
(int i) void
setCICHits
(int hits) void
setCockpitType
(int type) void
setCondEjectAmmo
(boolean condEjectAmmo) Used by Conditional Auto Ejection - will we eject when an ammo explosion is triggered?void
setCondEjectFuel
(boolean condEjectFuel) Used by Conditional Auto Ejection - will we eject when a fuel explosion is triggered?void
setCondEjectSIDest
(boolean condEjectSIDest) Used by Conditional Auto Ejection - will we eject when structural integrity is reduced to 0?void
setCritThresh
(boolean b) void
setCurrentDamage
(int i) void
setCurrentFuel
(int gas) void
setCurrentVelocity
(int velocity) void
setDesignType
(int design) Sets the unit as either a civilian or military designvoid
setDestroyed
(boolean destroyed) void
setECCMRoll
(int i) void
setEjecting
(boolean ejecting) Changes the ejecting flag when the order to abandon ship is givenvoid
void
setEngineHits
(int hits) void
setEnginesLostRound
(int enginesLostRound) Set round that engines were completely destroyed; needed for crash-landing checkvoid
setExtBombChoices
(int[] bc) Sets the bomb type selections for external mounts.void
setFailedManeuver
(boolean b) void
setFCSHits
(int hits) void
setFuel
(int gas) Sets the number of fuel points.void
setFuelTankHit
(boolean value) void
setFuelTonnage
(double fuelTons) Set number of fuel points based on fuel tonnage.void
setGearHit
(boolean hit) void
setHeatSinks
(int hs) void
setHeatType
(int heatSinkType) void
setIgnoredCrewHits
(int hits) void
setIntBombChoices
(int[] bc) Sets the bomb type selections prior to deployment.void
setLaunchedEscapePods
(int n) Updates the total number of escape pods launched so farvoid
setLaunchedLifeBoats
(int n) Updates the total number of lifeboats launched so farvoid
setLeftThrustHits
(int hits) void
setLifeSupport
(boolean b) void
setNextVelocity
(int velocity) void
setOHeatSinks
(int hs) void
setOmni
(boolean omni) void
setOSI
(int si) Set the starting Structural Integrity of this unit.void
setOutControl
(boolean outOfControl) void
setOutCtrlHeat
(boolean outOfControlHeat) void
setPodHeatSinks
(int hs) void
setPotCrit
(int crit) void
setRandomMove
(boolean randomMove) void
setRightThrustHits
(int hits) void
setRolled
(boolean roll) void
setSensorHits
(int hits) void
setSI
(int si) void
setSpheroid
(boolean b) void
setStraightMoves
(int i) void
setThresh
(int val, int loc) void
setUsedInternalBombs
(int b) Set count of internal bombs used; this is used to reset, revert, or increase count of internal bombs a unit has dropped during a turn.void
setVSTOL
(boolean b) void
void
setWingsHit
(boolean b) boolean
shouldMoveBackHex
(Aero other) Deprecated, for removal: This API element is subject to removal in a future version.No indicated uses.int
sideTableRam
(Coords src) Used to determine net velocity of ramming attackboolean
Used to identify an target that tracks heat buildup (Meks, ASFs, and small craft).void
A method to add/remove sensors that only work in space as we transition in and out of an atmosphereGenerates a vector containing reports on all useful information about this entity.boolean
Methods inherited from class megamek.common.Entity
addAttackedByThisTurn, addBeenDetectedBy, addBeenSeenBy, addBomb, addBomb, addConditionBonuses, addCoolantFailureAmount, addCritical, addCritical, addCritical, addEquipment, 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, antiTSMVulnerable, applyDamage, applyGravityEffectsOnMP, armorStringFor, assignAMS, assignTMAMS, assignWeaponQuirk, attachINarcPod, attachNarcPod, braceLocation, C3MasterIs, calcElevation, calcElevation, calcElevation, calculateBattleValue, calculateBattleValue, calculateBattleValue, calculateBattleValue, calculateFreeC3MNodes, calculateFreeC3Nodes, canActivateBloodStalker, canAssaultDrop, canAssist, canBrace, canEscape, canFall, canFall, canFireWeapon, canFlee, canFlipArms, canGoDown, canGoHullDown, canGoUp, canLayMine, canLoad, canonUnitWithInvalidBuild, canPickupGroundObject, 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, checkUnstall, 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, defaultCrewType, deployOffBoard, destroy, destroyLocation, destroyLocation, destroyOneSearchlight, destroyRetractableBlade, disconnectUnit, doBattleValueCalculation, doCheckEngineStallRoll, dropGroundObject, dropGroundObject, dropGroundObjects, elevationOccupied, elevationOccupied, endOfTurnCargoInteraction, entityIsQuad, equals, extendBlade, factionTechLevel, findTargetedDisplacement, firstArmorIndex, fixElevation, formatHeat, gameOptions, generalName, generateDisplayName, generateShortName, getActiveSensor, getActiveSubEntities, getActiveUMUCount, getActiveVibrobladeHeat, getActiveVibrobladeHeat, getAllGyroCodeName, getAllowedPhysicalAttacks, getAllTowedUnits, getAllUMUCount, getAlreadyTwisted, getAlternateCost, getAltitude, getAmmo, getAmmo, getAmmo, getAnyTypeMaxJumpMP, getArmedMPBoosters, getArmor, getArmor, getArmor, getArmoredComponentTechAdvancement, getArmorForReal, getArmorForReal, getArmorString, getArmorString, getArmorTechLevel, getArmorTechRating, getArmorType, getArmorWeight, getArmorWeight, getArmsFlipped, getASEWAffected, getAttackedByThisTurn, getBAPRange, getBARRating, getBase64Icon, getBaseAvailability, getBaseChassisFireConWeight, getBaseChassisValue, getBaseEngineValue, getBasePilotingRoll, getBasePilotingRoll, getBay, getBayByAmmo, getBayById, getBayLoadedUnitIds, getBayPersonnel, getBlockedFiringLocations, getBloodStalkerTarget, getBlueShieldRounds, 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, getCoolantFailureAmount, getCost, getCrew, getCritical, getCriticalSlots, getCustomWeaponOrder, getCustomWeaponOrder, getDamagedCriticals, getDamageLevel, getDamageLevel, getDamageReductionFromModularArmor, getDefaultPickupLocations, getDeployRound, getDisplacementAttack, getDisplayName, getDistinctCarriedObjects, getDockingCollars, getDocks, getDocks, getDroppableUnits, getDuplicateMarker, getEarliestTechDate, getECCMInfo, getECMInfo, getECMStrength, 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, getFreeC3iUUID, getFreeNC3UUID, getFullChassis, getGame, getGaveKillCredit, getGenericBattleValue, getGhostTargetOverride, getGhostTargetRoll, getGhostTargetRollMoS, getGoodCriticals, getGrappled, getGrappleSide, getGroundAttackedByThisTurn, getGyroType, getHeading, getHeat, getHeatCapacity, getHeatFiringModifier, getHeatInArc, getHeatMPReduction, getHeight, getHiddenActivationPhase, getHitchById, getHitchCarrying, getHitchLocations, getHitCriticals, getHittableCriticals, getHQIniBonus, getIcon, getId, getIMPMoveMod, getINarcPodsAttached, getIndividualWeaponList, getInitialBV, getInternal, getInternal, getInternalBombLoadout, getInternalForReal, getInternalString, getIntroductionDate, getIntroductionDate, getInvalidSourceBuildReasons, getIsJumpingNow, getJumpHeat, getJumpMP, getJumpMP, getJumpMPWithTerrain, getJumpType, getKillerId, getKillNumber, getKills, getLabArmorTonnage, getLabTotalArmorPoints, getLastTarget, getLastTargetDisplayName, getLaunchableDropships, getLaunchableFighters, getLaunchableSmallCraft, getLoadedKeepers, getLoadedTrailers, getLoadedUnits, getLocationAbbr, getLocationAbbr, getLocationFromAbbr, getLocationName, getLocationName, getLocationStatus, getLongRangeModifier, getLOSRangeModifier, getManualBV, getMASC, getMASCTarget, getMASCTurns, getMaxElevationDown, getMaxElevationDown, getMaxWeaponRange, getMaxWeaponRange, getMechanicalJumpBoosterMP, getMechanicalJumpBoosterMP, getMediumRangeModifier, getMisc, getMisc, getMiscEquipment, getMixedTechAdvancement, getModel, getMotiveSideMod, getMovedBackwards, getMovementBeforeSkidPSRModifier, getMovementMode, getMovementModeAsString, getMPBoosters, getMPBoosters, getMpUsedLastRound, getMulId, getNC3NextUUIDAsString, getNewRoundNovaNetworkString, getNextSensor, getNumberOfCriticals, getNumberOfCriticals, getNumberOfCriticals, getNumberOfCriticals, getNumberOfShields, getOArmor, 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, getRecoveryTurn, getReintroductionDate, getReintroductionDate, getRemovalCondition, getRetreatedDirection, getRole, getRunHeat, getRunMP, getRunMPasString, getRunMPwithoutMASC, getRunningGravityLimit, getsAutoExternalSearchlight, getSecondaryFacing, getSecondaryPositions, getSelfDestructedThisTurn, getSelfDestructing, getSelfDestructInitiated, getSensorCheck, getSensorContacts, getSensors, getShortName, getShortNameRaw, getShortRangeModifier, getSource, getSpotTargetId, getSprintHeat, getSprintMP, getSprintMP, getSprintMPwithOneMASC, getSprintMPwithoutMASC, getStandingHeat, getStartingAnyNWx, getStartingAnyNWx, getStartingAnyNWy, getStartingAnyNWy, getStartingAnySEx, getStartingAnySEx, getStartingAnySEy, getStartingAnySEy, getStartingOffset, getStartingOffset, getStartingPos, getStartingPos, getStartingWidth, getStartingWidth, getStaticTechLevel, getStrength, getStructuralTechRating, getStructureTechLevel, getStructureType, getSubEntities, getSuperCharger, getSuperchargerTarget, getSuperchargerTurns, getSwarmAttackerId, getSwarmTargetId, getTaggedBy, getTargetBay, getTargetedBySwarm, getTargetType, getTaserFeedBackRounds, getTaserInterference, getTaserInterferenceHeat, getTaserInterferenceRounds, getTaserShutdownRounds, 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, getWalkHeat, getWalkMP, getWeapon, getWeaponBayList, getWeaponGroupList, getWeaponList, getWeapons, getWeaponSortOrder, getWeight, getWeightClass, getWeightClassName, getWhoCanDetect, getWhoCanSee, getYear, hasAbility, hasAbility, hasActivatedRadicalHS, hasActiveBlueShield, hasActiveECCM, hasActiveECM, hasActiveECM, hasActiveEiCockpit, hasActiveNovaCEWS, hasActiveShield, hasActiveShield, hasAimModeTargComp, hasAnyC3System, hasAnyTypeNarcPodsAttached, hasArcFired, hasArmoredChassis, hasBAP, hasBAP, hasBARArmor, hasBattleArmorHandles, hasBoostedC3, hasC3, hasC3i, hasC3M, hasC3MM, hasC3S, hasCASEII, hasCASEII, hasDamagedRHS, hasDetectedEntity, hasDisplacementAttack, hasDroneOs, hasECM, hasEiCockpit, hasEmbeddedIcon, hasEngine, hasEnvironmentalSealing, hasETypeFlag, hasExternalSearchlight, hasFallen, hasFiredTsemp, hasFiringSolutionFor, hasFleeZone, hasFlotationHull, hasFunctionalArmAES, hasFunctionalLegAES, hasGhostTargets, hasHardenedArmor, hasHarJelIn, hashCode, hasHipCrit, 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, height, hitAllCriticals, incrementMASCAndSuperchargerLevels, initializeArmor, initializeInternal, initMilitary, initTechAdvancement, isActive, isActive, isAirborne, isAirborneAeroOnGroundMap, isAirborneVTOLorWIGE, isAssaultDropInProgress, isAttackingThisTurn, isBATaserShutdown, isBoardProhibited, isBracing, isC3CompanyCommander, isC3IndependentMaster, isCanon, isCapitalFighter, isCapitalFighter, isCapitalScale, isCaptured, isCarcass, isCarefulStand, isChainWhipGrappled, isChameleonShieldActive, isChameleonShieldOn, isCharging, isClan, isClanArmor, isClearingMinefield, isCommander, isConvertingNow, isDeployed, isDesignValid, isDestroyed, isDetectedByEnemy, isDone, isDoomed, isDropping, isEjectionPossible, isElevationValid, isEligibleFor, isEligibleForArtyAutoHitHexes, isEligibleForFiring, isEligibleForMovement, isEligibleForOffboard, isEligibleForPavementOrRoadBonus, isEligibleForPhysical, isEligibleForTargetingPhase, isEnemyOf, isEvading, isEverSeenByEnemy, isFindingClub, isFiredTsempThisTurn, isGrappleAttacker, isGrappledThisRound, isGyroDestroyed, isHardenedArmorDamaged, isHidden, isHullDown, isIlluminated, isImmobile, isImmobileForJump, isINarcedBy, isINarcedWith, isIntroLevel, isJumpingWithMechanicalBoosters, isLargeCraft, isLayingMines, isLoadableThisTurn, isLocationBad, isLocationBlownOff, isLocationBlownOffThisPhase, isLocationDeadly, isLocationDoomed, isLocationProhibited, isLocationTrulyDestroyed, isMakingDfa, isMakingVTOLGroundAttack, isManualShutdown, isMASCUsed, isMilitary, isMixedTech, isNarcedBy, isNaval, isNOE, isNullSigActive, isNullSigOn, isOffBoard, isOffBoardObserved, isOmni, isOnAtmosphericGroundMap, isPartOfFighterSquadron, isPermanentlyImmobilized, isPodMountedTransport, isPowerReverse, isProne, isPushing, isRamming, isReckless, isSalvage, isSelectableThisTurn, isSensorReturn, isShutDown, isShutDownThisPhase, isSpaceborne, isSpotting, isStalled, isStartupThisPhase, isStuck, isSufferingEMI, isSuperchargerUsed, isSuperHeavy, isSurfaceNaval, isTargetable, isTargetOfDisplacementAttack, isTractor, isTrailer, isTrapped, isUnderwater, isUnjammingRAC, isUnloadedThisTurn, isUnofficial, isUsingManAce, isUsingSearchlight, isVisibleToEnemy, isVoidSigActive, isVoidSigOn, isWeaponBlockedAt, isWeaponBlockedByTowing, isWeaponValidForPhase, isWeapOrderChanged, itemOppositeTech, joinLocationAbbr, load, load, load, load, loadAllWeapons, loadDefaultCustomWeaponOrder, loadedUnitsHaveActiveECM, loadQuirks, loadWeapon, loadWeapon, loadWeaponWithSameAmmo, loadWeaponWithSameAmmo, locationHasCase, locationIsLeg, madePointblankShot, maxGroundObjectTonnage, modifyPhysicalDamageForMeleeSpecialist, needsRollToStand, newPhase, newRoundNovaNetSwitch, nextConversionMode, onSameC3NetworkAs, onSameC3NetworkAs, passedOver, passedThrough, passedThroughPrevious, passedWithin, performManualShutdown, performManualStartup, pickUp, pickupGroundObject, postProcessFacingChange, recalculateTechAdvancement, recover, refreshLocations, relHeight, reloadEmptyWeapons, removeAllINarcPods, removeAllTransporters, removeCriticals, removeFiringSolution, removeFleeZone, removeINarcPod, removeMisc, removePartialCoverHits, removeSensorContact, removeTowedUnit, removeTransporter, resetBayDoors, resetBays, resetBombAttacks, resetCoolantFailureAmount, resetFiringArcs, resetTransporter, restore, rollMovementInBuilding, scmCritStateCount, setAlreadyTwisted, setAltitude, setArcFired, setArmor, setArmor, setArmor, setArmorTechLevel, setArmorTechLevel, setArmorTechRating, setArmorTonnage, 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, setDetectedByEnemy, setDisplacementAttack, setDisplayName, setDone, setDoomed, setDuplicateMarker, setElevation, setEMI, setEngineTechRating, setEvading, setEverSeenByEnemy, setExternalId, setExternalIdAsString, setExternalSearchlight, setFacing, setFallen, setFindingClub, setFiredTsempThisTurn, setFleeZone, setForceId, setForceString, setGame, setGameOptions, setGrappled, setGrappledThisRound, setGrappleSide, setHardenedArmorDamaged, 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, 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, isAerodyne, isAerospace, isAerospaceFighter, isAerospaceSV, isBattleArmor, isBattleMek, isCarryableObject, isCombatVehicle, isConventionalFighter, isConventionalInfantry, isDropShip, isFighter, isFixedWingSupport, isGround, isHandheldWeapon, isIndustrialMek, isInfantry, isJumpShip, isLargeAerospace, isMek, isObjectiveMarker, isProtoMek, isQuadMek, isSingleUnit, isSmallCraft, isSpaceStation, 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.IAero
canLandHorizontally, canLandVertically, canTakeOffHorizontally, canTakeOffVertically, checkDown, checkHover, checkLanding, checkManeuver, checkRolls, checkStall, checkThrustSI, checkThrustSITotal, checkVelocityDouble, checkVerticalTakeOff, getAltitude, getFuelUsed, getLandingCoords, getLandingLength, getTakeOffLength, hasRoomForHorizontalLanding, hasRoomForHorizontalTakeOff, hasRoomForVerticalLanding, isAirborne, isSpaceborne, land, liftOff, requiresFuel, rollArcs, updateWeaponGroups, useFuel
Methods inherited from interface megamek.common.IBomber
applyBombs, clearBombs, getBombChoices, getBombPoints, getBombPoints, getBombs, getExternalBombPoints, getInternalBombsDamageTotal, getMaxExtBombSize, getMaxIntBombSize, getVTOLBombTarget, isVTOLBombing, setBombChoices, setVTOLBombTarget
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
isHexBeingBombed
Methods inherited from interface megamek.common.Transporter
canTow, getNumberLoadedThisTurn, getNumberUnloadedThisTurn, getType, hardpointCost
-
Field Details
-
LOC_NOSE
public static final int LOC_NOSE- See Also:
-
LOC_LWING
public static final int LOC_LWING- See Also:
-
LOC_RWING
public static final int LOC_RWING- See Also:
-
LOC_AFT
public static final int LOC_AFT- See Also:
-
LOC_WINGS
public static final int LOC_WINGSLocation used for capital fighters and squadrons- See Also:
-
LOC_FUSELAGE
public static final int LOC_FUSELAGELocation used for equipment not allocated to a firing arc- See Also:
-
RAM_TOWARD_DIR
public static final int RAM_TOWARD_DIR- See Also:
-
RAM_TOWARD_OBL
public static final int RAM_TOWARD_OBL- See Also:
-
RAM_AWAY_OBL
public static final int RAM_AWAY_OBL- See Also:
-
RAM_AWAY_DIR
public static final int RAM_AWAY_DIR- See Also:
-
HEAT_SINGLE
public static final int HEAT_SINGLE- See Also:
-
HEAT_DOUBLE
public static final int HEAT_DOUBLE- See Also:
-
COCKPIT_STANDARD
public static final int COCKPIT_STANDARD- See Also:
-
COCKPIT_SMALL
public static final int COCKPIT_SMALL- See Also:
-
COCKPIT_COMMAND_CONSOLE
public static final int COCKPIT_COMMAND_CONSOLE- See Also:
-
COCKPIT_PRIMITIVE
public static final int COCKPIT_PRIMITIVE- See Also:
-
COCKPIT_STRING
-
COCKPIT_SHORT_STRING
Deprecated, for removal: This API element is subject to removal in a future version.No indicated uses. -
CRIT_NONE
public static final int CRIT_NONE- See Also:
-
CRIT_CREW
public static final int CRIT_CREW- See Also:
-
CRIT_FCS
public static final int CRIT_FCS- See Also:
-
CRIT_WEAPON
public static final int CRIT_WEAPON- See Also:
-
CRIT_CONTROL
public static final int CRIT_CONTROL- See Also:
-
CRIT_SENSOR
public static final int CRIT_SENSOR- See Also:
-
CRIT_BOMB
public static final int CRIT_BOMB- See Also:
-
CRIT_ENGINE
public static final int CRIT_ENGINE- See Also:
-
CRIT_FUEL_TANK
public static final int CRIT_FUEL_TANK- See Also:
-
CRIT_AVIONICS
public static final int CRIT_AVIONICS- See Also:
-
CRIT_GEAR
public static final int CRIT_GEAR- See Also:
-
CRIT_HEATSINK
public static final int CRIT_HEATSINK- See Also:
-
CRIT_CARGO
public static final int CRIT_CARGO- See Also:
-
CRIT_DOCK_COLLAR
public static final int CRIT_DOCK_COLLAR- See Also:
-
CRIT_DOOR
public static final int CRIT_DOOR- See Also:
-
CRIT_KF_BOOM
public static final int CRIT_KF_BOOM- See Also:
-
CRIT_LIFE_SUPPORT
public static final int CRIT_LIFE_SUPPORT- See Also:
-
CRIT_LEFT_THRUSTER
public static final int CRIT_LEFT_THRUSTER- See Also:
-
CRIT_RIGHT_THRUSTER
public static final int CRIT_RIGHT_THRUSTER- See Also:
-
CRIT_CIC
public static final int CRIT_CIC- See Also:
-
CRIT_KF_DRIVE
public static final int CRIT_KF_DRIVE- See Also:
-
CRIT_GRAV_DECK
public static final int CRIT_GRAV_DECK- See Also:
-
CRIT_WEAPON_BROAD
public static final int CRIT_WEAPON_BROAD- See Also:
-
AERO_EFFECTIVE_ELEVATION
public static final int AERO_EFFECTIVE_ELEVATION- See Also:
-
damThresh
protected int[] damThresh -
maxIntBombPoints
protected int maxIntBombPoints -
maxExtBombPoints
protected int maxExtBombPoints -
intBombChoices
protected int[] intBombChoices -
extBombChoices
protected int[] extBombChoices -
usedInternalBombs
protected int usedInternalBombs -
TA_ASF
-
TA_ASF_PRIMITIVE
-
COCKPIT_TA
-
CIVILIAN
public static final int CIVILIAN- See Also:
-
MILITARY
public static final int MILITARY- See Also:
-
designType
protected int designType
-
-
Constructor Details
-
Aero
public Aero()
-
-
Method Details
-
getLocationAbbrs
- Specified by:
getLocationAbbrs
in classEntity
-
getLocationNames
- Specified by:
getLocationNames
in classEntity
-
getUnitType
public int getUnitType()- Specified by:
getUnitType
in classEntity
- See Also:
-
getConstructionTechAdvancement
Description copied from class:Entity
return - the base construction option tech advancement- Specified by:
getConstructionTechAdvancement
in classEntity
-
getCockpitTechAdvancement
-
getCockpitTechAdvancement
-
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
-
setDesignType
public void setDesignType(int design) Sets the unit as either a civilian or military design -
setDestroyed
public void setDestroyed(boolean destroyed) - Overrides:
setDestroyed
in classEntity
-
getDesignType
public int getDesignType()Returns the unit's design type -
isAeroSensorDestroyed
public boolean isAeroSensorDestroyed()A method to determine if an aero has suffered 3 sensor hits. When double-blind is on, this affects both standard visibility and sensor rolls- Overrides:
isAeroSensorDestroyed
in classEntity
-
getWalkMP
-
getCurrentThrust
public int getCurrentThrust()- Specified by:
getCurrentThrust
in interfaceIAero
- Returns:
- same as
getWalkMP(megamek.common.MPCalculationSetting)
, but does not divide by 2 when grounded
-
locations
public int locations()Returns the number of locations in the entity -
getBodyLocation
public int getBodyLocation()Description copied from class:Entity
Determines where to place equipment that does not require a specific location. What this means varies byEntity
type.- Overrides:
getBodyLocation
in classEntity
- Returns:
- The location to place equipment that is not required to be assigned a location, defaulting to Entity.LOC_NONE for unit types that do not have such a location.
-
canChangeSecondaryFacing
public boolean canChangeSecondaryFacing()Description copied from class:Entity
Can this entity change secondary facing at all?- Specified by:
canChangeSecondaryFacing
in classEntity
-
isValidSecondaryFacing
public boolean isValidSecondaryFacing(int n) Description copied from class:Entity
Can this entity torso/turret twist the given direction?- Specified by:
isValidSecondaryFacing
in classEntity
-
clipSecondaryFacing
public int clipSecondaryFacing(int n) Aerospace really can't torso twist?- Specified by:
clipSecondaryFacing
in classEntity
- Returns:
- the closest valid secondary facing.
-
isOutControlTotal
public boolean isOutControlTotal()- Specified by:
isOutControlTotal
in interfaceIAero
-
isOutControl
public boolean isOutControl()- Specified by:
isOutControl
in interfaceIAero
-
isOutCtrlHeat
public boolean isOutCtrlHeat()- Specified by:
isOutCtrlHeat
in interfaceIAero
-
isRandomMove
public boolean isRandomMove()- Specified by:
isRandomMove
in interfaceIAero
-
didAccLast
public boolean didAccLast()- Specified by:
didAccLast
in interfaceIAero
-
hasLifeSupport
public boolean hasLifeSupport()- Specified by:
hasLifeSupport
in interfaceIAero
-
setLifeSupport
public void setLifeSupport(boolean b) -
isRolled
public boolean isRolled() -
setOutControl
public void setOutControl(boolean outOfControl) - Specified by:
setOutControl
in interfaceIAero
-
setOutCtrlHeat
public void setOutCtrlHeat(boolean outOfControlHeat) - Specified by:
setOutCtrlHeat
in interfaceIAero
-
setRandomMove
public void setRandomMove(boolean randomMove) - Specified by:
setRandomMove
in interfaceIAero
-
setRolled
public void setRolled(boolean roll) -
setAccLast
public void setAccLast(boolean b) - Specified by:
setAccLast
in interfaceIAero
-
getMaxBombPoints
public int getMaxBombPoints()- Specified by:
getMaxBombPoints
in interfaceIBomber
- Returns:
- The total number of bomb points that the bomber can carry.
-
getMaxIntBombPoints
public int getMaxIntBombPoints()- Specified by:
getMaxIntBombPoints
in interfaceIBomber
- Returns:
- maximum number of bomb points this bomber can mount internally
-
getMaxExtBombPoints
public int getMaxExtBombPoints()- Specified by:
getMaxExtBombPoints
in interfaceIBomber
- Returns:
- maximum number of bomb points this bomber can mount externally
-
autoSetMaxBombPoints
public void autoSetMaxBombPoints() -
getIntBombChoices
public int[] getIntBombChoices()- Specified by:
getIntBombChoices
in interfaceIBomber
- Returns:
- The number of each internally-mounted bomb type that was selected prior to deployment
-
setIntBombChoices
public void setIntBombChoices(int[] bc) Description copied from interface:IBomber
Sets the bomb type selections prior to deployment.- Specified by:
setIntBombChoices
in interfaceIBomber
- Parameters:
bc
- An array with the count of each bomb type as the value of the bomb type's index
-
getExtBombChoices
public int[] getExtBombChoices()- Specified by:
getExtBombChoices
in interfaceIBomber
- Returns:
- The number of each externally-mounted bomb type that was selected prior to deployment
-
setExtBombChoices
public void setExtBombChoices(int[] bc) Description copied from interface:IBomber
Sets the bomb type selections for external mounts.- Specified by:
setExtBombChoices
in interfaceIBomber
- Parameters:
bc
- An array with the count of each bomb type as the value of the bomb type's index
-
clearBombChoices
public void clearBombChoices()Description copied from interface:IBomber
Sets the count of each bomb to zero- Specified by:
clearBombChoices
in interfaceIBomber
-
reduceMPByBombLoad
public int reduceMPByBombLoad(int t) - Specified by:
reduceMPByBombLoad
in interfaceIBomber
- Returns:
- The calculates movement factoring in the load of bombs currently on unit, t is current movement
-
setUsedInternalBombs
public void setUsedInternalBombs(int b) Description copied from interface:IBomber
Set count of internal bombs used; this is used to reset, revert, or increase count of internal bombs a unit has dropped during a turn.- Specified by:
setUsedInternalBombs
in interfaceIBomber
-
increaseUsedInternalBombs
public void increaseUsedInternalBombs(int b) Description copied from interface:IBomber
Increase count of internal bombs used this turn.- Specified by:
increaseUsedInternalBombs
in interfaceIBomber
-
getUsedInternalBombs
public int getUsedInternalBombs()- Specified by:
getUsedInternalBombs
in interfaceIBomber
- Returns:
- the number of internal bombs used by this bomber during a turn, for IBB internal hit calculations.
-
setWhoFirst
public void setWhoFirst() -
getWhoFirst
public int getWhoFirst() -
getCurrentVelocity
public int getCurrentVelocity()- Specified by:
getCurrentVelocity
in interfaceIAero
-
setCurrentVelocity
public void setCurrentVelocity(int velocity) - Specified by:
setCurrentVelocity
in interfaceIAero
-
getNextVelocity
public int getNextVelocity()- Specified by:
getNextVelocity
in interfaceIAero
-
setNextVelocity
public void setNextVelocity(int velocity) - Specified by:
setNextVelocity
in interfaceIAero
-
getCurrentVelocityActual
public int getCurrentVelocityActual()- Specified by:
getCurrentVelocityActual
in interfaceIAero
-
getPotCrit
public int getPotCrit() -
setPotCrit
public void setPotCrit(int crit) -
getSI
public int getSI() -
getOSI
public int getOSI() -
getNoseArmor
public int getNoseArmor()Used to determine modifier for landing; different for Aero and LAM.- Specified by:
getNoseArmor
in interfaceIAero
-
getCapArmor
public int getCapArmor()- Specified by:
getCapArmor
in interfaceIAero
-
setCapArmor
public void setCapArmor(int i) - Specified by:
setCapArmor
in interfaceIAero
-
getCap0Armor
public int getCap0Armor()- Specified by:
getCap0Armor
in interfaceIAero
-
getFatalThresh
public int getFatalThresh()- Specified by:
getFatalThresh
in interfaceIAero
-
getCurrentDamage
public int getCurrentDamage()- Specified by:
getCurrentDamage
in interfaceIAero
-
setCurrentDamage
public void setCurrentDamage(int i) - Specified by:
setCurrentDamage
in interfaceIAero
-
setOSI
public void setOSI(int si) Set the starting Structural Integrity of this unit. Also sets the current SI as if bysetSI(int)
.- Parameters:
si
- The new value for SI
-
autoSetSI
public void autoSetSI() -
autoSetCapArmor
public void autoSetCapArmor()- Specified by:
autoSetCapArmor
in interfaceIAero
-
autoSetFatalThresh
public void autoSetFatalThresh()- Specified by:
autoSetFatalThresh
in interfaceIAero
-
initializeSI
Deprecated.usesetOSI(int)
instead -
setSI
public void setSI(int si) -
getSensorHits
public int getSensorHits()- Specified by:
getSensorHits
in interfaceIAero
-
setSensorHits
public void setSensorHits(int hits) -
getFCSHits
public int getFCSHits()- Specified by:
getFCSHits
in interfaceIAero
-
setFCSHits
public void setFCSHits(int hits) -
fuelTankHit
public boolean fuelTankHit() -
setFuelTankHit
public void setFuelTankHit(boolean value) -
setCICHits
public void setCICHits(int hits) -
getCICHits
public int getCICHits() -
setIgnoredCrewHits
public void setIgnoredCrewHits(int hits) -
getIgnoredCrewHits
public int getIgnoredCrewHits() -
getEngineHits
public int getEngineHits()- Specified by:
getEngineHits
in classEntity
-
setEngineHits
public void setEngineHits(int hits) -
getAvionicsHits
public int getAvionicsHits()- Specified by:
getAvionicsHits
in interfaceIAero
-
setAvionicsHits
public void setAvionicsHits(int hits) -
isGearHit
public boolean isGearHit() -
setGearHit
public void setGearHit(boolean hit) - Specified by:
setGearHit
in interfaceIAero
-
getLandingGearMod
public int getLandingGearMod(boolean vTakeoff) Modifier to landing or vertical takeoff roll for landing gear damage.- Specified by:
getLandingGearMod
in interfaceIAero
- Parameters:
vTakeoff
- true if this is for a vertical takeoff, false if for a landing- Returns:
- the control roll modifier
-
getLandingGearPartialRepairs
public int getLandingGearPartialRepairs()- Specified by:
getLandingGearPartialRepairs
in interfaceIAero
-
getAvionicsMisreplaced
public int getAvionicsMisreplaced()- Specified by:
getAvionicsMisreplaced
in interfaceIAero
-
getAvionicsMisrepaired
public int getAvionicsMisrepaired()- Specified by:
getAvionicsMisrepaired
in interfaceIAero
-
setOHeatSinks
public void setOHeatSinks(int hs) -
getOHeatSinks
public int getOHeatSinks() -
setHeatSinks
public void setHeatSinks(int hs) -
getHeatSinks
public int getHeatSinks()- Specified by:
getHeatSinks
in interfaceIAero
-
getHeatSinkHits
public int getHeatSinkHits() -
setHeatType
public void setHeatType(int heatSinkType) -
getPodHeatSinks
public int getPodHeatSinks() -
setPodHeatSinks
public void setPodHeatSinks(int hs) -
tracksHeat
public boolean tracksHeat()Description copied from interface:Targetable
Used to identify an target that tracks heat buildup (Meks, ASFs, and small craft).- Specified by:
tracksHeat
in interfaceTargetable
- Returns:
- Whether the target tracks heat buildup.
-
setLeftThrustHits
public void setLeftThrustHits(int hits) -
getLeftThrustHits
public int getLeftThrustHits()- Specified by:
getLeftThrustHits
in interfaceIAero
-
setRightThrustHits
public void setRightThrustHits(int hits) -
getRightThrustHits
public int getRightThrustHits()- Specified by:
getRightThrustHits
in interfaceIAero
-
getOriginalFuel
public int getOriginalFuel() -
getFuel
public int getFuel() -
getCurrentFuel
public int getCurrentFuel()- Specified by:
getCurrentFuel
in interfaceIAero
-
setFuel
public void setFuel(int gas) Sets the number of fuel points. -
setCurrentFuel
public void setCurrentFuel(int gas) - Specified by:
setCurrentFuel
in interfaceIAero
-
getFuelPointsPerTon
public double getFuelPointsPerTon()- Specified by:
getFuelPointsPerTon
in interfaceIAero
-
setFuelTonnage
public void setFuelTonnage(double fuelTons) Set number of fuel points based on fuel tonnage.- Specified by:
setFuelTonnage
in interfaceIAero
- Parameters:
fuelTons
- The number of tons of fuel
-
getFuelTonnage
public double getFuelTonnage()Gets the fuel for this Aero in terms of tonnage.- Specified by:
getFuelTonnage
in interfaceIAero
- Returns:
- The number of tons of fuel on this Aero.
-
getStrategicFuelUse
public double getStrategicFuelUse()Used by SmallCraft and Jumpship and their child classes.- Returns:
- The tons of fuel burned in a day at 1G using strategic movement.
-
primitiveFuelFactor
public double primitiveFuelFactor()Some primitive aerospace units have their fuel efficiency reduced by a factor based on construction year.- Returns:
- The primitive fuel factor for the build year.
-
getHeatType
public int getHeatType() -
wasCritThresh
public boolean wasCritThresh()- Specified by:
wasCritThresh
in interfaceIAero
-
setCritThresh
public void setCritThresh(boolean b) - Specified by:
setCritThresh
in interfaceIAero
-
isImmobile
public boolean isImmobile()Description copied from class:Entity
Is this entity shut down or is the crew unconscious?- Specified by:
isImmobile
in interfaceTargetable
- Overrides:
isImmobile
in classEntity
- Returns:
- true if the target is immobile (-4 to hit)
-
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
-
getMovementString
Returns the name of the type of movement used. This is tank-specific.- Specified by:
getMovementString
in classEntity
-
getMovementAbbr
Returns the name of the type of movement used. This is tank-specific.- Specified by:
getMovementAbbr
in classEntity
-
hasRearArmor
public boolean hasRearArmor(int loc) Description copied from class:Entity
Does this location have rear armor?- Specified by:
hasRearArmor
in classEntity
-
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
-
rollHitLocation
public HitData rollHitLocation(int table, int side, int aimedLocation, AimingMode aimingMode, int cover) Rolls up a hit location- Specified by:
rollHitLocation
in classEntity
-
rollHitLocation
Description copied from class:Entity
Rolls up a hit location- Specified by:
rollHitLocation
in classEntity
-
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
-
getBVTypeModifier
public double getBVTypeModifier()Not used directly but is overwritten in 5 other classes.- Returns:
- BV Type Modifier.
-
addEntityBonuses
Description copied from class:Entity
Add in any piloting skill mods- Specified by:
addEntityBonuses
in classEntity
-
victoryReport
Description copied from class:Entity
Generates a vector containing reports on all useful information about this entity.- Specified by:
victoryReport
in classEntity
-
getNoOfSlots
public int[] getNoOfSlots()- Specified by:
getNoOfSlots
in classEntity
-
getRunMP
-
getHeatCapacity
public int getHeatCapacity(boolean includeRadicalHeatSink) - Specified by:
getHeatCapacity
in classEntity
-
getHeatCapacityWithWater
public int getHeatCapacityWithWater()Description copied from class:Entity
Returns the amount of heat that the entity can sink each turn, factoring in whether the entity is standing in water.- Specified by:
getHeatCapacityWithWater
in classEntity
-
getEngineCritHeat
public int getEngineCritHeat()Description copied from class:Entity
Returns extra heat generated by engine crits- Specified by:
getEngineCritHeat
in classEntity
-
autoSetInternal
public void autoSetInternal()Description copied from class:Entity
Sets the internal structure for every location to appropriate undamaged values for the unit and location.- Specified by:
autoSetInternal
in classEntity
-
autoSetThresh
public void autoSetThresh() -
setThresh
public void setThresh(int val, int loc) -
initializeThresh
public void initializeThresh(int loc) -
getThresh
public int getThresh(int loc) -
getHighestThresh
public int getHighestThresh()- Specified by:
getHighestThresh
in interfaceIAero
-
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() -
canRam
public boolean canRam() -
getSuspensionFactor
Deprecated, for removal: This API element is subject to removal in a future version.No indicated uses.- Returns:
- suspension factor of vehicle
-
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.
-
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
-
setEngine
-
getInternalRemainingPercent
public double getInternalRemainingPercent()Returns the percent of the SI remaining- Overrides:
getInternalRemainingPercent
in classEntity
-
calculateWalk
protected int calculateWalk() -
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.
-
addEquipment
public void addEquipment(Mounted<?> mounted, int loc, boolean rearMounted) throws LocationFullException - Overrides:
addEquipment
in classEntity
- Throws:
LocationFullException
-
getCriticalEffect
public int getCriticalEffect(int roll, int target) get the type of critical caused by a critical roll, taking account of existing damage- Parameters:
roll
- the final dice rolltarget
- the hit location- Returns:
- a critical type
-
setOmni
public void setOmni(boolean omni) -
addClanCase
public void addClanCase()Description copied from class: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
-
hasCase
public boolean hasCase()Description copied from class:Entity
Returns whether there is CASE anywhere on thisEntity
. -
sideTableRam
Used to determine net velocity of ramming attack- Overrides:
sideTableRam
in classEntity
-
chooseSideRam
-
getMaxEngineHits
public int getMaxEngineHits() -
getMaxElevationChange
public int getMaxElevationChange()Description copied from class:Entity
The maximum elevation change the entity can cross- Specified by:
getMaxElevationChange
in classEntity
-
isStealthActive
public boolean isStealthActive()Determine if this unit has an active and working stealth system. (stealth can be active and not working when under ECCM)Subclasses are encouraged to override this method.
- Overrides:
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)Subclasses 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.
-
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.Subclasses 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.
-
setArmorType
public void setArmorType(int armType) - Overrides:
setArmorType
in classEntity
-
setArmorType
public void setArmorType(int armType, boolean addMount) -
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.
-
isNightwalker
public boolean isNightwalker()Description copied from class:Entity
Determines if the pilot has the Nightwalker SPA- Overrides:
isNightwalker
in classEntity
- Returns:
- true when pilots have the SPA and are not in a flying vehicle.
-
isSpheroid
public boolean isSpheroid()Description copied from interface:BTObject
Returns true when this object has the distinction between aerodyne and spheroid, i.e. if it is a DropShip or SmallCraft and it is spheroid, false for any other type of object. Returns false for any type of unit group and for any unit that does not have the distinction.- Specified by:
isSpheroid
in interfaceBTObject
- Specified by:
isSpheroid
in interfaceIAero
- Returns:
- True when this is object is spheroid
-
setSpheroid
public void setSpheroid(boolean b) -
getStraightMoves
public int getStraightMoves()- Specified by:
getStraightMoves
in interfaceIAero
-
setStraightMoves
public void setStraightMoves(int i) - Specified by:
setStraightMoves
in interfaceIAero
-
isVSTOL
public boolean isVSTOL() -
isSTOL
public boolean isSTOL() -
setVSTOL
public void setVSTOL(boolean b) -
didFailManeuver
public boolean didFailManeuver()- Specified by:
didFailManeuver
in interfaceIAero
-
setFailedManeuver
public void setFailedManeuver(boolean b) - Specified by:
setFailedManeuver
in interfaceIAero
-
setAccDecNow
public void setAccDecNow(boolean b) - Specified by:
setAccDecNow
in interfaceIAero
-
didAccDecNow
public boolean didAccDecNow()- Specified by:
didAccDecNow
in interfaceIAero
-
getTotalCommGearTons
public int getTotalCommGearTons()- Specified by:
getTotalCommGearTons
in classEntity
- Returns:
- the total tonnage of communications gear in this entity
-
getBadCriticals
public int getBadCriticals(int type, int index, int loc) The number of critical slots that are destroyed in the component.- Overrides:
getBadCriticals
in classEntity
-
getCockpitType
public int getCockpitType() -
setCockpitType
public void setCockpitType(int type) -
getCockpitTypeString
-
getCockpitTypeString
-
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.
-
getArmorRemainingPercent
public double getArmorRemainingPercent()Description copied from class:Entity
Returns the percent of the armor remaining- Overrides:
getArmorRemainingPercent
in classEntity
-
areWingsHit
public boolean areWingsHit()keep track of whether the wings have suffered a weapon critical hit -
setWingsHit
public void setWingsHit(boolean b) -
getOppositeLocation
public int getOppositeLocation(int loc) what location is opposite the given one -
getClusterMods
public int getClusterMods()get modifications to the cluster hit table for critical hits- Specified by:
getClusterMods
in interfaceIAero
-
getECMRange
public int getECMRange()What's the range of the ECM equipment?- Overrides:
getECMRange
in classEntity
- Returns:
- the
int
range of this unit's ECM. This value will beEntity.NONE
if no ECM is active.
-
getECCMStrength
public double getECCMStrength()- Overrides:
getECCMStrength
in classEntity
- Returns:
- the strength of the ECCM field this unit emits
-
setECCMRoll
public void setECCMRoll(int i) -
getECCMRoll
public int getECCMRoll() -
getECCMTarget
public int getECCMTarget() -
getECCMBonus
public int getECCMBonus() -
isCrewProtected
public boolean isCrewProtected()- Returns:
- is the crew of this vessel protected from gravitational effects, see StratOps, pg. 36
-
getGravSecondaryThreshold
Deprecated, for removal: This API element is subject to removal in a future version.No indicated uses. -
getGravPrimaryThreshold
Deprecated, for removal: This API element is subject to removal in a future version.no indicated uses. -
canLoad
Determines if this object can accept the given unit. The unit may not be of the appropriate type or there may be no room for the unit. -
getWeaponGroups
- Specified by:
getWeaponGroups
in interfaceIAero
-
groupWeaponsByLocation
Iterate through current weapons and count the number in each capital fighter location.- Specified by:
groupWeaponsByLocation
in interfaceIAero
- Returns:
- A map with keys in the format "weaponName:loc", with the number of weapons of that type in that location as the value.
-
shouldMoveBackHex
Deprecated, for removal: This API element is subject to removal in a future version.No indicated uses.- Parameters:
other
-Aero
- Returns:
- whether another unit occupies the same hex, determine if this Aero should be moved back a hex for * targeting purposes
-
hasArmoredEngine
public boolean hasArmoredEngine()- Overrides:
hasArmoredEngine
in classEntity
-
getForwardArc
public int getForwardArc()- Overrides:
getForwardArc
in classEntity
-
getRearArc
public int getRearArc()- Overrides:
getRearArc
in classEntity
-
getAltLoss
public int getAltLoss()- Specified by:
getAltLoss
in interfaceIAero
-
setAltLoss
public void setAltLoss(int i) - Specified by:
setAltLoss
in interfaceIAero
-
resetAltLoss
public void resetAltLoss()- Specified by:
resetAltLoss
in interfaceIAero
-
getAltLossThisRound
public int getAltLossThisRound()- Specified by:
getAltLossThisRound
in interfaceIAero
-
setAltLossThisRound
public void setAltLossThisRound(int i) - Specified by:
setAltLossThisRound
in interfaceIAero
-
resetAltLossThisRound
public void resetAltLossThisRound()- Specified by:
resetAltLossThisRound
in interfaceIAero
-
getElevation
public int getElevation()Description copied from interface:Targetable
Returns the elevation of this target, relative to the position Hex's surface- Specified by:
getElevation
in interfaceTargetable
- Overrides:
getElevation
in classEntity
- Returns:
- The elevation of this Entity, relative to the current Hex's surface. When the unit is transported, returns the elevation of the carrier.
-
canGoDown
public boolean canGoDown() -
isPrimitive
public boolean isPrimitive()- Overrides:
isPrimitive
in classEntity
- Returns:
- Whether the unit uses primitive or retro tech construction rules
-
getLocationDamage
- Specified by:
getLocationDamage
in classEntity
-
getCritDamageString
-
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
-
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
-
canSpot
public boolean canSpot()Description copied from class:Entity
Um, basically everything can spot for LRM indirect fire. Except for off-board units, units that sprinted, and units evading. -
doDisbandDamage
public void doDisbandDamage()- Specified by:
doDisbandDamage
in interfaceIAero
-
getNCrew
public int getNCrew() -
getNOfficers
public int getNOfficers()- Returns:
- The total number of officers for vessels.
-
getNGunners
public int getNGunners()- Returns:
- The total number of gunners for vessels.
-
getNPassenger
public int getNPassenger()- Overrides:
getNPassenger
in classEntity
- Returns:
- number of passengers on this unit Intended for spacecraft, where we want to get the crews of transported units plus actual passengers assigned to quarters
-
getEscapeCraft
- Returns:
- Set of Entity IDs used by this ship as escape craft
-
addEscapeCraft
Adds an Escape Craft. Used by MHQ to track where escaped crew and passengers end up.- Parameters:
id
- The Entity ID of the ship to add.
-
removeEscapeCraft
Deprecated, for removal: This API element is subject to removal in a future version.No indicated uses.Removes an Escape Craft. Used by MHQ to track where escaped crew and passengers end up.- Parameters:
id
- The Entity ID of the ship to remove.
-
getNBattleArmor
public int getNBattleArmor()- Returns:
- The number battle armored marines available to vessels for boarding actions.
-
getNMarines
public int getNMarines()- Overrides:
getNMarines
in classEntity
- Returns:
- The number conventional marines available to vessels for boarding actions.
-
getMarines
- Returns:
- Map of unique individuals being transported as marines
-
addMarine
Deprecated, for removal: This API element is subject to removal in a future version.No indicated uses.Adds a marine. Used by MHQ to track where a given person ends up. Also used by MM to move marines around between ships- Parameters:
personId
- The unique ID of the person to add.pointValue
- The marine point value of the person being added
-
removeMarine
Deprecated, for removal: This API element is subject to removal in a future version.No indicated uses.Removes a marine. Used by MHQ to track where a given person ends up. Also used by MM to move marines around between ships- Parameters:
personId
- The unique ID of the person to remove.
-
getMarineCount
public int getMarineCount()- Returns:
- number of marines assigned to a unit Used for abandoning a unit
-
getTotalAboard
Deprecated, for removal: This API element is subject to removal in a future version.no indicated uses.Convenience method that compiles the total number of people aboard a ship - Crew, Marines, Passengers...- Returns:
- An integer representing everyone aboard
-
getEscapePods
public int getEscapePods()- Returns:
- The number of escape pods carried by the unit
-
getPodsLeft
public int getPodsLeft()- Returns:
- the number of escape pods remaining
-
getLifeBoats
public int getLifeBoats()- Returns:
- The number of lifeboats carried by the unit
-
getLaunchedEscapePods
public int getLaunchedEscapePods()Returns the total number of escape pods launched so far -
setLaunchedEscapePods
public void setLaunchedEscapePods(int n) Updates the total number of escape pods launched so far- Parameters:
n
- The number to change
-
getLaunchedLifeBoats
public int getLaunchedLifeBoats()Returns the total number of lifeboats launched so far -
getLifeBoatsLeft
public int getLifeBoatsLeft()- Returns:
- return the number of lifeboats remaining
-
setLaunchedLifeBoats
public void setLaunchedLifeBoats(int n) Updates the total number of lifeboats launched so far- Parameters:
n
- The number to change
-
hasEscapeSystemsLeft
Deprecated, for removal: This API element is subject to removal in a future version.No indicated usesCalculates whether this ship has any available escape systems remaining return -
getEscapeCapacity
Deprecated, for removal: This API element is subject to removal in a future version.no indicated usesCalculates the total number of people that can be carried in this unit's escape systems 6 people per lifeboat/escape pod + troop capacity of any small craft Most small craft use cargo space instead of infantry bays, so we'll assume 0.1 tons/person (Taken from Infantry.getWeight() - foot trooper + .015t for the spacesuit everyone aboard is wearing ;) )- Returns:
- The total escape count for the unit
-
getEntityType
public long getEntityType()- Specified by:
getEntityType
in classEntity
-
isAero
public boolean isAero()Description copied from interface:BTObject
Returns true when this object uses or can use aerospace movement. This includes all aerospace units as well as LAMs (in fighter mode when in a TW game). Returns false for any type of unit group even if it is of the right type. -
isBomber
public boolean isBomber()Fighters may carry external ordnance; Other Aerospace units with cargo bays and the Internal Bomb Bay quirk may carry bombs internally.- Specified by:
isBomber
in interfaceTargetable
- Returns:
- boolean
-
availableBombLocation
public int availableBombLocation(int cost) - Specified by:
availableBombLocation
in interfaceIBomber
- Parameters:
cost
- The cost of the bomb to be mounted- Returns:
- A location with sufficient space to mount the bomb, or Entity.LOC_NONE if the unit does not have the space.
-
getSpriteDrawPriority
public int getSpriteDrawPriority()Description copied from class: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
-
getActiveAMS
- Overrides:
getActiveAMS
in classEntity
- Returns:
- currently operable AMS mounted in this Entity.
-
updateSensorOptions
public void updateSensorOptions()A method to add/remove sensors that only work in space as we transition in and out of an atmosphere- Specified by:
updateSensorOptions
in interfaceIAero
-
hasEjectSeat
public boolean hasEjectSeat()- Returns:
- unit has an ejection seat
-
isAutoEject
public boolean isAutoEject()- Returns:
- Returns the autoEject.
-
setAutoEject
public void setAutoEject(boolean autoEject) - Parameters:
autoEject
- Turn the master auto-ejection system on or off
-
isCondEjectAmmo
public boolean isCondEjectAmmo()- Returns:
- Is Auto-Ejection enabled for ammo explosions?
-
setCondEjectAmmo
public void setCondEjectAmmo(boolean condEjectAmmo) Used by Conditional Auto Ejection - will we eject when an ammo explosion is triggered?- Parameters:
condEjectAmmo
- Sets auto-ejection for ammo explosions
-
isCondEjectFuel
public boolean isCondEjectFuel()- Returns:
- Is auto-ejection enabled for fuel explosions?
-
setCondEjectFuel
public void setCondEjectFuel(boolean condEjectFuel) Used by Conditional Auto Ejection - will we eject when a fuel explosion is triggered?- Parameters:
condEjectFuel
- Sets auto-ejection for fuel tank explosions
-
isCondEjectSIDest
public boolean isCondEjectSIDest()- Returns:
- Is auto-ejection enabled for SI destruction (Fighter only)?
-
setCondEjectSIDest
public void setCondEjectSIDest(boolean condEjectSIDest) Used by Conditional Auto Ejection - will we eject when structural integrity is reduced to 0?- Parameters:
condEjectSIDest
- Sets auto-ejection for structural integrity destruction
-
isEjecting
public boolean isEjecting()Intended for large craft.- Returns:
- Indicates that the ship is being abandoned.
-
setEjecting
public void setEjecting(boolean ejecting) Changes the ejecting flag when the order to abandon ship is given- Parameters:
ejecting
- Change to the ejecting status of this ship
-
getEnginesLostRound
public int getEnginesLostRound()Description copied from interface:IAero
Check which turn engines were destroyed in.- Specified by:
getEnginesLostRound
in interfaceIAero
-
setEnginesLostRound
public void setEnginesLostRound(int enginesLostRound) Description copied from interface:IAero
Set round that engines were completely destroyed; needed for crash-landing check- Specified by:
setEnginesLostRound
in interfaceIAero
-