Class SmallCraft
- All Implemented Interfaces:
Serializable,ICarryable,Transporter,InGameObject,CombatRole,ForceAssignable,ITechnology,ITurnOrdered,PhaseUpdated,RoundUpdated,ActiveHeatSinkController,BTObject,Deployable,IAero,IBomber,Targetable
- Direct Known Subclasses:
Dropship,EscapePods
- Since:
- Jun 17, 2007
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class megamek.common.units.Entity
Entity.InvalidSourceBuildReasonNested classes/interfaces inherited from interface megamek.common.equipment.ICarryable
ICarryable.CarriedObjectDamageAllocation -
Field Summary
FieldsFields inherited from class megamek.common.units.Aero
AERO_EFFECTIVE_ELEVATION, CIVILIAN, COCKPIT_COMMAND_CONSOLE, COCKPIT_PRIMITIVE, COCKPIT_SHORT_STRING, COCKPIT_SMALL, COCKPIT_STANDARD, COCKPIT_STRING, COCKPIT_TA, CRIT_AVIONICS, CRIT_BOMB, CRIT_CARGO, CRIT_CIC, CRIT_CONTROL, CRIT_CREW, CRIT_DOCK_COLLAR, CRIT_DOOR, CRIT_ENGINE, CRIT_FCS, CRIT_FUEL_TANK, CRIT_GEAR, CRIT_GRAV_DECK, CRIT_HEATSINK, CRIT_KF_BOOM, CRIT_KF_DRIVE, CRIT_LEFT_THRUSTER, CRIT_LIFE_SUPPORT, CRIT_NONE, CRIT_RIGHT_THRUSTER, CRIT_SENSOR, CRIT_WEAPON, CRIT_WEAPON_BROAD, damThresh, designType, extBombChoices, HEAT_DOUBLE, HEAT_SINGLE, intBombChoices, LOC_AFT, LOC_FUSELAGE, LOC_LEFT_WING, LOC_NOSE, LOC_RIGHT_WING, LOC_WINGS, maxExtBombPoints, maxIntBombPoints, MILITARY, RAM_AWAY_DIR, RAM_AWAY_OBL, RAM_TOWARD_DIR, RAM_TOWARD_OBL, TA_ASF, TA_ASF_PRIMITIVE, usedInternalBombsFields inherited from class megamek.common.units.Entity
_isEMId, abandonmentAnnouncedRound, ALTERNATE_MASC_FAILURE, ALTERNATE_MASC_FAILURE_ENHANCED, altitude, ammoList, armorTechLevel, armorTechRating, armorTonnage, armorType, armsFlipped, asewAffectedTurns, aTracker, baVDNINeedsFeedbackMessage, BLOOD_STALKER_TARGET_CLEARED, bMASCWentUp, bombList, boobyTrapInitiated, bSuperchargerWentUp, C3_NETWORK_ID_SEPARATOR, c3CompanyMasterIndex, c3Master, c3NetIdString, camouflage, canUnstickByJumping, carcass, chassis, clanChassisName, climbing, climbingLevelsChosen, consecutiveRHSUses, convertingNow, coolFromExternal, crits, damageThisPhase, damageThisRound, dangling, delta_distance, designValid, destroyed, displacementAttack, DMG_CRIPPLED, DMG_HEAVY, DMG_LIGHT, DMG_MODERATE, DMG_NONE, dodging, DOES_NOT_TRACK_HEAT, done, doomed, eiShutdown, elevation, empInterferenceHeat, empInterferenceRounds, empShutdownRounds, engineHitsThisPhase, engineTechRating, equipmentList, ETYPE_AERO, ETYPE_AEROSPACE_FIGHTER, ETYPE_ARMLESS_MEK, ETYPE_BATTLEARMOR, ETYPE_BATTLEFIELD_SUPPORT_ASSET, ETYPE_BIPED_MEK, ETYPE_BUILDING_ENTITY, ETYPE_COMBAT_VEHICLE_ESCAPE_POD, ETYPE_CONV_FIGHTER, ETYPE_DROPSHIP, ETYPE_FIGHTER_SQUADRON, ETYPE_FIXED_WING_SUPPORT, ETYPE_GUN_EMPLACEMENT, ETYPE_HANDHELD_WEAPON, ETYPE_INFANTRY, ETYPE_JUMPSHIP, ETYPE_LAND_AIR_MEK, ETYPE_LARGE_SUPPORT_TANK, ETYPE_MEK, ETYPE_MEKWARRIOR, ETYPE_PROTOMEK, ETYPE_QUAD_MEK, ETYPE_QUADVEE, ETYPE_SMALL_CRAFT, ETYPE_SPACE_STATION, ETYPE_SUPER_HEAVY_TANK, ETYPE_SUPPORT_TANK, ETYPE_SUPPORT_VTOL, ETYPE_TANK, ETYPE_TELEMISSILE, ETYPE_TRIPOD_MEK, ETYPE_VTOL, ETYPE_WARSHIP, externalId, facing, failedEquipmentList, fell, findingClub, firingSolutions, fluff, game, gotPavementOrRoadBonus, GRAPPLE_BOTH, GRAPPLE_LEFT, GRAPPLE_RIGHT, hardenedArmorDamaged, hasDamagedRHS, hasExternalSearchlight, heat, heatBuildup, heatFromExternal, heatSinkCoolantFailureFactor, hiddenActivationPhase, hullDown, icon, id, iGame, illuminated, iNarcPods, incomingGuidedAttacks, infernos, initialBV, inReverse, isC3ecmAffected, isCarefulStanding, isHidden, isJumpingNow, jumpMP, killerId, lastTarget, lastTargetDisplayName, layingMines, LOC_DESTROYED, LOC_NONE, locationBlownOff, locationBlownOffThisPhase, m_lNarcedBy, m_lPendingNarc, madePointblankShot, manualBV, manualShutdown, MASC_FAILURE, MAX_C3_NODES, MAX_C3i_NODES, MAX_NOVA_CEWS_NODES, military, miscList, mixedTech, model, moved, movedLastRound, movementMode, mpUsed, mpUsedLastRound, mulId, narcPods, nCrew, nMarines, nMASCLevel, nPassenger, nSuperchargerLevel, OBSOLETE_UNKNOWN_MARKER, omni, owner, ownerId, pendingAbandon, pendingINarcPods, pendingNarcPods, previousMovementMode, prone, published, reckless, reportedVDNIFeedbackThisPhase, rhsWentUp, rolledForEngineExplosion, searchlightIsActive, searchlightOverride, sec_facing, secondaryPositions, selfDestructedThisTurn, selfDestructing, selfDestructInitiated, sensorContacts, shutDown, shutdownByBATaser, shutDownThisPhase, source, spotting, STARTING_ANY_NONE, startupThisPhase, struck, structuralTechRating, structureTechLevel, structureType, stuckInSwamp, TA_ARMORED_COMPONENT, TA_MIXED_TECH, TA_OMNI, TA_PATCHWORK_ARMOR, taggedBy, targetBay, taserFeedBackRounds, taserInterference, taserInterferenceHeat, taserInterferenceRounds, taserShutdownRounds, techFaction, techLevel, tmTracker, totalWeaponList, traitorId, twistedPhase, underwaterRounds, unjammingRAC, UNLIMITED_JUMP_DOWN, usedMASC, usedRHSLastTurn, usedSearchlight, usedSupercharger, useManualBV, vectors, walkMP, weaponBayList, weaponGroupList, weaponList, weight, wigeBonus, yearFields inherited from interface megamek.common.units.IBomber
ALT_BOMB_ATTACK, DIVE_BOMB_ATTACK, SPACE_BOMB_ATTACKFields inherited from interface megamek.common.interfaces.ITechnology
DATE_ES, DATE_NONE, DATE_PSFields inherited from interface megamek.common.units.Targetable
TYPE_BLDG_IGNITE, TYPE_BLDG_TAG, TYPE_BUILDING, TYPE_ENTITY, TYPE_FLARE_DELIVER, TYPE_FUEL_TANK, TYPE_FUEL_TANK_IGNITE, TYPE_HEX_AERO_BOMB, TYPE_HEX_ARTILLERY, TYPE_HEX_BOMB, TYPE_HEX_CLEAR, TYPE_HEX_EXTINGUISH, TYPE_HEX_IGNITE, TYPE_HEX_SCREEN, TYPE_HEX_TAG, TYPE_I_NARC_POD, TYPE_MINEFIELD_CLEAR, TYPE_MINEFIELD_DELIVER, TYPE_SATURATION, TYPE_SEARCHLIGHT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddNOtherCrew(String id, int n) Adds a number of crewmembers from another ship keyed by that ship's external IDvoidaddPassengers(String id, int n) Adds a number of passengers from another ship keyed by that ship's external IDvoidRecalculates the internal and external hardpoints that this aero unit has.protected intDo not recalculate walkMP when adding engine.intdoubleThe total weight of the armor on this unit.intDetermines where to place equipment that does not require a specific location.doubleNot used directly but is overwritten in 5 other classes.return - the base construction option tech advancementdoublegetCost(CalculationReport calcReport, boolean ignoreAmmo) Calculates and returns the C-bill cost of the unit.intWhat's the range of the ECM equipment?longintintCalculates a "generic" Battle Value that is based on the average of all units of this type and tonnage.intintReturns the total number of escape pods launched so farintReturns the total number of lifeboats launched so farintString[]String[]intintintgetNCrew()intintintReturns a mapping of how many crewmembers from other units this unit is carrying and what ship they're from by external IDintintReturns a mapping of how many passengers from other units this unit is carrying and what ship they're from by external IDdoubleReturns a multiplier that combines multiplicative construction cost modifiers for this Entity.intReturns the recovery time for this entity in minutes.doubleUsed by SmallCraft and Jumpship and their child classes.intintConvenience method to return all crew from other craft aboard from the above MapintConvenience method to return all passengers aboard from the above MapintintgetWeaponArc(int weaponNumber) Returns the Compute.ARC that the weapon fires into.booleanDoes the Mek have a functioning ECM unit?booleanbooleanhasWeaponInArc(int loc, boolean rearMount) intheight()Returns the height of the unit, that is, how many levels above its elevation it is for LOS purposes.booleanbooleanisBomber()Fighters may carry external ordnance; Other Aerospace units with cargo bays and the Internal Bomb Bay quirk may carry bombs internally.booleanReturns whether this unit is a chassis-familiarity-eligible type for MekHQ's Familiarity systembooleanbooleanReturns true when this object is a large aerospace unit (SmallCraft, DropShip, JumpShip, WarShip, Space Station).booleanbooleanReturns true when this object is a SmallCraft (not a DropShip).booleanloadWeapon(WeaponMounted mounted, AmmoMounted mountedAmmo) need to check bay location before loading ammointReturns the number of locations in the entitydoubleSome primitive aerospace units have their fuel efficiency reduced by a factor based on construction year.rollHitLocation(int table, int side) Rolls up a hit locationvoidsetEscapePods(int n) voidsetLaunchedEscapePods(int n) Updates the total number of escape pods launched so farvoidsetLaunchedLifeBoats(int n) Updates the total number of lifeboats launched so farvoidsetLifeBoats(int n) voidsetNBattleArmor(int ba) voidsetNCrew(int crew) voidsetNGunners(int gunners) voidsetNMarines(int marines) Updates the number of marines aboardvoidsetNOfficers(int officer) voidsetNOtherPassenger(int other) voidsetNPassenger(int pass) Methods inherited from class megamek.common.units.Aero
addClanCase, addEntityBonuses, addEquipment, addEscapeCraft, addSystemTechAdvancement, areWingsHit, autoSetCapArmor, autoSetFatalThresh, autoSetInternal, autoSetSI, autoSetThresh, availableBombLocation, canChangeSecondaryFacing, canCharge, canDFA, canEjectCrew, canGoDown, canLoad, canRam, canSpot, chooseSideRam, clearBombChoices, clipSecondaryFacing, didAccDecNow, didAccLast, didFailManeuver, doDisbandDamage, doomedInAtmosphere, doomedInSpace, fuelTankHit, getActiveAMS, getActiveSinks, getActiveSinksNextRound, getAltLoss, getAltLossThisRound, getArmorRemainingPercent, getAvionicsHits, getAvionicsMisrepaired, getAvionicsMisReplaced, getBadCriticalSlots, getCap0Armor, getCapArmor, getCICHits, getClusterMods, getCockpitTechAdvancement, getCockpitTechAdvancement, getCockpitType, getCockpitTypeString, getCockpitTypeString, getCritDamageString, getCriticalEffect, getCurrentDamage, getCurrentFuel, getCurrentThrust, getCurrentVelocity, getCurrentVelocityActual, getDesignType, getECCMBonus, getECCMRoll, getECCMStrength, getECCMTarget, getElevation, getEngineCritHeat, getEngineHits, getEnginesLostRound, getEscapeCraft, getExitAltitude, getExtBombChoices, getFatalThresh, getFCSHits, getFlyingOffDirection, getForwardArc, getFuel, getFuelPointsPerTon, getFuelTonnage, getHeatCapacity, getHeatCapacityWithWater, getHeatSinkHits, getHeatSinks, getHeatType, getHighestThresh, getIgnoredCrewHits, getIntBombChoices, getInternalRemainingPercent, getLandingGearMod, getLandingGearPartialRepairs, getLeftThrustHits, getLifeBoatsLeft, getMarineCount, getMarines, getMaxBombPoints, getMaxElevationChange, getMaxExtBombPoints, getMaxIntBombPoints, getMovementAbbr, getMovementString, getNextVelocity, getNoOfSlots, getNoseArmor, getOHeatSinks, getOppositeLocation, getOriginalFuel, getOSI, getPodHeatSinks, getPodsLeft, getPotCrit, getRearArc, getRightThrustHits, getRunMP, getSensorHits, getSI, getSpriteDrawPriority, getStealthModifier, getStraightMoves, getThresh, getTransferLocation, getUsedInternalBombs, getWalkMP, getWeaponGroups, getWhoFirst, groupWeaponsByLocation, hasArmoredEngine, hasCase, hasCommandConsoleBonus, hasEjectSeat, hasLifeSupport, implicitClanCASE, increaseUsedInternalBombs, initializeSI, initializeThresh, isAero, isAeroSensorDestroyed, isCondEjectAmmo, isCondEjectFuel, isCondEjectSIDest, isCrippled, isCrippled, isDmgHeavy, isDmgLight, isDmgModerate, isEjecting, isFlyingOff, isGearHit, isImmobile, isLocationProhibited, isNightwalker, isOutControl, isOutControlHeat, isOutControlTotal, isRandomMove, isRepairable, isRolled, isSecondaryArcWeapon, isSpheroid, isStealthActive, isStealthOn, isSTOL, isValidSecondaryFacing, isVSTOL, newRound, reduceMPByBombLoad, resetAltLoss, resetAltLossThisRound, rollHitLocation, setAccDecNow, setAccLast, setActiveSinksNextRound, setAltLoss, setAltLossThisRound, setArmorType, setArmorType, setAutoEject, setAvionicsHits, setCapArmor, setCICHits, setCockpitType, setCondEjectAmmo, setCondEjectFuel, setCondEjectSIDest, setCritThresh, setCurrentDamage, setCurrentFuel, setCurrentVelocity, setDesignType, setDestroyed, setECCMRoll, setEjecting, setEngine, setEngineHits, setEnginesLostRound, setExitAltitude, setExtBombChoices, setFailedManeuver, setFCSHits, setFlyingOff, setFuel, setFuelTankHit, setFuelTonnage, setGearHit, setHeatSinks, setHeatType, setIgnoredCrewHits, setIntBombChoices, setLeftThrustHits, setLifeSupport, setNextVelocity, setOHeatSinks, setOmni, setOSI, setOutControl, setOutControlHeat, setPodHeatSinks, setPotCrit, setRandomMove, setRightThrustHits, setRolled, setSensorHits, setSI, setSpheroid, setStraightMoves, setThresh, setUsedInternalBombs, setVSTOL, setWhoFirst, setWingsHit, sideTableRam, tracksHeat, updateSensorOptions, victoryReport, wasCritThreshMethods inherited from class megamek.common.units.Entity
activateRadicalHS, addAttackedByThisTurn, addBeenDetectedBy, addBeenSeenBy, addBomb, addBomb, addConditionBonuses, addCoolantFailureAmount, addCritical, addCritical, addCritical, addEquipment, addEquipment, addEquipment, addEquipment, addEquipment, addEquipment, addEquipment, addEquipment, addEquipment, addEquipment, addEquipment, addFailedEquipment, addFiringSolution, addGhostTargetDefensiveBonus, addGhostTargetOffensiveBonus, addGroundAttackedByThisTurn, addIMPHits, addIntrinsicTransporters, addKill, addOffBoardObserver, addPassedThrough, addPilotingModifierForTerrain, addPilotingModifierForTerrain, addPilotingModifierForTerrain, addPilotingModifierForTerrain, addRoofRack, addSensorContact, addTargetedBySwarm, addTechComponent, addTowedUnit, addTransporter, addTransporter, addTsempHitThisTurn, addWeaponGroup, antiTSMVulnerable, applyDamage, applyGravityEffectsOnMP, applyMagneticPulse, armorStringFor, assignAMS, assignTMAMS, assignWeaponQuirk, attachINarcPod, attachNarcPod, braceLocation, C3MasterIs, calcElevation, calcElevation, calculateBattleValue, calculateBattleValue, calculateBattleValue, calculateBattleValue, calculateFreeC3MNodes, calculateFreeC3Nodes, canActivateBloodStalker, canAnnounceAbandon, canAssaultDrop, canAssist, canBePickedUp, canBrace, canEscape, canFall, canFall, canFireWeapon, canFlee, canFlee, canFleeFrom, canFleeInState, canFlipArms, canGoDown, canGoHullDown, canGoUp, canHide, canInitiateInfantryVsInfantryCombat, canLayDemolitionCharges, canLayMine, canLoad, canLoad, canonUnitWithInvalidBuild, canPerformGroundSalvageOperations, canPerformSpaceSalvageOperations, canPickupCarryableObject, canPickupGroundObject, canReinforceInfantryVsInfantry, canShutdownEi, canTow, canTransferCriticalSlots, canUnjamRAC, canUnstickByJumping, changeHeatBuildup, checkBogDown, checkDislodgeSwarmers, checkForMASCFailure, checkForSuperchargerFailure, checkGetUp, checkGunningIt, checkLandingInHeavyWoods, checkLandingOnBlackIce, checkLandingOnIce, checkLandingWithDamage, checkLandingWithPrototypeJJ, checkMovedTooFast, checkMovementInBuilding, checkRecklessMove, checkRubbleMove, checkRunningWithDamage, checkSideSlip, checkSkid, checkSprintingWithMASCAndSupercharger, checkSprintingWithMASCXorSupercharger, checkTurnModeFailure, checkUnstall, checkUsingOverdrive, checkWaterMove, checkWaterMove, chooseSide, clearAttackedByThisTurn, clearBombs, clearDestroyedNarcPods, clearDetectedBy, clearFiringSolutions, clearHeatBreakdown, clearInfantryCombatState, clearNarcAndiNarcPods, clearPartialRepairs, clearSeenBy, clearSensorContacts, climbMode, countEquipment, countForStrengthSum, countMisc, countPartialRepairs, countQuirks, countQuirks, countWeaponQuirks, countWorkingMisc, countWorkingMisc, countWorkingMisc, crewCanLeave, critStateCount, damage, damageBayDoor, damagedJumpJets, damageDockCollar, damageDoorRecovery, damagedSCMCritCount, damageSystem, damageSystem, deactivateRadicalHS, defaultCrewType, deployOffBoard, destroy, destroyLocation, destroyLocation, destroyOneSearchlight, destroyRetractableBlade, disconnectUnit, doBattleValueCalculation, doCheckEngineStallRoll, doomedInExtremeTemp, doomedInVacuum, doomedOnGround, dropCarriedObject, dropCarriedObject, dropGroundObjects, elevationOccupied, elevationOccupied, endOfTurnCargoInteraction, entityIsQuad, equals, extendBlade, factionTechLevel, findTargetedDisplacement, firstArmorIndex, fixElevation, formatHeat, gameOptions, generalName, generateDisplayName, generateShortName, getAbandonmentAnnouncedRound, getActiveSensor, getActiveSubEntities, getActiveUMUCount, getActiveVibrobladeHeat, getActiveVibrobladeHeat, getAllGyroCodeName, getAllowedPhysicalAttacks, getAllTowedUnits, getAllUMUCount, getAlreadyTwisted, getAlternateCost, getAltitude, getAmmo, getAmmo, getAmmo, getAnyTypeMaxJumpMP, getArmedMPBoosters, getArmor, getArmor, getArmor, getArmoredComponentTechAdvancement, getArmorForReal, getArmorForReal, getArmorString, getArmorString, getArmorTechLevel, getArmorTechRating, getArmorType, getArmorWeight, getArmsFlipped, getASEWAffected, getAttackedByThisTurn, getAttackingEntity, getBAPRange, getBARRating, getBase64Icon, getBaseAvailability, getBaseChassisFireConWeight, getBaseChassisValue, getBaseEngineValue, getBasePilotingRoll, getBasePilotingRoll, getBay, getBayByAmmo, getBayById, getBayLoadedUnitIds, getBayPersonnel, getBlockedFiringLocations, getBloodStalkerTarget, getBlueShieldRounds, getBoardId, getBoardLocation, getBombLoadout, getBombLoadout, getBombs, getBombs, getBoobyTrap, getBoobyTrapDamage, getBraceMPCost, getBvCalculator, getC3ecmAffected, getC3iNextUUIDAsString, getC3Master, getC3MasterId, getC3MasterIsUUIDAsString, getC3NetId, getC3Top, getC3UUIDAsString, getCamouflage, getCamouflageOrElse, getCamouflageOrElse, getCamouflageOrElseOwners, getCargoMpReduction, getCarriedObject, getCarriedObjects, getChassis, getClanChassisName, getClimbingLevelsChosen, getClubs, getCollarById, getCommonDate, getCommonDateRange, getConnectedUnits, getConsecutiveRHSUses, getConversionMode, getCoolantFailureAmount, getCost, getCrew, getCritical, getCriticalSlots, getCustomWeaponOrder, getCustomWeaponOrder, getDamagedCriticalSlots, getDamageLevel, getDamageLevel, getDamageReductionFromModularArmor, getDefaultPickupLocations, getDependentLocation, getDeployRound, getDisplacementAttack, getDisplayName, getDistinctCarriedObjects, getDockingCollars, getDocks, getDocks, getDropCargoLocationMap, getDroppableUnits, getDuplicateMarker, getEarliestTechDate, getEarliestTechDateAndEra, getECCMInfo, getECMInfo, getECMStrength, getEMPInterferenceRounds, getEMPShutdownRounds, getEmptyCriticalSlots, getEngine, getEngineTechRating, getEngineType, getEntityMajorTypeName, getEntityTypeName, getEquipment, getEquipment, getEquipmentForWeaponQuirk, getEquipmentNum, getEquipmentType, getEvasionBonus, getExteriorUnitAt, getExternalBombLoadout, getExternalId, getExternalIdAsString, getExternalUnits, getExtinctionDate, getExtinctionDate, getExtinctionRange, getExtraC3BV, getExtraCommGearTons, getExtremeRangeModifier, getFacing, getFacingName, getFailedEquipment, getFighterBays, getFiringSolutions, getFleeZone, getFluff, getFluffImage, getForceGeneratorAvailability, getForceId, getForceString, getFreeC3iUUID, getFreeNC3UUID, getFullChassis, getGame, getGaveKillCredit, getGhostTargetDefensiveBonus, getGhostTargetOffensiveBonus, getGhostTargetOverride, getGhostTargetRoll, getGhostTargetRollMoS, getGoodCriticalSlots, getGrappled, getGrappleSide, getGroundAttackedByThisTurn, getGyroType, getHeading, getHeat, getHeatBreakdown, getHeatCapacity, getHeatFiringModifier, getHeatInArc, getHeatMPReduction, getHeight, getHiddenActivationPhase, getHitchCarrying, getHitchLocations, getHitCriticalSlots, getHittableCriticalSlots, getHQIniBonus, getIcon, getId, getImpLastTurn, getImpMpReduction, getImpToHitModifier, getINarcPodsAttached, getIndividualWeaponList, getInfantryCombatTargetId, getInfantryCombatTurnCount, getInitialBV, getInternal, getInternal, getInternalBombLoadout, getInternalForReal, getInternalString, getIntroductionDate, getIntroductionDate, getIntroductionDateAndEra, getInvalidSourceBuildReasons, getIsJumpingNow, getJumpHeat, getJumpMP, getJumpMP, getJumpMPWithTerrain, getJumpType, getKillerId, getKillNumber, getKills, getLabArmorTonnage, getLabTotalArmorPoints, getLastTarget, getLastTargetDisplayName, getLaunchableDropships, getLaunchableFighters, getLaunchableSmallCraft, getLoadedKeepers, getLoadedTrailers, getLoadedUnits, getLocationAbbr, getLocationAbbr, getLocationDamage, getLocationFromAbbr, getLocationName, getLocationName, getLocationStatus, getLongRangeModifier, getLOSRangeModifier, getMagneticPulseRounds, getManualBV, getMASC, getMASCTarget, getMASCTurns, getMaxElevationDown, getMaxElevationDown, getMaxWeaponRange, getMaxWeaponRange, getMechanicalJumpBoosterMP, getMechanicalJumpBoosterMP, getMediumRangeModifier, getMisc, getMisc, getMiscEquipment, getMissionRoles, getMixedTechAdvancement, getModel, getMotiveSideMod, getMovedBackwards, getMovementBeforeSkidPSRModifier, getMovementMode, getMovementModeAsString, getMPBoosters, getMPBoosters, getMpUsedLastRound, getMulId, getNC3NextUUIDAsString, getNeuralInterfaceMode, getNewRoundNovaNetworkString, getNextSensor, getNumberOfCriticalSlots, getNumberOfCriticalSlots, getNumberOfCriticalSlots, getNumberOfCriticalSlots, getNumberOfShields, getOArmor, getOArmor, getOArmor, getObsoleteQuirkValue, getObsoleteRepairModifier, getObsoleteResaleModifier, getObsoleteYear, getObsoleteYearForModifiers, getObsoleteYears, getOccupiedCoords, getOccupiedHex, getOffBoardDirection, getOffBoardDistance, getOInternal, getOInternal, getOmniAdvancement, getOmniAdvancement, getOriginalBuildYear, getOriginalChassis, getOriginalJumpMP, getOriginalJumpMP, getOriginalModel, getOriginalNovaC3NetId, getOriginalRunMP, getOriginalUnitFileUUID, getOriginalWalkMP, getOwner, getOwnerId, getPartialRepairs, getPassedThrough, getPassedThroughBoardId, getPassedThroughFacing, getPassengerCapacityWithoutBayCrew, getPatchworkArmorAdvancement, getPendingVariableRangeTargetingMode, getPickedUpMekWarriors, getPickupLocationMap, getPlayerPickedPassThrough, getPodMountedTroopCarryingSpace, getPosition, getPowerAmplifierWeight, getPriorPosition, getProductionDate, getProductionDate, getProductionDateRange, getPrototypeDate, getPrototypeDate, getPrototypeRangeDate, getPublished, getPublishedSources, getQuirkIniBonus, getQuirkList, getQuirks, getRecoveryTurn, getReintroductionDate, getReintroductionDate, getRemovalCondition, getRetreatedDirection, getRole, getRunHeat, getRunMP, getRunMPasString, getRunMPasString, getRunMPWithoutMASC, getRunningGravityLimit, getsAutoExternalSearchlight, getSearchlightOverride, getSecondaryFacing, getSecondaryPositions, getSelfDestructedThisTurn, getSelfDestructing, getSelfDestructInitiated, getSensorCheck, getSensorContacts, getSensors, getShortName, getShortNameRaw, getShortRangeModifier, getSource, getSources, getSpotTargetId, getSprintHeat, getSprintMP, getSprintMP, getSprintMPWithOneMASC, getSprintMPWithoutMASC, getStandingHeat, getStartingAnyNWx, getStartingAnyNWx, getStartingAnyNWy, getStartingAnyNWy, getStartingAnySEx, getStartingAnySEx, getStartingAnySEy, getStartingAnySEy, getStartingOffset, getStartingOffset, getStartingPos, getStartingPos, getStartingWidth, getStartingWidth, getStaticTechLevel, getStrength, getStructuralTechRating, getStructureTechLevel, getStructureType, getSubEntities, getSuperCharger, getSuperchargerTarget, getSuperchargerTurns, getSwarmAttackerId, getSwarmTargetId, getTaggedBy, getTargetBay, getTargetedBySwarm, getTargetType, getTaserFeedBackRounds, getTaserInterference, getTaserInterferenceHeat, getTaserInterferenceRounds, getTaserShutdownRounds, getTCPInitiativeBonus, getTechBase, getTechBaseDescription, getTechBaseDescriptions, getTechFaction, getTechLevel, getTechLevelYear, getTechLevelYears, getTechRating, getTilesetModeString, getTMTracker, getTonnage, getTotalAmmoOfType, getTotalArmor, getTotalInternal, getTotalMunitionsOfType, getTotalOArmor, getTotalOInternal, getTotalWeaponList, getTowedBy, getTowing, getTractor, getTraitorId, getTransferLocation, getTransportBays, getTransportId, getTransports, getTroopCarryingSpace, getTrooperAtLocation, getTsempEffect, getTsempHitsThisTurn, getUnitFileUUID, getUnitNumber, getUnitsUnloadableFromBays, getUnitsUnloadableFromNonBays, getUnloadableUnits, getUnused, getUnused, getUnusedString, getUnusedString, getUseManualBV, getValidBraceLocations, getValidHalfWeightPickupLocations, getVariableRangeTargetingMode, getVariableRangeTargetingModifier, getVector, getVectors, getVelocity, getVibroClaws, getWalkHeat, getWalkMP, getWeapon, getWeaponBayList, getWeaponFiringHeight, getWeaponFiringPosition, getWeaponGroupList, getWeaponList, getWeaponListWithHHW, getWeapons, getWeaponSortOrder, getWeight, getWeightClass, getWeightClassName, getWhoCanDetect, getWhoCanSee, getYear, hasAbility, hasAbility, hasActivatedRadicalHS, hasActiveBlueShield, hasActiveDNI, hasActiveECCM, hasActiveECM, hasActiveEiCockpit, hasActiveNovaCEWS, hasAimModeTargComp, hasAnyC3System, hasAnyTypeNarcPodsAttached, hasArcFired, hasArmoredChassis, hasArtillery, hasBadLegs, hasBAP, hasBAP, hasBARArmor, hasBattleArmorHandles, hasBoobyTrap, hasBoostedC3, hasC3, hasC3i, hasC3M, hasC3MM, hasC3S, hasCASEII, hasCASEII, hasDamagedRHS, hasDetectedEntity, hasDisplacementAttack, hasDNICockpitMod, hasDNIImplant, hasDNIInducedHardToPilot, hasDroneOs, hasECM, hasEiCockpit, hasEmbeddedIcon, hasEMPInterferenceHeat, hasEngine, hasEntityScopedPreEndDeclaration, hasEnvironmentalSealing, hasETypeFlag, hasExternalSearchlight, hasFallen, hasFiredTsemp, hasFiringSolutionFor, hasFleeZone, hasFlotationHull, hasFrontMountedBulldozer, hasFrontMountedSaw, hasFunctionalArmAES, hasFunctionalLegAES, hasGhostTargetEquipment, hasGhostTargets, hasHardenedArmor, hasHarJelIn, hashCode, hasHierarchicalC3, hasHipCrit, hasINarcPodsAttached, hasInfernoAmmo, hasLegActuatorCrit, hasLinkedMGA, hasLoweredShield, hasLoweredShield, hasMinesweeper, hasMisc, hasMisc, hasMisc, hasModularArmor, hasModularArmor, hasMulId, hasNarcPodsAttached, hasNavalC3, hasNhC3, hasNoDefenseShield, hasNovaCEWS, hasObsoleteQuirk, hasOccupiedHex, hasOriginalBuildYear, hasQuirk, hasRaisedShield, hasRaisedShield, hasRearArmor, hasRearMountedBulldozer, hasRHSWentUp, hasSCM, hasSearchlight, hasSeenEntity, hasSensorContactFor, hasShield, hasStealth, hasSystem, hasTAG, hasTargComp, hasTCPAimedShotCapability, hasUMU, hasUndamagedCriticalSlots, hasUnloadedUnitsFromBays, hasUsedRHSLastTurn, hasVariableRangeTargeting, hasViableWeapons, hasVibroblades, hasWorkingBackhoe, hasWorkingBulldozer, hasWorkingMisc, hasWorkingMisc, hasWorkingMisc, hasWorkingMisc, hasWorkingRadicalHS, hasWorkingSCM, hasWorkingSystem, hitAllCriticalSlots, incrementInfantryCombatTurnCount, incrementMASCAndSuperchargerLevels, initializeArmor, initializeInternal, initMilitary, initTechAdvancement, isAbandoned, isActive, isActive, isActiveOption, isAeroLandedOnGroundMap, isAirborne, isAirborneAeroOnGroundMap, isAirborneVTOLorWIGE, isAssaultDropInProgress, isAttackingThisTurn, isBATaserShutdown, isBoardable, isBoardProhibited, isBoardProhibited, isBoobyTrapInitiated, isBracing, isC3CompanyCommander, isC3IndependentMaster, isCanon, isCapitalFighter, isCapitalFighter, isCapitalScale, isCaptured, isCarcass, isCarefulStand, isCarryableObject, isChainWhipGrappled, isChameleonShieldActive, isChameleonShieldOn, isCharging, isClan, isClanArmor, isClearingMinefield, isClearingWoods, isClimbing, isCommander, isConvertingNow, isDangling, isDeployed, isDesignValid, isDestroyed, isDetectedByEnemy, isDone, isDoomed, isDropping, isEiShutdown, isEjectionPossible, isElevationValid, isEligibleFor, isEligibleForArtyAutoHitHexes, isEligibleForFiring, isEligibleForInfantryVsInfantry, isEligibleForMovement, isEligibleForOffboard, isEligibleForPavementOrRoadBonus, isEligibleForPhysical, isEligibleForPreEndDeclarations, isEligibleForTargetingPhase, isEnemyOf, isEvading, isEverSeenByEnemy, isFindingClub, isFiredTsempThisTurn, isFirefighter, isGhostTargetCapable, isGrappleAttacker, isGrappledThisRound, isGyroDestroyed, isHardenedArmorDamaged, isHidden, isHullDown, isIlluminated, isImmobile, isImmobileForJump, isImpEcmAffected, isINarcedBy, isINarcedWith, isInBuilding, isInDemolishableStructureHex, isInfantryCombatAttacker, isInfantryCombatWantsWithdrawal, isIntroLevel, isInvulnerable, isJumpingWithMechanicalBoosters, isLargeCraft, isLayingMines, isLoadableThisTurn, isLocationBad, isLocationBlownOff, isLocationBlownOffThisPhase, isLocationDeadly, isLocationDeadly, isLocationDoomed, isLocationProhibited, isLocationProhibited, isLocationProhibited, isLocationProhibited, isLocationTrulyDestroyed, isMakingDfa, isMakingVTOLGroundAttack, isManualShutdown, isMASCUsed, isMilitary, isMixedTech, isNarcedBy, isNaval, isNeuralInterfaceEnabled, isNeuralInterfaceFullTracking, isNOE, isNonCanonBySource, isNonCanonBySource, isNotCrewedEntityType, isNuclearHardened, isNullSigActive, isNullSigOn, isObsoleteInYear, isOffBoard, isOffBoardObserved, isOmni, isOnAtmosphericGroundMap, isPartOfFighterSquadron, isPendingAbandon, isPermanentlyImmobilized, isPodMountedTransport, isPowerReverse, isProne, isPushing, isRamming, isReckless, isSalvage, isSelectableThisTurn, isSensorReturn, isShutDown, isShutDownThisPhase, isSpaceborne, isSpotting, isStalled, isStartupThisPhase, isStuck, isSufferingEMI, isSuperchargerUsed, isSuperHeavy, isSurfaceNaval, isTargetable, isTargetOfDisplacementAttack, isTractor, isTrailer, isTransported, isTrapped, isUncrewed, isUnderwater, isUnjammingRAC, isUnloadedThisTurn, isUnofficial, isUsingManAce, isUsingSearchlight, isVisibleToEnemy, isVoidSigActive, isVoidSigOn, isWeaponBlockedAt, isWeaponBlockedByTowing, isWeaponOrderChanged, isWeaponValidForPhase, itemOppositeTech, joinLocationAbbr, load, load, load, load, loadAllWeapons, loadDefaultCustomWeaponOrder, loadedUnitsHaveActiveECM, loadQuirks, loadWeapon, loadWeaponWithSameAmmo, loadWeaponWithSameAmmo, locationHasCase, locationIsLeg, madePointblankShot, maxGroundObjectTonnage, modifyPhysicalDamageForMeleeSpecialist, needsRollToStand, newPhase, newRoundNovaNetSwitch, newRoundVariableRangeSwitch, nextConversionMode, onSameC3NetworkAs, onSameC3NetworkAs, ownerHasDemolitionCharge, passedOver, passedThrough, passedThroughPrevious, passedWithin, performManualShutdown, performManualStartup, pickUp, pickupCarryableObject, postProcessFacingChange, processPickupStep, processPickupStepEntity, recalculateTechAdvancement, recordedTechLevel, recover, refreshLocations, regenerateUnitFileUUID, relHeight, reloadEmptyWeapons, removeAllINarcPods, removeAllTransporters, removeCriticalSlots, removeFiringSolution, removeINarcPod, removeMisc, removePartialCoverHits, removeSensorContact, removeTowedUnit, removeTransporter, resetBayDoors, resetBays, resetBombAttacks, resetCoolantFailureAmount, resetFiringArcs, resetPickedUpMekWarriors, resetTransporter, restore, rollMovementInBuilding, scmCritStateCount, setAbandonmentAnnouncedRound, setAlreadyTwisted, setAltitude, setArcFired, setArmor, setArmor, setArmor, setArmorTechLevel, setArmorTechLevel, setArmorTechRating, setArmorTechRating, setArmorTonnage, setArmorType, setArmorType, setArmorType, setArmsFlipped, setArmsFlipped, setASEWAffected, setAssaultDropInProgress, setBARRating, setBARRating, setBaseChassisFireConWeight, setBATaserShutdown, setBloodStalkerTarget, setBoardId, setBoobyTrapInitiated, setBraceLocation, setC3ecmAffected, setC3iNextUUIDAsString, setC3Master, setC3Master, setC3MasterIsUUIDAsString, setC3NetId, setC3NetId, setC3NetIdSelf, setC3UUID, setC3UUIDAsString, setCamouflage, setCanon, setCanUnstickByJumping, setCaptured, setCarcass, setCarefulStand, setCarriedObjects, setChassis, setClanChassisName, setClearingMinefield, setClearingWoods, setClimbing, setClimbingLevelsChosen, setClimbMode, setCommander, setConsecutiveRHSUses, setConversionMode, setConvertingNow, setCrew, setCritical, setCustomWeaponOrder, setCustomWeaponOrder, setDangling, setDeployed, setDeployRound, setDesignValid, setDetectedByEnemy, setDisplacementAttack, setDisplayName, setDone, setDoomed, setDuplicateMarker, setEiShutdown, setElevation, setEMI, setEMPInterference, setEMPShutdownRounds, setEngineTechRating, setEngineTechRating, setEvading, setEverSeenByEnemy, setExternalId, setExternalIdAsString, setExternalSearchlight, setFacing, setFallen, setFindingClub, setFiredTsempThisTurn, setFleeZone, setForceGeneratorAvailability, setForceId, setForceString, setGame, setGameOptions, setGrappled, setGrappledThisRound, setGrappleSide, setHardenedArmorDamaged, setHasDamagedRHS, setHasFiredTsemp, setHidden, setHiddenActivationPhase, setHullDown, setIcon, setId, setIGame, setIlluminated, setImpLastTurn, setInfantryCombatAttacker, setInfantryCombatTargetId, setInfantryCombatTurnCount, setInfantryCombatWantsWithdrawal, setInitialBV, setInternal, setInternal, setInvalidSourceBuildReasons, setIsJumpingNow, setJumpingWithMechanicalBoosters, setLandedAssaultDrop, setLastTarget, setLastTargetDisplayName, setLayingMines, setLoadedKeepers, setLoadedThisTurn, setLocationBlownOff, setLocationBlownOffThisPhase, setLocationStatus, setLocationStatus, setMadePointblankShot, setMagneticPulseHit, setManualBV, setManualShutdown, setMASCUsed, setMissionRoles, setMixedTech, setModel, setMovedBackwards, setMovementMode, setMulId, setNC3NextUUIDAsString, setNeverDeployed, setNewRoundNovaNetworkString, setNextSensor, setOffBoard, setOriginalBuildYear, setOriginalJumpMP, setOriginalWalkMP, setOwner, setOwnerId, setPassedThrough, setPassedThroughBoardId, setPassedThroughFacing, setPendingAbandon, setPendingVariableRangeTargetingMode, setPlayerPickedPassThrough, setPosition, setPosition, setPowerReverse, setProne, setPublished, setPublishedSources, setQuirks, setRamming, setRapidFire, setReckless, setRecoveryTurn, setRemovalCondition, setRetreatedDirection, setSalvage, setSearchlightOverride, setSearchlightState, setSecondaryFacing, setSecondaryFacing, setSelfDestructedThisTurn, setSelfDestructing, setSelfDestructInitiated, setShutDown, setShutDownThisPhase, setSource, setSources, setSpotTargetId, setSpotting, setStartingAnyNWx, setStartingAnyNWy, setStartingAnySEx, setStartingAnySEy, setStartingOffset, setStartingPos, setStartingWidth, setStartupThisPhase, setStruck, setStructuralTechRating, setStructuralTechRating, setStructureTechLevel, setStructureType, setStructureType, setStuck, setSuperchargerUsed, setSwarmAttackerId, setSwarmTargetId, setTaggedBy, setTargetBay, setTaserFeedback, setTaserInterference, setTaserShutdownRounds, setTechFaction, setTechLevel, setTowedBy, setTowing, setTractor, setTraitorId, setTransportId, setTsempEffect, setTurnInterrupted, setUnitFileUUID, setUnitNumber, setUnitRole, setUnjammingRAC, setUnloaded, setUsedRHSLastTurn, setUsedSearchlight, setUseManualBV, setVariableRangeTargetingMode, setVectors, setVisibleToEnemy, setWeaponHit, setWeaponOrderChanged, setWeaponSortOrder, setWeight, setWhoCanDetect, setWhoCanSee, setWigeLiftoffHover, setYear, shouldDeploy, shouldOffBoardDeploy, shouldUseEdge, sideTable, sideTable, sideTable, sideTable, sideTableRam, slotNumber, specificName, statusToString, statusToString, statusToString, storeOriginalUnitData, storeSavedUnitData, taserShutdown, toggleConversionMode, toString, towUnit, turnWasInterrupted, unload, updateBays, updateDuplicateMarkerAfterDelete, usedSearchlight, usedTag, usesTurnMode, usesWeaponBays, wasLoadedThisTurn, wasNeverDeployed, wasStruck, weaponFired, weaponFiredFrom, whichBay, wigeLiftoffHoverMethods inherited from class megamek.common.turns.TurnOrdered
clearInitiative, generateTurnOrder, getAeroTurns, getDropshipTurns, getEvenTurns, getInitCompensationBonus, getInitiative, getJumpshipTurns, getMultiTurns, getNormalTurns, getOtherTurns, getSmallCraftTurns, getSpaceStationTurns, getTeleMissileTurns, getWarshipTurns, incrementAeroTurns, incrementDropshipTurns, incrementEvenTurns, incrementJumpshipTurns, incrementMultiTurns, incrementOtherTurns, incrementSmallCraftTurns, incrementSpaceStationTurns, incrementTeleMissileTurns, incrementWarshipTurns, resetAeroTurns, resetDropshipTurns, resetEvenTurns, resetInitiativeCompensation, resetJumpshipTurns, resetMultiTurns, resetOtherTurns, resetSmallCraftTurns, resetSpaceStationTurns, resetTeleMissileTurns, resetWarshipTurns, rollInitAndResolveTies, rollInitAndResolveTies, rollInitiative, rollInitiative, setInitCompensationBonus, setInitiativeMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface megamek.common.units.BTObject
hasAerodyneSpheroidDistinction, isAerodyne, isAerospace, isAerospaceFighter, isAerospaceSV, isBattleArmor, isBattlefieldSupportAsset, isBattleMek, isCombatVehicle, isConventionalFighter, isConventionalInfantry, isDropShip, isFighter, isFixedWingSupport, isGround, isHandheldWeapon, isIndustrialMek, isInfantry, isJumpShip, isMek, isObjectiveMarker, isProtoMek, isQuadMek, isSingleUnit, isSpaceStation, isSupportVehicle, isTripodMek, isUnitGroup, isVehicle, isWarShipMethods inherited from interface megamek.common.interfaces.CombatRole
hasRoleMethods inherited from interface megamek.common.interfaces.ForceAssignable
partOfForceMethods inherited from interface megamek.common.units.IAero
canLandHorizontally, canLandVertically, canTakeOffHorizontally, canTakeOffVertically, checkDown, checkHover, checkManeuver, checkRolls, checkStall, checkThrustSI, checkThrustSITotal, checkVelocityDouble, checkVerticalTakeOff, getAltitude, getFuelUsed, getLandingControlRoll, getLandingControlRoll, getLandingCoords, getTakeOffLength, hasRoomForHorizontalLanding, hasRoomForHorizontalLanding, hasRoomForHorizontalTakeOff, hasRoomForLanding, hasRoomForLanding, hasRoomForVerticalLanding, hasRoomForVerticalLanding, isAirborne, isSpaceborne, land, liftOff, requiresFuel, rollArcs, taxingAeroProhibitedTerrains, updateWeaponGroups, useFuelMethods inherited from interface megamek.common.units.IBomber
applyBombs, clearBombs, getBombChoices, getBombPoints, getBombPoints, getBombs, getExternalBombPoints, getInternalBombsDamageTotal, getMaxExtBombSize, getMaxIntBombSize, getVTOLBombTarget, isVTOLBombing, setBombChoices, setVTOLBombTargetMethods inherited from interface megamek.common.equipment.ICarryable
getCarriedObjectDamageAllocation, targetForArmHitToHitCarriedObjectMethods inherited from interface megamek.common.game.InGameObject
hasOwnerMethods inherited from interface megamek.common.interfaces.ITechnology
calcEraAvailability, calcEraAvailability, calcYearAvailability, calcYearAvailability, calcYearAvailability, findMinimumRulesLevel, findMinimumRulesLevel, getAdvancedRange, getAdvancedRange, getCodeFromIOAbbr, getCodeFromMMAbbr, getCommonDate, getEraAvailabilityName, getEraAvailabilityName, getExperimentalRange, getExperimentalRange, getExtinctionDate, getExtinctionRange, getFullRatingName, getFullRatingName, getIntroductionDate, getProductionDate, getPrototypeDate, getReintroductionDate, getSimpleLevel, getSimpleLevel, getSimpleLevel, getStandardRange, getStandardRange, getTechLevel, getTechLevel, getTechRatingName, isAvailableIn, isAvailableIn, isAvailableIn, isExtinct, isExtinct, isExtinct, isLegal, isLegalMethods inherited from interface megamek.common.units.Targetable
isBuildingEntityOrGunEmplacement, isHexBeingBombed, isOnBoardMethods inherited from interface megamek.common.equipment.Transporter
alwaysDamageCargoIfTransportHit, canTow, getCarryables, getNameForRecordSheets, getNumberLoadedThisTurn, getNumberUnloadedThisTurn, getTransporterType, hardpointCost, setEntity
-
Field Details
-
LOC_HULL
public static final int LOC_HULL- See Also:
-
-
Constructor Details
-
SmallCraft
public SmallCraft()
-
-
Method Details
-
getUnitType
public int getUnitType()- Overrides:
getUnitTypein classAero- See Also:
-
getConstructionTechAdvancement
Description copied from class:Entityreturn - the base construction option tech advancement- Overrides:
getConstructionTechAdvancementin classAero
-
isAutoEject
public boolean isAutoEject()- Overrides:
isAutoEjectin classAero- Returns:
- Returns the autoEject.
-
isPrimitive
public boolean isPrimitive()- Overrides:
isPrimitivein classAero- Returns:
- Whether the unit uses primitive or retro tech construction rules
-
isSmallCraft
public boolean isSmallCraft()Description copied from interface:BTObjectReturns true when this object is a SmallCraft (not a DropShip). Returns false for any type of unit group.- Returns:
- True when this is a SmallCraft
-
setNCrew
public void setNCrew(int crew) -
setNOfficers
public void setNOfficers(int officer) -
setNGunners
public void setNGunners(int gunners) -
setNPassenger
public void setNPassenger(int pass) - Overrides:
setNPassengerin classEntity
-
setNBattleArmor
public void setNBattleArmor(int ba) -
setNMarines
public void setNMarines(int marines) Description copied from class:EntityUpdates the number of marines aboard- Overrides:
setNMarinesin classEntity- Parameters:
marines- The number of marines to add/subtract
-
setNOtherPassenger
public void setNOtherPassenger(int other) -
getNCrew
public int getNCrew() -
getNPassenger
public int getNPassenger()- Overrides:
getNPassengerin classAero- 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
-
getNOfficers
public int getNOfficers()- Overrides:
getNOfficersin classAero- Returns:
- The total number of officers for vessels.
-
getNGunners
public int getNGunners()- Overrides:
getNGunnersin classAero- Returns:
- The total number of gunners for vessels.
-
getNBattleArmor
public int getNBattleArmor()- Overrides:
getNBattleArmorin classAero- Returns:
- The number battle armored marines available to vessels for boarding actions.
-
getNMarines
public int getNMarines()- Overrides:
getNMarinesin classAero- Returns:
- The number conventional marines available to vessels for boarding actions.
-
getNOtherPassenger
public int getNOtherPassenger() -
getNOtherCrew
Returns a mapping of how many crewmembers from other units this unit is carrying and what ship they're from by external ID -
getTotalOtherCrew
public int getTotalOtherCrew()Convenience method to return all crew from other craft aboard from the above Map -
addNOtherCrew
Adds a number of crewmembers from another ship keyed by that ship's external ID- Parameters:
id- The external ID of the ship these crew came fromn- The number to add
-
getPassengers
Returns a mapping of how many passengers from other units this unit is carrying and what ship they're from by external ID -
getTotalPassengers
public int getTotalPassengers()Convenience method to return all passengers aboard from the above Map -
addPassengers
Adds a number of passengers from another ship keyed by that ship's external ID- Parameters:
id- The external ID of the ship these passengers came fromn- The number to add
-
setEscapePods
public void setEscapePods(int n) -
getEscapePods
public int getEscapePods()- Overrides:
getEscapePodsin classAero- Returns:
- The number of escape pods carried by the unit
-
getLaunchedEscapePods
public int getLaunchedEscapePods()Returns the total number of escape pods launched so far- Overrides:
getLaunchedEscapePodsin classAero
-
setLaunchedEscapePods
public void setLaunchedEscapePods(int n) Updates the total number of escape pods launched so far- Overrides:
setLaunchedEscapePodsin classAero- Parameters:
n- The number to change
-
setLifeBoats
public void setLifeBoats(int n) -
getLifeBoats
public int getLifeBoats()- Overrides:
getLifeBoatsin classAero- Returns:
- The number of lifeboats carried by the unit
-
getLaunchedLifeBoats
public int getLaunchedLifeBoats()Returns the total number of lifeboats launched so far- Overrides:
getLaunchedLifeBoatsin classAero
-
setLaunchedLifeBoats
public void setLaunchedLifeBoats(int n) Updates the total number of lifeboats launched so far- Overrides:
setLaunchedLifeBoatsin classAero- Parameters:
n- The number to change
-
getStrategicFuelUse
public double getStrategicFuelUse()Description copied from class:AeroUsed by SmallCraft and Jumpship and their child classes.- Overrides:
getStrategicFuelUsein classAero- Returns:
- The tons of fuel burned in a day at 1G using strategic movement.
-
primitiveFuelFactor
public double primitiveFuelFactor()Description copied from class:AeroSome primitive aerospace units have their fuel efficiency reduced by a factor based on construction year.- Overrides:
primitiveFuelFactorin classAero- Returns:
- The primitive fuel factor for the build year.
-
getLocationAbbreviations
- Overrides:
getLocationAbbreviationsin classAero
-
getLocationNames
- Overrides:
getLocationNamesin classAero
-
locations
public int locations()Description copied from class:AeroReturns the number of locations in the entity -
getBodyLocation
public int getBodyLocation()Description copied from class:EntityDetermines where to place equipment that does not require a specific location. What this means varies byEntitytype.- Overrides:
getBodyLocationin classAero- 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.
-
rollHitLocation
Description copied from class:EntityRolls up a hit location- Overrides:
rollHitLocationin classAero
-
getWeaponArc
public int getWeaponArc(int weaponNumber) Description copied from class:AeroReturns the Compute.ARC that the weapon fires into.- Overrides:
getWeaponArcin classAero- Parameters:
weaponNumber- integer equipment number, index from equipment list- Returns:
- arc the specified weapon is in
-
getArcsWithGuns
public int getArcsWithGuns() -
hasWeaponInArc
public boolean hasWeaponInArc(int loc, boolean rearMount) -
getArmorWeight
public double getArmorWeight()Description copied from class:EntityThe total weight of the armor on this unit. This is guaranteed to be rounded properly for both single-type and patchwork armor.- Overrides:
getArmorWeightin classEntity- Returns:
- The armor weight in tons.
-
getCost
Description copied from class:EntityCalculates and returns the C-bill cost of the unit. The parameter ignoreAmmo can be used to include or exclude ("dry cost") the cost of ammunition on the unit. A report for the cost calculation will be written to the given calcReport. -
getPriceMultiplier
public double getPriceMultiplier()Description copied from class:EntityReturns a multiplier that combines multiplicative construction cost modifiers for this Entity.This includes only modifiers that apply to an Entity's final, total cost (e.g. - the 1.25x modifier for being an omni-unit, or the 32.0x for being an aerodyne DropShip). It does NOT include multipliers that only apply to a sub-part of the unit (e.g. the weight based multiplier that applies to a vehicle's internal structure cost).
This allows MekHQ to scale the price of a Unit's Parts in a more appropriate manner.
Defaults to 1.0
- Overrides:
getPriceMultiplierin classAero
-
getMaxEngineHits
public int getMaxEngineHits()- Overrides:
getMaxEngineHitsin classAero
-
getBVTypeModifier
public double getBVTypeModifier()Description copied from class:AeroNot used directly but is overwritten in 5 other classes.- Overrides:
getBVTypeModifierin classAero- Returns:
- BV Type Modifier.
-
loadWeapon
need to check bay location before loading ammo- Overrides:
loadWeaponin classEntity
-
getTotalCommGearTons
public int getTotalCommGearTons()- Overrides:
getTotalCommGearTonsin classAero- Returns:
- the total tonnage of communications gear in this entity
-
hasActiveECM
public boolean hasActiveECM()Description copied from class:EntityDoes the Mek have a functioning ECM unit?- Overrides:
hasActiveECMin classEntity
-
getECMRange
public int getECMRange()What's the range of the ECM equipment?- Overrides:
getECMRangein classAero- Returns:
- the
intrange of this unit's ECM. This value will beEntity.NONEif no ECM is active.
-
isCrewProtected
public boolean isCrewProtected()- Overrides:
isCrewProtectedin classAero- Returns:
- is the crew of this vessel protected from gravitational effects, see StratOps, pg. 36
-
height
public int height()Description copied from class:EntityReturns the height of the unit, that is, how many levels above its elevation it is for LOS purposes. Default is 0. -
getEntityType
public long getEntityType()- Overrides:
getEntityTypein classAero
-
isBomber
public boolean isBomber()Fighters may carry external ordnance; Other Aerospace units with cargo bays and the Internal Bomb Bay quirk may carry bombs internally.- Specified by:
isBomberin interfaceTargetable- Overrides:
isBomberin classAero- Returns:
- boolean
-
calculateWalk
protected int calculateWalk()Do not recalculate walkMP when adding engine.- Overrides:
calculateWalkin classAero
-
isLargeAerospace
public boolean isLargeAerospace()Description copied from interface:BTObjectReturns true when this object is a large aerospace unit (SmallCraft, DropShip, JumpShip, WarShip, Space Station). Returns false for any type of unit group even if it is of the right type.- Returns:
- True when this is a large aerospace unit
-
getLandingLength
public int getLandingLength() -
autoSetMaxBombPoints
public void autoSetMaxBombPoints()Description copied from class:AeroRecalculates the internal and external hardpoints that this aero unit has. TM p.217, TW p.245- Overrides:
autoSetMaxBombPointsin classAero
-
getGenericBattleValue
public int getGenericBattleValue()Description copied from class:EntityCalculates a "generic" Battle Value that is based on the average of all units of this type and tonnage. The purpose of this generic Battle Value is to allow a comparison of this unit's actual BV to that for units of its class. This can be used to balance forces without respect to unit or pilot quality.The generic BV values are calculated by a statistical elasticity model based on all data from the MegaMek database.
- Specified by:
getGenericBattleValuein classEntity- Returns:
- The generic Battle value for this unit based on its tonnage and type
-
hasPatchworkArmor
public boolean hasPatchworkArmor()- Overrides:
hasPatchworkArmorin classEntity- Returns:
- True if this unit has patchwork armor. Note that this is checked by comparing actual armor types (and tech level) across the locations - in other words, it is *not* a simple boolean flag; instead, the result will always correspond to the unit's armoring.
-
getRecoveryTime
public int getRecoveryTime()Description copied from class:EntityReturns the recovery time for this entity in minutes.This method provides the base recovery time required for this entity type. The recovery time represents the duration needed to recover, repair, or prepare the entity after deployment or damage.
Subclasses should override this method to provide entity-specific recovery times based on their type, weight class, or other relevant characteristics.
Manual Reference: CamOps pg 214
- Overrides:
getRecoveryTimein classEntity- Returns:
- The recovery time in minutes. The default implementation returns 60 minutes.
-
isChassisFamiliarityEligible
public boolean isChassisFamiliarityEligible()Description copied from class:EntityReturns whether this unit is a chassis-familiarity-eligible type for MekHQ's Familiarity system- Overrides:
isChassisFamiliarityEligiblein classEntity- Returns:
trueif familiarity is tracked for this unit
-