megamek.common
Class Jumpship

java.lang.Object
  extended by megamek.common.TurnOrdered
      extended by megamek.common.Entity
          extended by megamek.common.Aero
              extended by megamek.common.Jumpship
All Implemented Interfaces:
java.io.Serializable, RoundUpdated, Targetable, Transporter
Direct Known Subclasses:
SpaceStation, Warship

public class Jumpship
extends Aero

Author:
Jay Lawson
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class megamek.common.Entity
Entity.EntityFluff
 
Field Summary
(package private)  boolean hasLF
           
static int LOC_AFT
           
static int LOC_ALS
           
static int LOC_ARS
           
static int LOC_FLS
           
static int LOC_FRS
           
static int LOC_NOSE
           
 
Fields inherited from class megamek.common.Aero
ALT_BOMB_ATTACK, COCKPIT_COMMAND_CONSOLE, COCKPIT_SHORT_STRING, COCKPIT_SMALL, COCKPIT_STANDARD, COCKPIT_STRING, 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, critThresh, DIVE_BOMB_ATTACK, HEAT_DOUBLE, HEAT_SINGLE, LOC_LWING, LOC_RWING, LOC_WINGS, RAM_AWAY_DIR, RAM_AWAY_OBL, RAM_TOWARD_DIR, RAM_TOWARD_OBL, SPACE_BOMB_ATTACK, vstol, weaponGroups
 
Fields inherited from class megamek.common.Entity
_isEMId, altitude, ammoList, armorTechLevel, armorType, armsFlipped, aTracker, battleForceDebugString, BATTLEFORCEEXTREMERANGE, BATTLEFORCELONGRANGE, BATTLEFORCEMEDIUMRANGE, battleForceMinRangeModifier, BATTLEFORCESHORTRANGE, battleForceToHitModifier, bombList, bvText, c3CompanyMasterIndex, c3Master, c3NetIdString, canUnstickByJumping, carcass, chassis, crew, crits, damageThisPhase, damageThisRound, DEBUGBATTLEFORCE, delta_distance, designValid, destroyed, displacementAttack, displayName, dodging, done, doomed, duplicateMarker, elevation, endColumn, endRow, endTable, engine, engineHitsThisRound, equipmentList, externalId, facing, failedEquipmentList, findingClub, fluff, game, gotPavementBonus, GRAPPLE_BOTH, GRAPPLE_LEFT, GRAPPLE_RIGHT, hasSpotlight, heat, heatBuildup, heatFromExternal, heatSinkCoolantFailureFactor, hitThisRoundByAntiTSM, hullDown, id, illuminated, iNarcPods, infernos, inReverse, isCarefulStanding, isHidden, jumpMP, killerId, lastTarget, layingMines, LOC_DESTROYED, LOC_NONE, m_lNarcedBy, m_lPendingNarc, MAX_C3_NODES, miscList, mixedTech, model, moved, movementMode, mpUsed, mpUsedLastRound, narcPods, nl, NONE, omni, owner, ownerId, pendingINarcPods, pendingNarcPods, position, prone, reckless, rolledForEngineExplosion, sec_facing, secondaryPositions, shortName, shutDown, shutdownByBATaser, shutDownThisPhase, source, spotlightIsActive, spotting, startColumn, startRow, startTable, structureType, stuckInSwamp, taggedBy, taserFeedBackRounds, taserInterference, taserInterferenceRounds, taserShutdownRounds, techLevel, tmTracker, totalWeaponList, unjammingRAC, usedSearchlight, vectors, walkMP, weaponBayList, weaponGroupList, weaponList, weight, year
 
Fields inherited from interface megamek.common.Targetable
TYPE_BLDG_IGNITE, 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_INARC_POD, TYPE_MINEFIELD_CLEAR, TYPE_MINEFIELD_DELIVER, TYPE_SEARCHLIGHT
 
