megamek.common
Class VTOL

java.lang.Object
  extended by megamek.common.TurnOrdered
      extended by megamek.common.Entity
          extended by megamek.common.Tank
              extended by megamek.common.VTOL
All Implemented Interfaces:
java.io.Serializable, RoundUpdated, Targetable, Transporter
Direct Known Subclasses:
SupportVTOL

public class VTOL
extends Tank

Author:
Andrew Hunter VTOLs are helicopters (more or less.)
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class megamek.common.Entity
Entity.EntityFluff
 
Field Summary
static int CRIT_COPILOT
           
static int CRIT_FLIGHT_STABILIZER
           
static int CRIT_PILOT
           
static int CRIT_ROTOR_DAMAGE
           
static int CRIT_ROTOR_DESTROYED
           
static int LOC_ROTOR
           
 
Fields inherited from class megamek.common.Tank
CRIT_AMMO, CRIT_CARGO, CRIT_COMMANDER, CRIT_CREW_KILLED, CRIT_CREW_STUNNED, CRIT_DRIVER, CRIT_ENGINE, CRIT_FUEL_TANK, CRIT_NONE, CRIT_SENSOR, CRIT_STABILIZER, CRIT_TURRET_DESTROYED, CRIT_TURRET_JAM, CRIT_TURRET_LOCK, CRIT_WEAPON_DESTROYED, CRIT_WEAPON_JAM, engineHit, LOC_BODY, LOC_FRONT, LOC_LEFT, LOC_REAR, LOC_RIGHT, LOC_TURRET, m_bHasNoTurret, m_bTurretEverJammed, m_bTurretJammed, m_bTurretLocked, movementDamage
 
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
VTOL()
           
 
Method Summary
 PilotingRollData addEntityBonuses(PilotingRollData prd)
          Add in any piloting skill mods
 boolean canCharge()
          Whether this type of unit can perform charges
 PilotingRollData checkSkid(EntityMovementType moveType, IHex prevHex, EntityMovementType overallMoveType, MoveStep prevStep, int prevFacing, int curFacing, Coords lastPos, Coords curPos, boolean isInfantry, int distance)
          Checks if the entity might skid on pavement.
 boolean doomedInAtmosphere()
           
 boolean doomedInSpace()
           
 boolean doomedInVacuum()
           
 int getCriticalEffect(int roll, int loc)
          get the type of critical caused by a critical roll, taking account of existing damage
 java.lang.String[] getLocationAbbrs()
           
 java.lang.String[] getLocationNames()
           
 int getMaxElevationChange()
          The maximum elevation change the entity can cross
 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.
 boolean isHexProhibited(IHex hex)
          Tanks have all sorts of prohibited terrain.
 boolean isRepairable()
          Determine if the unit can be repaired, or only harvested for spares.
 HitData rollHitLocation(int table, int side, int aimedLocation, int aimingMode)
          Rolls up a hit location
 void setOnFire(boolean inferno)
           
 
