megamek.common
Class Aero

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

public class Aero
extends Entity

Taharqa's attempt at creating an Aerospace entity

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class megamek.common.Entity
Entity.EntityFluff
 
Field Summary
static java.lang.String ALT_BOMB_ATTACK
           
static int COCKPIT_COMMAND_CONSOLE
           
static java.lang.String[] COCKPIT_SHORT_STRING
           
static int COCKPIT_SMALL
           
static int COCKPIT_STANDARD
           
static java.lang.String[] COCKPIT_STRING
           
static int CRIT_AVIONICS
           
static int CRIT_BOMB
           
static int CRIT_CARGO
           
static int CRIT_CIC
           
static int CRIT_CONTROL
           
static int CRIT_CREW
           
static int CRIT_DOCK_COLLAR
           
static int CRIT_DOOR
           
static int CRIT_ENGINE
           
static int CRIT_FCS
           
static int CRIT_FUEL_TANK
           
static int CRIT_GEAR
           
static int CRIT_GRAV_DECK
           
static int CRIT_HEATSINK
           
static int CRIT_KF_BOOM
           
static int CRIT_KF_DRIVE
           
static int CRIT_LEFT_THRUSTER
           
static int CRIT_LIFE_SUPPORT
           
static int CRIT_NONE
           
static int CRIT_RIGHT_THRUSTER
           
static int CRIT_SENSOR
           
static int CRIT_WEAPON
           
static int CRIT_WEAPON_BROAD
           
(package private)  boolean critThresh
           
static java.lang.String DIVE_BOMB_ATTACK
           
static int HEAT_DOUBLE
           
static int HEAT_SINGLE
           
static int LOC_AFT
           
static int LOC_LWING
           
static int LOC_NOSE
           
static int LOC_RWING
           
static int LOC_WINGS
           
static int RAM_AWAY_DIR
           
static int RAM_AWAY_OBL
           
static int RAM_TOWARD_DIR
           
static int RAM_TOWARD_OBL
           
static java.lang.String SPACE_BOMB_ATTACK
           
(package private)  boolean vstol
           
(package private)  java.util.Map<java.lang.String,java.lang.Integer> 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
Aero()
           
 
Method Summary
 void addClanCase()
          Adds clan CASE in every location
 PilotingRollData addEntityBonuses(PilotingRollData prd)
          Add in any piloting skill mods
protected  void addEquipment(Mounted mounted, int loc, boolean rearMounted)
           
 void addStandardDamage(int damage, HitData hit)
           
 void applyBombs()
           
 boolean areWingsHit()
          keep track of whether the wings have suffered a weapon critical hit
 void autoSetCapArmor()
           
 void autoSetFatalThresh()
           
 void autoSetInternal()
          Set the internal structure to the appropriate value for the mech's weight class
 void autoSetMaxBombPoints()
           
 void autoSetSI()
           
 void autoSetThresh()
           
 int calculateBattleValue()
          Calculates the battle value of this entity
 int calculateBattleValue(boolean ignoreC3, boolean ignorePilot)
          Calculates the battle value of this mech.