Constructor Summary
Jumpship()
           
 
Method Summary
 void addStandardDamage(int damage, HitData hit)
           
 void autoSetThresh()
           
 int calculateBattleValue(boolean ignoreC3, boolean ignorePilot)
          Calculates the battle value of this mech.
 boolean canJump()
           
 boolean doomedInAtmosphere()
           
 boolean doomedInSpace()
           
 boolean doomedOnGround()
           
 double getAccumulatedThrust()
           
 int getAdjacentArcCCW(int arc)
          find the adjacent firing arc on this vessel counter-clockwise
 int getAdjacentArcCW(int arc)
          find the adjacent firing arc on this vessel clockwise
 int getArcswGuns()
           
 double getArmorWeight(int loc)
           
 double getBVTypeModifier()
           
 double getCost(boolean ignoreAmmo)
          There is a mistake in some of the AT2r costs for some reason they added ammo twice for a lot of the level 2 designs, leading to costs that are too high
 int getECMRange()
          What's the range of the ECM equipment?
 int getEscapePods()
           
 double getFuelPerTon()
           
 int getGravDeck()
           
 int getGravDeckHuge()
           
 int getGravDeckLarge()
           
 int getHQIniBonus()
           
 int getKFIntegrity()
           
 int getLifeBoats()
           
 java.lang.String[] getLocationAbbrs()
           
 java.lang.String[] getLocationNames()
           
 int getMaxEngineHits()
           
 int getNCrew()
           
 int getNPassenger()
           
 int getOppositeLocation(int loc)
          what location is opposite the given one
 int getRunMP(boolean gravity, boolean ignoreheat)
           
 int getSailIntegrity()
           
 int getStandardDamage(int loc)
           
 double getStationKeepingThrust()
           
 int getThresh(int loc)
           
 int getTotalGravDeck()
           
 int getWeaponArc(int wn)
          Returns the Compute.ARC that the weapon fires into.
 boolean hasActiveECM()
          All military jumpships automatically have ECM if in space
 boolean hasHPG()
           
 boolean hasLF()
           
 boolean hasWeaponInArc(int loc)
           
 void initializeKFIntegrity()
           
 void initializeSailIntegrity()
           
 void initializeThresh(int loc)
           
 boolean isCrewProtected()
           
 boolean loadWeapon(Mounted mounted, Mounted mountedAmmo)
          need to check bay location before loading ammo
 int locations()
          Returns the number of locations in the entity
 void newRound(int roundNumber)
          Start a new round
 void resetStandardDamage()
           
 HitData rollHitLocation(int table, int side)
          Rolls up a hit location
 void setAccumulatedThrust(double d)
           
 void setEngine(Engine e)
           
 void setEscapePods(int n)
           
 void setGravDeck(int n)
           
 void setGravDeckHuge(int n)
           
 void setGravDeckLarge(int n)
           
 void setHPG(boolean b)
           
 void setKFIntegrity(int kf)
           
 void setLF(boolean b)
           
 void setLifeBoats(int n)
           
 void setNCrew(int crew)
           
 void setNPassenger(int pass)
           
 void setSailIntegrity(int sail)
           
 void setThresh(int val, int loc)
           
 