Methods inherited from class megamek.common.Tank
addEquipment, addJammedWeapon, addMovementDamage, applyDamage, autoSetInternal, calculateBattleValue, calculateBattleValue, canChangeSecondaryFacing, canDFA, canGoHullDown, canSpot, clipSecondaryFacing, doomedOnGround, engineHit, extinguishAll, extinguishLocation, getArmorType, getCost, getDependentLocation, getEngineCritHeat, getForwardArc, getHeatCapacity, getHeatCapacityWithWater, getHQIniBonus, getJammedWeapons, getMaxElevationDown, getNoOfSlots, getRearArc, getRunMPwithoutMASC, getSensorHits, getStructureType, getStunnedTurns, getSuspensionFactor, getTotalCommGearTons, getTransferLocation, getWalkMP, getWeaponArc, hasArmoredEngine, hasModularArmor, hasModularArmor, hasMovementDamage, hasNoTurret, hasRearArmor, immobilize, isCommanderHit, isCommanderHitPS, isCrewHitPS, isDriverHit, isDriverHitPS, isImmobile, isInfernoFire, isLocationBurning, isMovementHit, isMovementHitPending, isNuclearHardened, isOnFire, isSecondaryArcWeapon, isStabiliserHit, isStealthActive, isStealthOn, isTurretEverJammed, isTurretJammed, isTurretLocked, isValidSecondaryFacing, jamTurret, locations, lockTurret, newRound, resetMovementDamage, restore, rollHitLocation, setArmorType, setCommanderHit, setCommanderHitPS, setCrewHitPS, setDriverHit, setDriverHitPS, setEngine, setFacing, setHasNoTurret, setOmni, setSecondaryFacing, setSensorHits, setStabiliserHit, setStructureType, setStunnedTurns, stunCrew, unjamTurret, unlockTurret, victoryReport
 
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, applyGravityEffectsOnMP, applySantaAnna, armorStringFor, assignAMS, attachINarcPod, attachNarcPod, baTaserShutdown, C3MasterIs, calcElevation, calcElevation, calculateFreeC3MNodes, calculateFreeC3Nodes, canAssaultDrop, canAssist, canFlee, canFlipArms, canGoDown, canGoDown, canGoUp, canLayMine, canLoad, canLoad, canRam, canTransferCriticals, canUnjamRAC, canUnstickByJumping, checkBogDown, checkDislodgeSwarmers, checkGetUp, checkLandingInHeavyWoods, checkLandingOnIce, checkLandingWithDamage, checkMovedTooFast, checkMovementInBuilding, checkRecklessMove, checkRubbleMove, checkRunningWithDamage, checkSideSlip, 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, getArmorRemainingPercent, getArmorString, getArmorString, getArmorTechLevel, getArmorWeight, getArmsFlipped, getBadCriticals, 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, getECCMStrength, getECMRange, getECMStrength, getElevation, 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, getInternalRemainingPercent, getInternalString, getJumpHeat, getJumpMP, getJumpMP, getJumpMPWithTerrain, getJumpType, getKillNumber, getKills, getLastTarget, getLaunchableFighters, getLaunchableSmallCraft, getLoadedBay, getLoadedFighters, getLoadedSmallCraft, getLoadedUnits, getLocationAbbr, getLocationAbbr, getLocationFromAbbr, getLocationName, getLocationName, getLocationStatus, getLongRangeModifier, 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, 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, height, 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, 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, setFindingClub, setGame, setGameOptions, 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, setSeenByEnemy, setShutDown, setShutDownThisPhase, setSource, setSpotlight, setSpotlightState, setSpotTargetId, setSpotting, setStartingPos, 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_ROTOR

public static final int LOC_ROTOR
See Also:
Constant Field Values

CRIT_COPILOT

public static final int CRIT_COPILOT
See Also:
Constant Field Values

CRIT_PILOT

public static final int CRIT_PILOT
See Also:
Constant Field Values

CRIT_ROTOR_DAMAGE

public static final int CRIT_ROTOR_DAMAGE
See Also:
Constant Field Values

CRIT_ROTOR_DESTROYED

public static final int CRIT_ROTOR_DESTROYED
See Also:
Constant Field Values

CRIT_FLIGHT_STABILIZER

public static final int CRIT_FLIGHT_STABILIZER
See Also:
Constant Field Values
Constructor Detail

VTOL

public VTOL()
Method Detail

getLocationAbbrs

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

getLocationNames

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

checkSkid

public PilotingRollData checkSkid(EntityMovementType moveType,
                                  IHex prevHex,
                                  EntityMovementType overallMoveType,
                                  MoveStep prevStep,
                                  int prevFacing,
                                  int curFacing,
                                  Coords lastPos,
                                  Coords curPos,
                                  boolean isInfantry,
                                  int distance)
Description copied from class: Entity
Checks if the entity might skid on pavement. If so, returns the target roll for the piloting skill check.

Overrides:
checkSkid in class Entity

canCharge

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

Overrides:
canCharge in class Tank

getMovementString

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

Overrides:
getMovementString in class Tank

getMovementAbbr

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

Overrides:
getMovementAbbr in class Tank

getMaxElevationChange

public int getMaxElevationChange()
Description copied from class: Entity
The maximum elevation change the entity can cross

Overrides:
getMaxElevationChange in class Tank

isHexProhibited

public boolean isHexProhibited(IHex hex)
Description copied from class: Tank
Tanks have all sorts of prohibited terrain.

Overrides:
isHexProhibited in class Tank

isRepairable

public boolean isRepairable()
Description copied from class: Tank
Determine if the unit can be repaired, or only harvested for spares.

Overrides:
isRepairable in class Tank
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()

rollHitLocation

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

Overrides:
rollHitLocation in class Tank

doomedInVacuum

public boolean doomedInVacuum()
Overrides:
doomedInVacuum in class Tank

doomedInAtmosphere

public boolean doomedInAtmosphere()
Overrides:
doomedInAtmosphere in class Tank

doomedInSpace

public boolean doomedInSpace()
Overrides:
doomedInSpace in class Tank

setOnFire

public void setOnFire(boolean inferno)
Overrides:
setOnFire in class Tank

getCriticalEffect

public int getCriticalEffect(int roll,
                             int loc)
get the type of critical caused by a critical roll, taking account of existing damage

Overrides:
getCriticalEffect in class Tank
Parameters:
roll - the final dice roll
loc - the hit location
Returns:
a critical type

addEntityBonuses

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

Overrides:
addEntityBonuses in class Tank