protected  int calculateWalk()
           
 boolean canChangeSecondaryFacing()
          Can this entity change secondary facing at all?
 boolean canCharge()
          Whether this type of unit can perform charges
 boolean canDFA()
          Whether this type of unit can perform DFA attacks
 boolean canGoDown()
           
 boolean canGoHullDown()
           
 boolean canLoad(Entity unit, boolean checkFalse)
          Determines if this object can accept the given unit.
 boolean canRam()
          Whether this type of unit can perform Ramming attacks
 boolean canTakeOffHorizontally()
           
 boolean canTakeOffVertically()
           
 boolean canUnjamRAC()
          Returns true if the entity has an RAC which is jammed and not destroyed
 PilotingRollData checkDown(int drop, EntityMovementType overallMoveType)
           
 PilotingRollData checkHover(MovePath md)
           
 PilotingRollData checkManeuver(MoveStep step, EntityMovementType overallMoveType)
          Checks if a maneuver requires a control roll
 PilotingRollData checkRolls(MoveStep step, EntityMovementType overallMoveType)
           
 PilotingRollData checkStall(MovePath md)
           
 PilotingRollData checkThrustSI(int thrust, EntityMovementType overallMoveType)
           
 PilotingRollData checkThrustSITotal(int thrust, EntityMovementType overallMoveType)
           
 PilotingRollData checkVelocityDouble(int velocity, EntityMovementType overallMoveType)
           
 PilotingRollData checkVerticalTakeOff()
           
 int chooseSideRam(Coords src)
           
 int clipSecondaryFacing(int n)
          Returns the closest valid secondary facing to the given direction.
 boolean didAccDecNow()
           
 boolean didAccLast()
           
 boolean didFailManeuver()
           
 boolean doomedInAtmosphere()
           
 boolean doomedInSpace()
           
 boolean doomedInVacuum()
           
 boolean doomedOnGround()
           
 int get0SI()
           
 int getAltLoss()
           
 double getArmorRemainingPercent()
          Returns the percent of the armor remaining
 int getArmorType()
           
 int getAvionicsHits()
           
 int getBadCriticals(int type, int index, int loc)
          The number of critical slots that are destroyed in the component.
 int[] getBombChoices()
           
 int getBombPoints()
           
 double getBVTypeModifier()
           
 int getCap0Armor()
           
 int getCapArmor()
           
 int getCICHits()
           
 int getClusterMods()
          get modifications to the cluster hit table for critical hits
 int getCockpitType()
           
 java.lang.String getCockpitTypeString()
           