Methods inherited from class megamek.common.Aero
addClanCase, addEntityBonuses, addEquipment, applyBombs, areWingsHit, autoSetCapArmor, autoSetFatalThresh, autoSetInternal, autoSetMaxBombPoints, autoSetSI, calculateBattleValue, calculateWalk, canChangeSecondaryFacing, canCharge, canDFA, canGoDown, canGoHullDown, canLoad, canRam, canTakeOffHorizontally, canTakeOffVertically, canUnjamRAC, checkDown, checkHover, checkManeuver, checkRolls, checkStall, checkThrustSI, checkThrustSITotal, checkVelocityDouble, checkVerticalTakeOff, chooseSideRam, clipSecondaryFacing, didAccDecNow, didAccLast, didFailManeuver, doomedInVacuum, get0SI, getAltLoss, getArmorRemainingPercent, getArmorType, getAvionicsHits, getBadCriticals, getBombChoices, getBombPoints, getCap0Armor, getCapArmor, getCICHits, getClusterMods, getCockpitType, getCockpitTypeString, getCockpitTypeString, getCriticalEffect, getCurrentDamage, getCurrentThrust, getCurrentVelocity, getCurrentVelocityActual, getDependentLocation, getECCMBonus, getECCMRoll, getECCMStrength, getECCMTarget, getElevation, getEngineCritHeat, getEngineHits, getFatalThresh, getFCSHits, getForwardArc, getFuel, getFuelUsed, getGravPrimaryThreshold, getGravSecondaryThreshold, getHeatCapacity, getHeatCapacityWithWater, getHeatSinks, getHeatType, getIgnoredCrewHits, getInternalRemainingPercent, getLeftThrustHits, getMaxBombPoints, getMaxElevationChange, getMovementAbbr, getMovementString, getNextVelocity, getNoOfSlots, getPotCrit, getRearArc, getRightThrustHits, getRunMPwithoutMASC, getSensorHits, getSI, getStraightMoves, getSuspensionFactor, getTakeOffLength, getTotalCommGearTons, getTransferLocation, getWalkMP, getWhoFirst, hasArmoredEngine, hasCase, hasLifeSupport, hasModularArmor, hasModularArmor, hasRearArmor, hasRoomForHorizontalTakeOff, height, initializeSI, isGearHit, isHexProhibited, isImmobile, isNuclearHardened, isOutControl, isOutControlTotal, isOutCtrlHeat, isRandomMove, isRepairable, isRolled, isSecondaryArcWeapon, isSpheroid, isValidSecondaryFacing, isVSTOL, land, liftOff, resetAltLoss, restore, rollArcs, rollHitLocation, set0SI, setAccDecNow, setAccLast, setAltLoss, setArmorType, setAvionicsHits, setBombChoices, setCapArmor, setCICHits, setCockpitType, setCritThresh, setCurrentDamage, setCurrentVelocity, setECCMRoll, setEngineHits, setFailedManeuver, setFCSHits, setFuel, setGameOptions, setGearHit, setHeatSinks, setHeatType, setIgnoredCrewHits, setLeftThrustHits, setLifeSupport, setNextVelocity, setOmni, setOutControl, setOutCtrlHeat, setPotCrit, setRandomMove, setRightThrustHits, setRolled, setSensorHits, setSI, setSpheroid, setStraightMoves, setVSTOL, setWhoFirst, setWingsHit, shouldMoveBackHex, sideTableRam, sideTableRam, updateWeaponGroups, useFuel, victoryReport, wasCritThresh
 