static java.lang.String getCockpitTypeString(int inCockpitType)
           
 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 getCriticalEffect(int roll, int target)
          get the type of critical caused by a critical roll, taking account of existing damage
 int getCurrentDamage()
           
 int getCurrentThrust()
          Thi is the same as getWalkMP, but does not divide by 2 when grounded
 int getCurrentVelocity()
           
 int getCurrentVelocityActual()
           
 int getDependentLocation(int loc)
          Gets the location that is destroyed recursively
 int getECCMBonus()
           
 int getECCMRoll()
           
 double getECCMStrength()
           
 int getECCMTarget()
           
 int getECMRange()
          What's the range of the ECM equipment?
 int getElevation()
          Returns the elevation of this entity.
 int getEngineCritHeat()
          Returns extra heat generated by engine crits
 int getEngineHits()
           
 int getFatalThresh()
           
 int getFCSHits()
           
 int getForwardArc()
          see Entity.getForwardArc()
 int getFuel()
           
 int getFuelUsed(int thrust)
           
 int getGravPrimaryThreshold()
           
 int getGravSecondaryThreshold()
           
 int getHeatCapacity()
          Returns the amount of heat that the entity can sink each turn.
 int getHeatCapacityWithWater()
          Returns the amount of heat that the entity can sink each turn, factoring in whether the entity is standing in water.
 int getHeatSinks()
           
 int getHeatType()
           
 int getIgnoredCrewHits()
           
 double getInternalRemainingPercent()
          Returns the percent of the SI remaining
 int getLeftThrustHits()
           
 java.lang.String[] getLocationAbbrs()
           
 java.lang.String[] getLocationNames()
           
 int getMaxBombPoints()
           
 int getMaxElevationChange()
          The maximum elevation change the entity can cross
 int getMaxEngineHits()
           
 java.lang.String getMovementAbbr(EntityMovementType mtype)
          Returns the name of the type of movement used.
 java.lang.String getMovementString(EntityMovementType mtype)
          Returns the name of the type of movement used.
 int getNextVelocity()
           
 int[] getNoOfSlots()
           
 int getOppositeLocation(int loc)
          what location is opposite the given one
 int getPotCrit()
           
 int getRearArc()
          see Entity.getRearArc()
 int getRightThrustHits()
           
 int getRunMPwithoutMASC(boolean gravity, boolean ignoreheat)
          Tanks don't have MASC
 int getSensorHits()
           
 int getSI()
           
 int getStandardDamage(int loc)
           
 int getStraightMoves()
           
 int getSuspensionFactor()
           
 int getTakeOffLength()
           
 int getThresh(int loc)
           
 int getTotalCommGearTons()
           
 HitData getTransferLocation(HitData hit)
          Gets the location that excess damage transfers to
 int getWalkMP(boolean gravity, boolean ignoreheat)
          Returns this entity's safe thrust, factored for heat, extreme temperatures, gravity, and bomb load.
 int getWeaponArc(int wn)
          Returns the Compute.ARC that the weapon fires into.
 int getWhoFirst()
           
 boolean hasArmoredEngine()
           
 boolean hasCase()
          check to see if case is available anywhere
 boolean hasLifeSupport()
           
 boolean hasModularArmor()
           
 boolean hasModularArmor(int loc)
           
 boolean hasRearArmor(int loc)
          Does this location have rear armor?
 boolean hasRoomForHorizontalTakeOff()
           
 int height()
          Returns the height of the unit, that is, how many levels above it's elevation is it for LOS purposes.
 void initializeSI(int val)
           
 void initializeThresh(int loc)
           
 boolean isCrewProtected()
           
 boolean isGearHit()
           
 boolean isHexProhibited(IHex hex)
          Returns true if the specified hex contains some sort of prohibited terrain.
 boolean isImmobile()
          Is this entity shut down or is the crew unconscious?
 boolean isNuclearHardened()
          Checks if the unit is hardened agaist nuclear strikes.
 boolean isOutControl()
           
 boolean isOutControlTotal()
           
 boolean isOutCtrlHeat()
           
 boolean isRandomMove()
           
 boolean isRepairable()
          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 isSpheroid()
           
 boolean isValidSecondaryFacing(int n)
          Can this entity torso/turret twist the given direction?
 boolean isVSTOL()
           
 void land()
           
 void liftOff(int altitude)
           
 int locations()
          Returns the number of locations in the entity
 void newRound(int roundNumber)
          Start a new round
 void resetAltLoss()
           
 void resetStandardDamage()
           
 void restore()
          Restores the entity after serialization
 int rollArcs(int arc)
          switches certain arcs due to rolling
 HitData rollHitLocation(int table, int side)
          Rolls up a hit location
 HitData rollHitLocation(int table, int side, int aimedLocation, int aimingMode)
          Rolls up a hit location
 void set0SI(int si)
           
 void setAccDecNow(boolean b)
           
 void setAccLast(boolean b)
           
 void setAltLoss(int i)
           
 void setArmorType(int type)
           
 void setAvionicsHits(int hits)
           
 void setBombChoices(int[] bc)
           
 void setCapArmor(int i)
           
 void setCICHits(int hits)
           
 void setCockpitType(int type)
           
 void setCritThresh(boolean b)
           
 void setCurrentDamage(int i)
           
 void setCurrentVelocity(int velocity)
           
 void setECCMRoll(int i)
           
 void setEngine(Engine e)
           
 void setEngineHits(int hits)
           
 void setFailedManeuver(boolean b)
           
 void setFCSHits(int hits)
           
 void setFuel(int gas)
           
 void setGameOptions()
           
 void setGearHit(boolean hit)
           
 void setHeatSinks(int hs)
           
 void setHeatType(int hstype)
           
 void setIgnoredCrewHits(int hits)
           
 void setLeftThrustHits(int hits)
           
 void setLifeSupport(boolean b)
           
 void setNextVelocity(int velocity)
           
 void setOmni(boolean omni)
           
 void setOutControl(boolean ocontrol)
           
 void setOutCtrlHeat(boolean octrlheat)
           
 void setPotCrit(int crit)
           
 void setRandomMove(boolean randmove)
           
 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 setVSTOL(boolean b)
           
 void setWhoFirst()
           
 void setWingsHit(boolean b)
           
 boolean shouldMoveBackHex(Aero other)
          In cases where another unit occupies the same hex, determine if this Aero should be moved back a hex for targeting purposes
 int sideTableRam(Coords src)
          Used to determine net velocity of ramming attack
 int sideTableRam(Coords src, int face)
           
 void updateWeaponGroups()
           
 void useFuel(int fuelUsed)
          use the specified amount of fuel for this Aero.
 java.util.Vector<Report> victoryReport()
          Generates a vector containing reports on all useful information about this entity.
 boolean 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, getHQIniBonus, 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, 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, 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, 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_LWING

public static final int LOC_LWING
See Also:
Constant Field Values

LOC_RWING

public static final int LOC_RWING
See Also:
Constant Field Values

LOC_AFT

public static final int LOC_AFT
See Also:
Constant Field Values

LOC_WINGS

public static final int LOC_WINGS
See Also:
Constant Field Values

RAM_TOWARD_DIR

public static final int RAM_TOWARD_DIR
See Also:
Constant Field Values

RAM_TOWARD_OBL

public static final int RAM_TOWARD_OBL
See Also:
Constant Field Values

RAM_AWAY_OBL

public static final int RAM_AWAY_OBL
See Also:
Constant Field Values

RAM_AWAY_DIR

public static final int RAM_AWAY_DIR
See Also:
Constant Field Values

HEAT_SINGLE

public static final int HEAT_SINGLE
See Also:
Constant Field Values

HEAT_DOUBLE

public static final int HEAT_DOUBLE
See Also:
Constant Field Values

COCKPIT_STANDARD

public static final int COCKPIT_STANDARD
See Also:
Constant Field Values

COCKPIT_SMALL

public static final int COCKPIT_SMALL
See Also:
Constant Field Values

COCKPIT_COMMAND_CONSOLE

public static final int COCKPIT_COMMAND_CONSOLE
See Also:
Constant Field Values

COCKPIT_STRING

public static final java.lang.String[] COCKPIT_STRING

COCKPIT_SHORT_STRING

public static final java.lang.String[] COCKPIT_SHORT_STRING

CRIT_NONE

public static final int CRIT_NONE
See Also:
Constant Field Values

CRIT_CREW

public static final int CRIT_CREW
See Also:
Constant Field Values

CRIT_FCS

public static final int CRIT_FCS
See Also:
Constant Field Values

CRIT_WEAPON

public static final int CRIT_WEAPON
See Also:
Constant Field Values

CRIT_CONTROL

public static final int CRIT_CONTROL
See Also:
Constant Field Values

CRIT_SENSOR

public static final int CRIT_SENSOR
See Also:
Constant Field Values

CRIT_BOMB

public static final int CRIT_BOMB
See Also:
Constant Field Values

CRIT_ENGINE

public static final int CRIT_ENGINE
See Also:
Constant Field Values

CRIT_FUEL_TANK

public static final int CRIT_FUEL_TANK
See Also:
Constant Field Values

CRIT_AVIONICS

public static final int CRIT_AVIONICS
See Also:
Constant Field Values

CRIT_GEAR

public static final int CRIT_GEAR
See Also:
Constant Field Values

CRIT_HEATSINK

public static final int CRIT_HEATSINK
See Also:
Constant Field Values

CRIT_CARGO

public static final int CRIT_CARGO
See Also:
Constant Field Values

CRIT_DOCK_COLLAR

public static final int CRIT_DOCK_COLLAR
See Also:
Constant Field Values

CRIT_DOOR

public static final int CRIT_DOOR
See Also:
Constant Field Values

CRIT_KF_BOOM

public static final int CRIT_KF_BOOM
See Also:
Constant Field Values

CRIT_LIFE_SUPPORT

public static final int CRIT_LIFE_SUPPORT
See Also:
Constant Field Values

CRIT_LEFT_THRUSTER

public static final int CRIT_LEFT_THRUSTER
See Also:
Constant Field Values

CRIT_RIGHT_THRUSTER

public static final int CRIT_RIGHT_THRUSTER
See Also:
Constant Field Values

CRIT_CIC

public static final int CRIT_CIC
See Also:
Constant Field Values

CRIT_KF_DRIVE

public static final int CRIT_KF_DRIVE
See Also:
Constant Field Values

CRIT_GRAV_DECK

public static final int CRIT_GRAV_DECK
See Also:
Constant Field Values

CRIT_WEAPON_BROAD

public static final int CRIT_WEAPON_BROAD
See Also:
Constant Field Values

SPACE_BOMB_ATTACK

public static final java.lang.String SPACE_BOMB_ATTACK
See Also:
Constant Field Values

DIVE_BOMB_ATTACK

public static final java.lang.String DIVE_BOMB_ATTACK
See Also:
Constant Field Values

ALT_BOMB_ATTACK

public static final java.lang.String ALT_BOMB_ATTACK
See Also:
Constant Field Values