Methods inherited from class megamek.common.Entity
absHeight, addBomb, addBomb, addConditionBonuses, addCoolantFailureAmount, addCritical, addCritical, addEquipment, addEquipment, addEquipment, addEquipment, addEquipment, addEquipment, addEquipment, addFailedEquipment, addKill, addPassedThrough, addPilotingModifierForTerrain, addPilotingModifierForTerrain, addPilotingModifierForTerrain, addTargetedBySwarm, addTransporter, addWeaponGroup, applyDamage, applyGravityEffectsOnMP, applySantaAnna, armorStringFor, assignAMS, attachINarcPod, attachNarcPod, baTaserShutdown, C3MasterIs, calcElevation, calcElevation, calculateFreeC3MNodes, calculateFreeC3Nodes, canAssaultDrop, canAssist, canFlee, canFlipArms, canGoDown, canGoUp, canLayMine, canLoad, canSpot, canTransferCriticals, canUnstickByJumping, checkBogDown, checkDislodgeSwarmers, checkGetUp, checkLandingInHeavyWoods, checkLandingOnIce, checkLandingWithDamage, checkMovedTooFast, checkMovementInBuilding, checkRecklessMove, checkRubbleMove, checkRunningWithDamage, checkSideSlip, checkSkid, checkSprintingWithMASC, checkSprintingWithSupercharger, checkUnstall, checkWaterMove, checkWaterMove, chooseSide, clearQuirks, climbMode, countQuirks, countQuirks, countWorkingMisc, damageBayDoor, damageDockCollar, damageDoorRecovery, decodeTransporters, deployOffBoard, destroy, destroyLocation, destroyRetractableBlade, doCheckEngineStallRoll, elevationOccupied, encodeTransporters, entityIsBiped, entityIsQuad, equals, extendBlade, findTargetedDisplacement, fixElevation, generateDisplayName, generateShortName, getActiveSensor, getActiveUMUCount, getActiveVibrobladeHeat, getAllUMUCount, getAltitude, getAmmo, getArmor, getArmor, getArmor, getArmorString, getArmorString, getArmorTechLevel, getArmorWeight, getArmsFlipped, getBAPRange, getBARRating, getBasePilotingRoll, getBasePilotingRoll, getBattleForceArmorPoints, getBattleForceDamageThresholdString, getBattleForceJumpPoints, getBattleForceMovement, getBattleForceMovementPoints, getBattleForceOverHeatValue, getBattleForcePoints, getBattleForceSize, getBattleForceSpecialAbilites, getBattleForceStandardWeaponsDamage, getBattleForceStandardWeaponsDamage, getBattleForceStandardWeaponsDamage, getBattleForceStandardWeaponsDamage, getBattleForceStructurePoints, getBattleForceTotalHeatGeneration, getBayByAmmo, getBayLoadedUnits, getBlueShieldRounds, getBombLoadout, getBombs, getBombs, getBVText, getC3Master, getC3MasterId, getC3NetId, getC3Top, getCargoMpReduction, getChassis, getClubs, getCoolantFailureAmount, getCrew, getCritical, getDamageReductionFromModularArmor, getDeployRound, getDisplacementAttack, getDisplayName, getDocks, getDroppableUnits, getECMStrength, getEmptyCriticals, getEngine, getEquipment, getEquipment, getEquipmentNum, getEquipmentType, getEvasionBonus, getExteriorUnitAt, getExternalId, getExternalUnits, getExtraCommGearTons, getExtremeRangeModifier, getFacing, getFailedEquipment, getFighterBays, getFighterLaunchRate, getFirstBay, getFirstWeapon, getFluff, getGame, getGaveKillCredit, getGhostTargetOverride, getGhostTargetRoll, getGhostTargetRollMoS, getGoodCriticals, getGoodCriticals, getGrappled, getGrappleSide, getGyroType, getHeading, getHeatFiringModifier, getHeatInArc, getHeatMPReduction, getHeight, getHitCriticals, getHittableCriticals, getId, getINarcPodsAttached, getInternal, getInternal, getInternalString, getJumpHeat, getJumpMP, getJumpMP, getJumpMPWithTerrain, getJumpType, getKillNumber, getKills, getLastTarget, getLaunchableFighters, getLaunchableSmallCraft, getLoadedBay, getLoadedFighters, getLoadedSmallCraft, getLoadedUnits, getLocationAbbr, getLocationAbbr, getLocationFromAbbr, getLocationName, getLocationName, getLocationStatus, getLongRangeModifier, getMaxElevationDown, getMDIniBonus, getMediumRangeModifier, getMisc, getModel, getMovementBeforeSkidPSRModifier, getMovementMode, getMovementModeAsBattleForceString, getMovementModeAsString, getNextSensor, getNextWeapon, getNumberOf, getNumberOfCriticals, getNumberOfCriticals, getNumberOfCriticals, getNumberOfCriticals, getNumberOfShields, getOArmor, getOArmor, getOArmor, getOffBoardDirection, getOffBoardDistance, getOInternal, getOInternal, getOriginalJumpMP, getOriginalRunMP, getOriginalSprintMP, getOriginalWalkMP, getOwner, getOwnerId, getPassedThrough, getPickedUpMechWarriors, getPosition, getPriorPosition, getQuirkIniBonus, getQuirkList, getQuirks, getRecoveryTurn, getRemovalCondition, getRetreatedDirection, getRunHeat, getRunMP, getRunMPasString, getRunMPwithoutMASC, getRunningGravityLimit, getSecondaryFacing, getSecondaryPositions, getSensorCheck, getSensorDesc, getSensors, getShortName, getShortNameRaw, getShortRangeModifier, getSmallCraftBays, getSmallCraftLaunchRate, getSource, getSpotTargetId, getSprintHeat, getSprintMP, getSprintMP, getSprintMPasString, getSprintMPwithoutMASC, getSprintMPwithoutMASC, getStandingHeat, getStartingPos, getStealthModifier, getStructureType, getSwarmAttackerId, getSwarmTargetId, getTaggedBy, getTargetedBySwarm, getTargetId, getTargetType, getTaserFeedBackRounds, getTaserInterference, getTaserInterferenceRounds, getTaserShutdownRounds, getTechLevel, getTMTracker, getTotalAmmoOfType, getTotalArmor, getTotalInternal, getTotalMunitionsOfType, getTotalOArmor, getTotalOInternal, getTotalWeaponList, getTransferLocation, getTransportBays, getTransportId, getTransports, getTroopCarryingSpace, getTrooperAtLocation, getUnitNumber, getUnusedString, getVector, getVectors, getVelocity, getVibroClaws, getWalkHeat, getWalkMP, getWeaponBayList, getWeaponGroupList, getWeaponList, getWeapons, getWeaponsAndEquipmentCost, getWeaponsAndEquipmentCost, getWeight, getWeightClass, getWeightClassName, getYear, hasActiveAngelECCM, hasActiveAngelECM, hasActiveBlueShield, hasActiveECCM, hasActiveECM, hasActiveEiCockpit, hasActiveShield, hasActiveShield, hasAimModeTargComp, hasArcFired, hasArmoredChassis, hasBAP, hasBAP, hasBARArmor, hasBattleArmorHandles, hasC3, hasC3i, hasC3M, hasC3MM, hasC3S, hasCASEII, hasCASEII, hasDisplacementAttack, hasEiCockpit, hasEnvironmentalSealing, hasFunctionalArmAES, hasFunctionalLegAES, hasGhostTargets, hasHipCrit, hasINarcPodsAttached, hasInfernoAmmo, hasLegActuatorCrit, hasLinkedMGA, hasNoDefenseShield, hasPassiveShield, hasPassiveShield, hasShield, hasSpotlight, hasStealth, hasSystem, hasTAG, hasTargComp, hasUMU, hasVibroblades, hasWorkingMisc, hasWorkingMisc, hasWorkingMisc, hasWorkingMisc, hasWorkingSystem, hasWorkingWeapon, hasWorkingWeapon, hasWorkingWeapon, hasWorkingWeapon, hitAllCriticals, illuminateTarget, initializeArmor, initializeInternal, isActive, isActive, isAirborne, isAirborneVTOL, isAssaultDropInProgress, isAttackingThisTurn, isBATaserShutdown, isBoardProhibited, isCanon, isCapitalFighter, isCapitalScale, isCaptured, isCarcass, isCarefulStand, isChameleonShieldActive, isCharging, isClan, isClanArmor, isClearingMinefield, isCommander, isDeployed, isDesignValid, isDestroyed, isDone, isDoomed, isDropping, isElevationValid, isEligibleFor, isEligibleForFiring, isEligibleForMovement, isEligibleForOffboard, isEligibleForPhysical, isEligibleForTargetingPhase, isEnemyOf, isEvading, isFighter, isFindingClub, isGrappleAttacker, isHidden, isHullDown, isIlluminated, isINarcedBy, isINarcedWith, isLargeCraft, isLayingMines, isLoadableThisTurn, isLocationBad, isLocationDoomed, isMakingDfa, isMilitary, isMixedTech, isNarcedBy, isNOE, isNullSigActive, isOffBoard, isOmni, isOnSameSheet, isPartOfFighterSquadron, isProne, isPushing, isRamming, isReckless, isSalvage, isSeenByEnemy, isSelectableThisTurn, isShutDown, isShutDownThisPhase, isSpotting, isStalled, isStealthActive, isStealthOn, isStuck, isSufferingEMI, isSurfaceNaval, isSystemRepairable, isTargetable, isTargetOfDisplacementAttack, isUnjammingRAC, isUnloadedThisTurn, isUsingManAce, isUsingSpotlight, isVisibleToEnemy, isVoidSigActive, isWeaponBlockedAt, itemOppositeTech, load, load, loadAllWeapons, loadedUnitsHaveActiveECM, loadWeapon, loadWeaponWithSameAmmo, loadWeaponWithSameAmmo, locationHasCase, locationIsLeg, needsRollToStand, onSameC3NetworkAs, onSameC3NetworkAs, passedThrough, passedThroughPrevious, passedWithin, pickUp, printDebugToFile, recover, refreshLocations, reloadEmptyWeapons, removeAllINarcPods, removeAllTransporters, removeCriticals, removeINarcPod, removeMisc, removePartialCoverHits, resetBayDoors, resetFiringArcs, rollMovementInBuilding, setAltitude, setArcFired, setArmor, setArmor, setArmor, setArmorTechLevel, setArmorType, setArmsFlipped, setAssaultDropInProgress, setBATaserShutdown, setC3Master, setC3Master, setC3NetId, setCanon, setCanUnstickByJumping, setCaptured, setCarcass, setCarefulStand, setChassis, setClearingMinefield, setClimbMode, setCommander, setCrew, setCritical, setDeployed, setDeployRound, setDesignValid, setDestroyed, setDisplacementAttack, setDone, setDoomed, setElevation, setEMI, setEvading, setExternalId, setFacing, setFindingClub, setGame, setGrappled, setGrappleSide, setHidden, setHullDown, setId, setIlluminated, setInternal, setInternal, setLandedAssaultDrop, setLastTarget, setLayingMines, setLocationStatus, setMixedTech, setModel, setMovementMode, setNextSensor, setOffBoard, setOriginalJumpMP, setOriginalWalkMP, setOwner, setPassedThrough, setPosition, setProne, setQuirks, setRamming, setRapidFire, setReckless, setRecoveryTurn, setRemovalCondition, setRetreatedDirection, setSalvage, setSecondaryFacing, setSeenByEnemy, setShutDown, setShutDownThisPhase, setSource, setSpotlight, setSpotlightState, setSpotTargetId, setSpotting, setStartingPos, setStructureType, setStructureType, setStuck, setSwarmAttackerId, setSwarmTargetId, setTaggedBy, setTaserFeedback, setTaserInterference, setTaserShutdownRounds, setTechLevel, setTransportId, setUnitNumber, setUnjammingRAC, setUnloaded, setUsedSearchlight, setVectors, setVisibleToEnemy, setWeaponHit, setWeight, setYear, shouldDeploy, sideTable, sideTable, sideTable, statusToString, statusToString, statusToString, toString, unload, updateBays, usedSearchlight, usedTag, usesWeaponBays, weaponFiredFrom, whichBay
 