critThresh

boolean critThresh

vstol

boolean vstol

weaponGroups

java.util.Map<java.lang.String,java.lang.Integer> weaponGroups
Constructor Detail

Aero

public Aero()
Method Detail

getLocationAbbrs

public java.lang.String[] getLocationAbbrs()
Specified by:
getLocationAbbrs in class Entity

getLocationNames

public java.lang.String[] getLocationNames()
Specified by:
getLocationNames in class Entity

getWalkMP

public int getWalkMP(boolean gravity,
                     boolean ignoreheat)
Returns this entity's safe thrust, factored for heat, extreme temperatures, gravity, and bomb load.

Overrides:
getWalkMP in class Entity
Parameters:
gravity - Should the movement be factored for gravity
ignoreheat - Should heat be ignored?

getCurrentThrust

public int getCurrentThrust()
Thi is the same as getWalkMP, but does not divide by 2 when grounded

Returns:

locations

public int locations()
Returns the number of locations in the entity

Specified by:
locations in class Entity

canChangeSecondaryFacing

public boolean canChangeSecondaryFacing()
Description copied from class: Entity
Can this entity change secondary facing at all?

Specified by:
canChangeSecondaryFacing in class Entity

isValidSecondaryFacing

public boolean isValidSecondaryFacing(int n)
Description copied from class: Entity
Can this entity torso/turret twist the given direction?

Specified by:
isValidSecondaryFacing in class Entity

clipSecondaryFacing

public int clipSecondaryFacing(int n)
Description copied from class: Entity
Returns the closest valid secondary facing to the given direction.

Specified by:
clipSecondaryFacing in class Entity
Returns:
the the closest valid secondary facing.

isOutControlTotal

public boolean isOutControlTotal()

isOutControl

public boolean isOutControl()

isOutCtrlHeat

public boolean isOutCtrlHeat()

isRandomMove

public boolean isRandomMove()

didAccLast

public boolean didAccLast()

hasLifeSupport

public boolean hasLifeSupport()

setLifeSupport

public void setLifeSupport(boolean b)

isRolled

public boolean isRolled()

setOutControl

public void setOutControl(boolean ocontrol)

setOutCtrlHeat

public void setOutCtrlHeat(boolean octrlheat)

setRandomMove

public void setRandomMove(boolean randmove)

setRolled

public void setRolled(boolean roll)

setAccLast

public void setAccLast(boolean b)

getBombPoints

public int getBombPoints()

getMaxBombPoints

public int getMaxBombPoints()

autoSetMaxBombPoints

public void autoSetMaxBombPoints()

getBombChoices

public int[] getBombChoices()

setBombChoices

public void setBombChoices(int[] bc)

setWhoFirst

public void setWhoFirst()

getWhoFirst

public int getWhoFirst()

getCurrentVelocity

public int getCurrentVelocity()

setCurrentVelocity

public void setCurrentVelocity(int velocity)

getNextVelocity

public int getNextVelocity()

setNextVelocity

public void setNextVelocity(int velocity)

getCurrentVelocityActual

public int getCurrentVelocityActual()

getPotCrit

public int getPotCrit()

setPotCrit

public void setPotCrit(int crit)

getSI

public int getSI()

get0SI

public int get0SI()

getCapArmor

public int getCapArmor()

setCapArmor

public void setCapArmor(int i)

getCap0Armor

public int getCap0Armor()

getFatalThresh

public int getFatalThresh()

getCurrentDamage

public int getCurrentDamage()

setCurrentDamage

public void setCurrentDamage(int i)

set0SI

public void set0SI(int si)

autoSetSI

public void autoSetSI()

autoSetCapArmor

public void autoSetCapArmor()

autoSetFatalThresh

public void autoSetFatalThresh()

initializeSI

public void initializeSI(int val)

setSI

public void setSI(int si)

getSensorHits

public int getSensorHits()

setSensorHits

public void setSensorHits(int hits)

getFCSHits

public int getFCSHits()

setFCSHits

public void setFCSHits(int hits)

setCICHits

public void setCICHits(int hits)

getCICHits

public int getCICHits()

setIgnoredCrewHits

public void setIgnoredCrewHits(int hits)

getIgnoredCrewHits

public int getIgnoredCrewHits()

getEngineHits

public int getEngineHits()

setEngineHits

public void setEngineHits(int hits)

getAvionicsHits

public int getAvionicsHits()

setAvionicsHits

public void setAvionicsHits(int hits)

isGearHit

public boolean isGearHit()

setGearHit

public void setGearHit(boolean hit)

setHeatSinks

public void setHeatSinks(int hs)

getHeatSinks

public int getHeatSinks()

setHeatType

public void setHeatType(int hstype)

setLeftThrustHits

public void setLeftThrustHits(int hits)

getLeftThrustHits

public int getLeftThrustHits()

setRightThrustHits

public void setRightThrustHits(int hits)

getRightThrustHits

public int getRightThrustHits()

getFuel

public int getFuel()

setFuel

public void setFuel(int gas)

getHeatType

public int getHeatType()

wasCritThresh

public boolean wasCritThresh()

setCritThresh

public void setCritThresh(boolean b)

isImmobile

public boolean isImmobile()
Description copied from class: Entity
Is this entity shut down or is the crew unconscious?

Specified by:
isImmobile in interface Targetable
Overrides:
isImmobile in class Entity
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 interface RoundUpdated
Overrides:
newRound in class Entity
Parameters:
roundNumber - the int number of the new round

getMovementString

public java.lang.String getMovementString(EntityMovementType mtype)
Returns the name of the type of movement used. This is tank-specific.

Specified by:
getMovementString in class Entity

getMovementAbbr

public java.lang.String getMovementAbbr(EntityMovementType mtype)
Returns the name of the type of movement used. This is tank-specific.

Specified by:
getMovementAbbr in class Entity

hasRearArmor

public boolean hasRearArmor(int loc)
Description copied from class: Entity
Does this location have rear armor?

Specified by:
hasRearArmor in class Entity

getWeaponArc

public int getWeaponArc(int wn)
Returns the Compute.ARC that the weapon fires into.

Specified by:
getWeaponArc in class Entity

rollArcs

public int rollArcs(int arc)
switches certain arcs due to rolling


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 class Entity

rollHitLocation

public HitData rollHitLocation(int table,
                               int side,
                               int aimedLocation,
                               int aimingMode)
Rolls up a hit location

Specified by:
rollHitLocation in class Entity

rollHitLocation

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

Specified by:
rollHitLocation in class Entity

getTransferLocation

public HitData getTransferLocation(HitData hit)
Gets the location that excess damage transfers to

Specified by:
getTransferLocation in class Entity

getDependentLocation

public int getDependentLocation(int loc)
Gets the location that is destroyed recursively

Specified by:
getDependentLocation in class Entity

calculateBattleValue

public int calculateBattleValue()
Description copied from class: Entity
Calculates the battle value of this entity

Specified by:
calculateBattleValue in class Entity

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 Entity
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

getBVTypeModifier

public double getBVTypeModifier()

addEntityBonuses

public PilotingRollData addEntityBonuses(PilotingRollData prd)
Description copied from class: Entity
Add in any piloting skill mods

Specified by:
addEntityBonuses in class Entity

victoryReport

public java.util.Vector<Report> victoryReport()
Description copied from class: Entity
Generates a vector containing reports on all useful information about this entity.

Specified by:
victoryReport in class Entity

getNoOfSlots

public int[] getNoOfSlots()
Specified by:
getNoOfSlots in class Entity

getRunMPwithoutMASC

public int getRunMPwithoutMASC(boolean gravity,
                               boolean ignoreheat)
Tanks don't have MASC

Specified by:
getRunMPwithoutMASC in class Entity

getHeatCapacity

public int getHeatCapacity()
Description copied from class: Entity
Returns the amount of heat that the entity can sink each turn.

Specified by:
getHeatCapacity in class Entity

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 class Entity

getEngineCritHeat

public int getEngineCritHeat()
Description copied from class: Entity
Returns extra heat generated by engine crits

Specified by:
getEngineCritHeat in class Entity

autoSetInternal

public void autoSetInternal()
Description copied from class: Entity
Set the internal structure to the appropriate value for the mech's weight class

Specified by:
autoSetInternal in class Entity