Methods inherited from class megamek.common.TurnOrdered
clearInitiative, generateTurnOrder, getAeroTurns, getDropshipTurns, getEvenTurns, getInitiative, getJumpshipTurns, getMultiTurns, getNormalTurns, getOtherTurns, getSmallCraftTurns, getSpaceStationTurns, getWarshipTurns, incrementAeroTurns, incrementDropshipTurns, incrementEvenTurns, incrementJumpshipTurns, incrementMultiTurns, incrementOtherTurns, incrementSmallCraftTurns, incrementSpaceStationTurns, incrementWarshipTurns, resetAeroTurns, resetDropshipTurns, resetEvenTurns, resetJumpshipTurns, resetMultiTurns, resetOtherTurns, resetSmallCraftTurns, resetSpaceStationTurns, resetWarshipTurns, rollInitAndResolveTies, rollInitiative
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

LOC_NOSE

public static final int LOC_NOSE
See Also:
Constant Field Values

LOC_FLS

public static final int LOC_FLS
See Also:
Constant Field Values

LOC_FRS

public static final int LOC_FRS
See Also:
Constant Field Values

LOC_AFT

public static final int LOC_AFT
See Also:
Constant Field Values

LOC_ALS

public static final int LOC_ALS
See Also:
Constant Field Values

LOC_ARS

public static final int LOC_ARS
See Also:
Constant Field Values

hasLF

boolean hasLF
Constructor Detail

Jumpship

public Jumpship()
Method Detail

locations

public int locations()
Description copied from class: Aero
Returns the number of locations in the entity

Overrides:
locations in class Aero

getTotalGravDeck

public int getTotalGravDeck()

setGravDeck

public void setGravDeck(int n)

getGravDeck

public int getGravDeck()

setGravDeckLarge

public void setGravDeckLarge(int n)

getGravDeckLarge

public int getGravDeckLarge()

setGravDeckHuge

public void setGravDeckHuge(int n)

getGravDeckHuge

public int getGravDeckHuge()

setHPG

public void setHPG(boolean b)

hasHPG

public boolean hasHPG()

setLF

public void setLF(boolean b)

hasLF

public boolean hasLF()

setEscapePods

public void setEscapePods(int n)

getEscapePods

public int getEscapePods()

setLifeBoats

public void setLifeBoats(int n)

getLifeBoats

public int getLifeBoats()

setNCrew

public void setNCrew(int crew)

setNPassenger

public void setNPassenger(int pass)

getNCrew

public int getNCrew()

getNPassenger

public int getNPassenger()

setThresh

public void setThresh(int val,
                      int loc)
Overrides:
setThresh in class Aero

getThresh

public int getThresh(int loc)
Overrides:
getThresh in class Aero

autoSetThresh

public void autoSetThresh()
Overrides:
autoSetThresh in class Aero

initializeThresh

public void initializeThresh(int loc)
Overrides:
initializeThresh in class Aero

getLocationAbbrs

public java.lang.String[] getLocationAbbrs()
Overrides:
getLocationAbbrs in class Aero

getLocationNames

public java.lang.String[] getLocationNames()
Overrides:
getLocationNames in class Aero

setKFIntegrity

public void setKFIntegrity(int kf)

getKFIntegrity

public int getKFIntegrity()

setSailIntegrity

public void setSailIntegrity(int sail)