autoSetThresh

public void autoSetThresh()

setThresh

public void setThresh(int val,
                      int loc)

initializeThresh

public void initializeThresh(int loc)

getThresh

public int getThresh(int loc)

isRepairable

public boolean isRepairable()
Determine if the unit can be repaired, or only harvested for spares.

Overrides:
isRepairable in class Entity
Returns:
A boolean that is true if the unit can be repaired (given enough time and parts); if this value is false, the unit is only a source of spares.
See Also:
Entity.isSalvage()

restore

public void restore()
Restores the entity after serialization

Overrides:
restore in class Entity

canCharge

public boolean canCharge()
Description copied from class: Entity
Whether this type of unit can perform charges

Overrides:
canCharge in class Entity

canDFA

public boolean canDFA()
Description copied from class: Entity
Whether this type of unit can perform DFA attacks

Overrides:
canDFA in class Entity

canRam

public boolean canRam()
Description copied from class: Entity
Whether this type of unit can perform Ramming attacks

Overrides:
canRam in class Entity

getArmorType

public int getArmorType()
Overrides:
getArmorType in class Entity

setArmorType

public void setArmorType(int type)
Overrides:
setArmorType in class Entity

getSuspensionFactor

public int getSuspensionFactor()
Returns:
suspension factor of vehicle

getCost

public 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

Specified by:
getCost in class Entity

doomedInVacuum

public boolean doomedInVacuum()
Specified by:
doomedInVacuum in class Entity

doomedOnGround

public boolean doomedOnGround()
Specified by:
doomedOnGround in class Entity

doomedInAtmosphere

public boolean doomedInAtmosphere()
Specified by:
doomedInAtmosphere in class Entity

doomedInSpace

public boolean doomedInSpace()
Specified by:
doomedInSpace in class Entity

canGoHullDown

public boolean canGoHullDown()
Overrides:
canGoHullDown in class Entity

setEngine

public void setEngine(Engine e)

getInternalRemainingPercent

public double getInternalRemainingPercent()
Returns the percent of the SI remaining

Overrides:
getInternalRemainingPercent in class Entity

calculateWalk

protected int calculateWalk()

isNuclearHardened

public boolean isNuclearHardened()
Description copied from class: Entity
Checks if the unit is hardened agaist nuclear strikes.

Specified by:
isNuclearHardened in class Entity
Returns:
true if this is a hardened unit.

addEquipment

protected void addEquipment(Mounted mounted,
                            int loc,
                            boolean rearMounted)
                     throws LocationFullException
Overrides:
addEquipment in class Entity
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 roll
loc - the hit location
Returns:
a critical type

checkThrustSI

public PilotingRollData checkThrustSI(int thrust,
                                      EntityMovementType overallMoveType)

checkThrustSITotal

public PilotingRollData checkThrustSITotal(int thrust,
                                           EntityMovementType overallMoveType)

checkVelocityDouble

public PilotingRollData checkVelocityDouble(int velocity,
                                            EntityMovementType overallMoveType)

checkDown

public PilotingRollData checkDown(int drop,
                                  EntityMovementType overallMoveType)

checkHover

public PilotingRollData checkHover(MovePath md)

checkStall

public PilotingRollData checkStall(MovePath md)

checkRolls

public PilotingRollData checkRolls(MoveStep step,
                                   EntityMovementType overallMoveType)

checkVerticalTakeOff

public PilotingRollData checkVerticalTakeOff()

checkManeuver

public PilotingRollData checkManeuver(MoveStep step,
                                      EntityMovementType overallMoveType)
Checks if a maneuver requires a control roll


setOmni

public void setOmni(boolean omni)
Overrides:
setOmni in class Entity

addClanCase

public void addClanCase()
Adds clan CASE in every location


hasCase

public boolean hasCase()
check to see if case is available anywhere

Returns:

sideTableRam

public int sideTableRam(Coords src)
Used to determine net velocity of ramming attack


sideTableRam

public int sideTableRam(Coords src,
                        int face)

chooseSideRam

public int chooseSideRam(Coords src)

getStandardDamage

public int getStandardDamage(int loc)

resetStandardDamage

public void resetStandardDamage()

addStandardDamage