getSailIntegrity

public int getSailIntegrity()

initializeSailIntegrity

public void initializeSailIntegrity()

initializeKFIntegrity

public void initializeKFIntegrity()

canJump

public boolean canJump()

setEngine

public void setEngine(Engine e)
Overrides:
setEngine in class Aero

getStandardDamage

public int getStandardDamage(int loc)
Overrides:
getStandardDamage in class Aero

resetStandardDamage

public void resetStandardDamage()
Overrides:
resetStandardDamage in class Aero

addStandardDamage

public void addStandardDamage(int damage,
                              HitData hit)
Overrides:
addStandardDamage in class Aero

getWeaponArc

public int getWeaponArc(int wn)
Description copied from class: Aero
Returns the Compute.ARC that the weapon fires into.

Overrides:
getWeaponArc in class Aero

rollHitLocation

public HitData rollHitLocation(int table,
                               int side)
Description copied from class: Entity
Rolls up a hit location

Overrides:
rollHitLocation in class Aero

getMaxEngineHits

public int getMaxEngineHits()
Overrides:
getMaxEngineHits in class Aero

calculateBattleValue

public int calculateBattleValue(boolean ignoreC3,
                                boolean ignorePilot)
Description copied from class: Entity
Calculates the battle value of this mech. If the parameter is true, then the battle value for c3 will be added whether the mech is currently part of a network or not. This should be overwritten if necessary

Overrides:
calculateBattleValue in class Aero
Parameters:
ignoreC3 - if the contribution of the C3 computer should be ignored when calculating BV.
ignorePilot - if the extra BV due to piloting skill should be ignore, needed for c3 bv

getArcswGuns

public int getArcswGuns()

hasWeaponInArc

public boolean hasWeaponInArc(int loc)

getFuelPerTon

public double getFuelPerTon()

getArmorWeight

public double getArmorWeight(int loc)

getCost

public double getCost(boolean ignoreAmmo)
Description copied from class: Aero
There is a mistake in some of the AT2r costs for some reason they added ammo twice for a lot of the level 2 designs, leading to costs that are too high

Overrides:
getCost in class Aero

doomedOnGround

public boolean doomedOnGround()
Overrides:
doomedOnGround in class Aero

doomedInAtmosphere

public boolean doomedInAtmosphere()
Overrides:
doomedInAtmosphere in class Aero

doomedInSpace

public boolean doomedInSpace()
Overrides:
doomedInSpace in class Aero

loadWeapon

public boolean loadWeapon(Mounted mounted,
                          Mounted mountedAmmo)
need to check bay location before loading ammo

Overrides:
loadWeapon in class Entity

getHQIniBonus

public int getHQIniBonus()
Overrides:
getHQIniBonus in class Entity
Returns:
the initiative bonus this Entity grants for HQ

getOppositeLocation

public int getOppositeLocation(int loc)
what location is opposite the given one

Overrides:
getOppositeLocation in class Aero

hasActiveECM

public boolean hasActiveECM()
All military jumpships automatically have ECM if in space

Overrides:
hasActiveECM in class Entity

getECMRange

public int getECMRange()
What's the range of the ECM equipment?

Overrides:
getECMRange in class Aero
Returns:
the int range of this unit's ECM. This value will be Entity.NONE if no ECM is active.

isCrewProtected

public boolean isCrewProtected()
Overrides:
isCrewProtected in class Aero
Returns:
is the crew of this vessel protected from gravitational effects, see StratOps, pg. 36

getAccumulatedThrust

public double getAccumulatedThrust()

setAccumulatedThrust

public void setAccumulatedThrust(double d)

getStationKeepingThrust

public double getStationKeepingThrust()

newRound

public void newRound(int roundNumber)
Description copied from class: Entity
Start a new round

Specified by:
newRound in interface RoundUpdated
Overrides:
newRound in class Aero
Parameters:
roundNumber - the int number of the new round

getRunMP

public int getRunMP(boolean gravity,
                    boolean ignoreheat)
Overrides:
getRunMP in class Entity

getAdjacentArcCW

public int getAdjacentArcCW(int arc)
find the adjacent firing arc on this vessel clockwise


getAdjacentArcCCW

public int getAdjacentArcCCW(int arc)
find the adjacent firing arc on this vessel counter-clockwise


getBVTypeModifier

public double getBVTypeModifier()
Overrides:
getBVTypeModifier in class Aero