public void addStandardDamage(int damage,
                              HitData hit)

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 class Entity

isHexProhibited

public boolean isHexProhibited(IHex hex)
Description copied from class: Entity
Returns true if the specified hex contains some sort of prohibited terrain.

Overrides:
isHexProhibited in class Entity

isSpheroid

public boolean isSpheroid()

setSpheroid

public void setSpheroid(boolean b)

height

public int height()
Description copied from class: Entity
Returns the height of the unit, that is, how many levels above it's elevation is it for LOS purposes. Default is 0.

Overrides:
height in class Entity

canUnjamRAC

public boolean canUnjamRAC()
Returns true if the entity has an RAC which is jammed and not destroyed

Overrides:
canUnjamRAC in class Entity

applyBombs

public void applyBombs()

getStraightMoves

public int getStraightMoves()

setStraightMoves

public void setStraightMoves(int i)

isVSTOL

public boolean isVSTOL()

setVSTOL

public void setVSTOL(boolean b)

getFuelUsed

public int getFuelUsed(int thrust)

didFailManeuver

public boolean didFailManeuver()

setFailedManeuver

public void setFailedManeuver(boolean b)

setAccDecNow

public void setAccDecNow(boolean b)

didAccDecNow

public boolean didAccDecNow()

setGameOptions

public void setGameOptions()
Overrides:
setGameOptions in class Entity

hasModularArmor

public boolean hasModularArmor()
Overrides:
hasModularArmor in class Entity

hasModularArmor

public boolean hasModularArmor(int loc)
Overrides:
hasModularArmor in class Entity

getTotalCommGearTons

public int getTotalCommGearTons()
Specified by:
getTotalCommGearTons in class Entity
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 class Entity

getCockpitType

public int getCockpitType()

setCockpitType

public void setCockpitType(int type)

getCockpitTypeString

public java.lang.String getCockpitTypeString()

getCockpitTypeString

public static java.lang.String getCockpitTypeString(int inCockpitType)

getArmorRemainingPercent

public double getArmorRemainingPercent()
Description copied from class: Entity
Returns the percent of the armor remaining

Overrides:
getArmorRemainingPercent in class Entity

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


getECMRange

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

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

getECCMStrength

public double getECCMStrength()
Overrides:
getECCMStrength in class Entity
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

public int getGravSecondaryThreshold()

getGravPrimaryThreshold

public int getGravPrimaryThreshold()

canLoad

public boolean canLoad(Entity unit,
                       boolean checkFalse)
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.

Overrides:
canLoad in class Entity
Parameters:
unit - - the Entity to be loaded.
Returns:
true if the unit can be loaded, false otherwise.

useFuel

public void useFuel(int fuelUsed)
use the specified amount of fuel for this Aero. The amount may be adjusted by certain game options


updateWeaponGroups

public void updateWeaponGroups()

shouldMoveBackHex

public boolean shouldMoveBackHex(Aero other)
In cases where another unit occupies the same hex, determine if this Aero should be moved back a hex for targeting purposes

Parameters:
otherPos -
Returns:

hasArmoredEngine

public boolean hasArmoredEngine()
Overrides:
hasArmoredEngine in class Entity

getForwardArc

public int getForwardArc()
see Entity.getForwardArc()

Overrides:
getForwardArc in class Entity

getRearArc

public int getRearArc()
see Entity.getRearArc()

Overrides:
getRearArc in class Entity

getAltLoss

public int getAltLoss()

setAltLoss

public void setAltLoss(int i)

resetAltLoss

public void resetAltLoss()

getElevation

public int getElevation()
Description copied from class: Entity
Returns the elevation of this entity.

Specified by:
getElevation in interface Targetable
Overrides:
getElevation in class Entity
Returns:
elevation of the bottom (e.g. legs) of the target relative to surface

canGoDown

public boolean canGoDown()
Overrides:
canGoDown in class Entity

liftOff

public void liftOff(int altitude)

land

public void land()

getTakeOffLength

public int getTakeOffLength()

canTakeOffHorizontally

public boolean canTakeOffHorizontally()

hasRoomForHorizontalTakeOff

public boolean hasRoomForHorizontalTakeOff()

canTakeOffVertically

public boolean canTakeOffVertically()