megamek.common
Class LandAirMech

java.lang.Object
  extended by megamek.common.TurnOrdered
      extended by megamek.common.Entity
          extended by megamek.common.Mech
              extended by megamek.common.BipedMech
                  extended by megamek.common.LandAirMech
All Implemented Interfaces:
java.io.Serializable, RoundUpdated, Targetable, Transporter

public class LandAirMech
extends BipedMech

This lass represents Land Air Mechs. It is to be considered experimental, and not yet ready for release.

Author:
dirk
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class megamek.common.Entity
Entity.EntityFluff
 
Field Summary
static int MODE_AIRCRAFT
           
static int MODE_AIRMECH
           
static int MODE_CONVERT
          this is a placeholder for generic conversions.
static int MODE_CONVERT_AIRCRAFT_TO_AIRMECH
           
static int MODE_CONVERT_AIRCRAFT_TO_MECH
           
static int MODE_CONVERT_AIRMECH_TO_AIRCRAFT
           
static int MODE_CONVERT_AIRMECH_TO_MECH
           
static int MODE_CONVERT_MECH_TO_AIRCRAFT
           
static int MODE_CONVERT_MECH_TO_AIRMECH
           
static int MODE_MECH
           
 
Fields inherited from class megamek.common.Mech
ACTUATOR_FOOT, ACTUATOR_HAND, ACTUATOR_HIP, ACTUATOR_LOWER_ARM, ACTUATOR_LOWER_LEG, ACTUATOR_SHOULDER, ACTUATOR_UPPER_ARM, ACTUATOR_UPPER_LEG, COCKPIT_AIMED_SHOT, COCKPIT_COMMAND_CONSOLE, COCKPIT_DUAL, COCKPIT_INDUSTRIAL, COCKPIT_OFF, COCKPIT_ON, COCKPIT_PRIMITIVE, COCKPIT_PRIMITIVE_INDUSTRIAL, COCKPIT_SHORT_STRING, COCKPIT_SMALL, COCKPIT_STANDARD, COCKPIT_STRING, COCKPIT_TORSO_MOUNTED, COCKPIT_UNKNOWN, FULL_HEAD_EJECT_STRING, GYRO_COMPACT, GYRO_HEAVY_DUTY, GYRO_SHORT_STRING, GYRO_STANDARD, GYRO_STRING, GYRO_UNKNOWN, GYRO_XL, HAS_FALSE, HAS_TRUE, HAS_UNKNOWN, JUMP_BOOSTER, JUMP_DISPOSABLE, JUMP_IMPROVED, JUMP_NONE, JUMP_STANDARD, JUMP_UNKNOWN, LOC_CT, LOC_HEAD, LOC_LARM, LOC_LLEG, LOC_LT, LOC_RARM, LOC_RLEG, LOC_RT, NUM_MECH_LOCATIONS, SYSTEM_COCKPIT, SYSTEM_ENGINE, SYSTEM_GYRO, SYSTEM_LIFE_SUPPORT, SYSTEM_SENSORS, systemNames
 
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
LandAirMech()
           
LandAirMech(int inGyroType, int inCockpitType)
           
LandAirMech(java.lang.String inGyroType, java.lang.String inCockpitType)
           
 
Method Summary
 boolean canConvertToAircraft()
          Returns true if the mech can transform into fighter mode, false otherwise.
 boolean canConvertToAirmech()
          Returns true if the mech can transform into airmek mode, false otherwise.
 boolean canConvertToMech()
          Returns true if the mech can transform into mech mode, false otherwise.
 boolean canConvertToMode(int convertMode)
          Returns true if the mech can transform into the given mode, false otherwise.
 boolean canGoDown(int assumedElevation, Coords assumedPos)
          is it possible to go down, or are we landed/just above the water/treeline?
 boolean canGoUp(int assumedElevation, Coords assumedPos)
          is it possible to go up, or are we at maximum altitude?
 void convertToMode(int newMode)
          Tries to convert the mech to the given mode, following all the restrictions.
 int getElevation()
          Returns the elevation of the LAM, correct in Mech mode, but needs fixing in other modes.
 int getJumpHeat(int movedMP)
          How much heat is gained from jumping, airmechs don't gain jumping heat.
 int getJumpMP()
          This mech's jumping MP modified for missing jump jets and gravity
 int getJumpMPWithTerrain()
          Returns this mech's jumping MP, modified for missing & underwater jets and gravity.
 int getMaxElevationChange()
          The maximum elevation change the entity can cross
 int getMode()
          Returns the Mode this mech is on.
 int getOriginalJumpMP()
          This function returns the original jump MP for the mode the mech is in.
 int getOriginalWalkMP()
          Returns the original walking MP for that mode or that conversion.
 boolean isAirborne()
          returns true if the mech is flying.
 boolean isEligibleForFiring()
          Can this entity fire this turn?
 boolean isInMode(int testMode)
          Returns true if the mech is in the given mode, false otherwise.
 void newRound(int roundNumber)
          Start a new round
 
Methods inherited from class megamek.common.BipedMech
addEntityBonuses, addStandingPenalties, canFlipArms, canGoHullDown, cannotStandUpFromHullDown, checkGetUp, getActiveVibrobladeHeat, getArmActuatorCost, getLegActuatorCost, getLocationAbbrs, getLocationNames, getNoOfSlots, getNumberOfShields, getRunMP, getRunMPwithoutMASC, getWalkMP, hasActiveShield, hasActiveShield, hasClaw, hasFunctionalArmAES, hasFunctionalLegAES, hasNoDefenseShield, hasPassiveShield, hasPassiveShield, hasRetractedBlade, hasShield, hasVibroblades, hasVibrobladesInLocation, setInternal
 
Methods inherited from class megamek.common.Mech
addClanCase, addCockpit, addCommandConsole, addCompactGyro, addCoolantFailureAmount, addDualCockpit, addEngineCrits, addEngineSinks, addEngineSinks, addEngineSinks, addEngineSinks, addEquipment, addGyro, addHeavyDutyGyro, addIndustrialCockpit, addIndustrialPrimitiveCockpit, addPrimitiveCockpit, addSmallCockpit, addTorsoMountedCockpit, addXLGyro, autoSetInternal, calculateBattleValue, calculateBattleValue, calculateWalk, canAssaultDrop, canChangeSecondaryFacing, canCharge, canDFA, checkForMASCFailure, checkUnstall, clearCockpitCrits, clearEngineCrits, clearGyroCrits, clipSecondaryFacing, countBadLegs, countLegActuatorCrits, damageCowl, destroyLocation, doCheckEngineStallRoll, doomedInAtmosphere, doomedInSpace, doomedInVacuum, doomedOnGround, getActiveSinks, getActiveSinksNextRound, getActuatorCost, getArmor, getArmoredComponentBV, getBARRating, getBattleForceArmorPoints, getBattleForceJumpPoints, getBattleForceMovementPoints, getBattleForcePoints, getBattleForceSize, getBattleForceSpecialAbilites, getBattleForceStandardWeaponsDamage, getBattleForceStructurePoints, getCockpitDisplayString, getCockpitStatus, getCockpitStatusNextRound, getCockpitType, getCockpitTypeForString, getCockpitTypeString, getCockpitTypeString, getCoolantFailureAmount, getCost, getCost, getCowlArmor, getDependentLocation, getEngineCritHeat, getGrappled, getGrappleSide, getGyroDisplayString, getGyroMultiplier, getGyroType, getGyroTypeForString, getGyroTypeShortString, getGyroTypeString, getGyroTypeString, getHeatCapacity, getHeatCapacity, getHeatCapacityWithWater, getHQIniBonus, getInnerLocation, getJumpMP, getJumpType, getLevelsFallen, getMASC, getMASCTarget, getMASCTurns, getMaxElevationDown, getMovementAbbr, getMovementString, getMtf, getNumberOfSinks, getOArmor, getOriginalRunMPwithoutMASC, getOriginalSprintMPwithoutMASC, getPartialWingJumpBonus, getRunHeat, getRunMPasString, getRunningGravityLimit, getSprintHeat, getSprintMP, getSprintMP, getSprintMPasString, getSprintMPwithoutMASC, getSprintMPwithoutMASC, getStandingHeat, getStealthModifier, getSuperCharger, getSystemName, getTotalCommGearTons, getTransferLocation, getWalkHeat, getWeaponArc, hasActiveEiCockpit, hasArmedMASC, hasArmedMASCAndSuperCharger, hasArmoredCockpit, hasArmoredEngine, hasArmoredGyro, hasCASEII, hasChameleonShield, hasCompositeStructure, hasCowl, hasDoubleHeatSinks, hasEiCockpit, hasExtendedRetractableBlade, hasFullHeadEject, hasHarJelIn, hasHipCrit, hasIndustrialTSM, hasJumpBoosters, hasLaserHeatSinks, hasMASC, hasMASCAndSuperCharger, hasModularArmor, hasModularArmor, hasNullSig, hasRearArmor, hasReinforcedStructure, hasTracks, hasTSM, hasVoidSig, heatSinks, height, initializeRearArmor, isArm, isAutoEject, isCarefulStand, isChameleonShieldActive, isCheckForCrit, isEligibleForMovement, isGrappleAttacker, isHexProhibited, isIndustrial, isJustMovedIntoIndustrialKillingWater, isMASCUsed, isNuclearHardened, isNullSigActive, isPrimitive, isRepairable, isSecondaryArcWeapon, isShutDown, isStalled, isStealthActive, isStealthOn, isSystemIntact, isValidSecondaryFacing, isVoidSigActive, leastRestrictiveLoc, legHasHipCrit, locationIsLeg, locationIsTorso, locations, mostRestrictiveLoc, removePartialCoverHits, resetSinks, restrictScore, rollHitLocation, rollHitLocation, setActiveSinksNextRound, setArmor, setAutoEject, setCheckForCrit, setCockpitStatus, setCockpitType, setEngine, setFullHeadEject, setGameOptions, setGrappled, setGrappleSide, setGyroType, setJustMovedIntoIndustrialKillingWater, setLevelsFallen, setMASCTurns, setMASCUsed, setOmni, setStalled, shieldAbsorptionDamage, shouldDieAtEndOfTurnBecauseOfWater, tac, torsoJumpJets, victoryReport
 
Methods inherited from class megamek.common.Entity
absHeight, addBomb, addBomb, addConditionBonuses, 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, canAssist, canFlee, canGoDown, canLayMine, canLoad, canLoad, canRam, canSpot, canTransferCriticals, canUnjamRAC, canUnstickByJumping, checkBogDown, checkDislodgeSwarmers, checkLandingInHeavyWoods, checkLandingOnIce, checkLandingWithDamage, checkMovedTooFast, checkMovementInBuilding, checkRecklessMove, checkRubbleMove, checkRunningWithDamage, checkSideSlip, checkSkid, checkSprintingWithMASC, checkSprintingWithSupercharger, checkWaterMove, checkWaterMove, chooseSide, clearQuirks, climbMode, countQuirks, countQuirks, countWorkingMisc, damageBayDoor, damageDockCollar, damageDoorRecovery, decodeTransporters, deployOffBoard, destroy, destroyRetractableBlade, elevationOccupied, encodeTransporters, entityIsBiped, entityIsQuad, equals, extendBlade, findTargetedDisplacement, fixElevation, generateDisplayName, generateShortName, getActiveSensor, getActiveUMUCount, getAllUMUCount, getAltitude, getAmmo, getArmor, getArmor, getArmorRemainingPercent, getArmorString, getArmorString, getArmorTechLevel, getArmorType, getArmorWeight, getArmsFlipped, getBadCriticals, getBAPRange, getBasePilotingRoll, getBasePilotingRoll, getBattleForceDamageThresholdString, getBattleForceMovement, getBattleForceOverHeatValue, getBattleForceStandardWeaponsDamage, getBattleForceStandardWeaponsDamage, getBattleForceStandardWeaponsDamage, getBattleForceTotalHeatGeneration, getBayByAmmo, getBayLoadedUnits, getBlueShieldRounds, getBombLoadout, getBombs, getBombs, getBVText, getC3Master, getC3MasterId, getC3NetId, getC3Top, getCargoMpReduction, getChassis, getClubs, getCrew, getCritical, getDamageReductionFromModularArmor, getDeployRound, getDisplacementAttack, getDisplayName, getDocks, getDroppableUnits, getECCMStrength, getECMRange, getECMStrength, getEmptyCriticals, getEngine, getEquipment, getEquipment, getEquipmentNum, getEquipmentType, getEvasionBonus, getExteriorUnitAt, getExternalId, getExternalUnits, getExtraCommGearTons, getExtremeRangeModifier, getFacing, getFailedEquipment, getFighterBays, getFighterLaunchRate, getFirstBay, getFirstWeapon, getFluff, getForwardArc, getGame, getGaveKillCredit, getGhostTargetOverride, getGhostTargetRoll, getGhostTargetRollMoS, getGoodCriticals, getGoodCriticals, getHeading, getHeatFiringModifier, getHeatInArc, getHeatMPReduction, getHeight, getHitCriticals, getHittableCriticals, getId, getINarcPodsAttached, getInternal, getInternal, getInternalRemainingPercent, getInternalString, 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, getOArmor, getOArmor, getOffBoardDirection, getOffBoardDistance, getOInternal, getOInternal, getOriginalRunMP, getOriginalSprintMP, getOwner, getOwnerId, getPassedThrough, getPickedUpMechWarriors, getPosition, getPriorPosition, getQuirkIniBonus, getQuirkList, getQuirks, getRearArc, getRecoveryTurn, getRemovalCondition, getRetreatedDirection, getRunMP, getRunMPwithoutMASC, getSecondaryFacing, getSecondaryPositions, getSensorCheck, getSensorDesc, getSensors, getShortName, getShortNameRaw, getShortRangeModifier, getSmallCraftBays, getSmallCraftLaunchRate, getSource, getSpotTargetId, getStartingPos, 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, getWalkMP, getWeaponBayList, getWeaponGroupList, getWeaponList, getWeapons, getWeaponsAndEquipmentCost, getWeaponsAndEquipmentCost, getWeight, getWeightClass, getWeightClassName, getYear, hasActiveAngelECCM, hasActiveAngelECM, hasActiveBlueShield, hasActiveECCM, hasActiveECM, hasActiveECM, hasAimModeTargComp, hasArcFired, hasArmoredChassis, hasBAP, hasBAP, hasBARArmor, hasBattleArmorHandles, hasC3, hasC3i, hasC3M, hasC3MM, hasC3S, hasCASEII, hasDisplacementAttack, hasEnvironmentalSealing, hasGhostTargets, hasINarcPodsAttached, hasInfernoAmmo, hasLegActuatorCrit, hasLinkedMGA, hasSpotlight, hasStealth, hasSystem, hasTAG, hasTargComp, hasUMU, hasWorkingMisc, hasWorkingMisc, hasWorkingMisc, hasWorkingMisc, hasWorkingSystem, hasWorkingWeapon, hasWorkingWeapon, hasWorkingWeapon, hasWorkingWeapon, hitAllCriticals, illuminateTarget, initializeArmor, initializeInternal, isActive, isActive, isAirborneVTOL, isAssaultDropInProgress, isAttackingThisTurn, isBATaserShutdown, isBoardProhibited, isCanon, isCapitalFighter, isCapitalScale, isCaptured, isCarcass, isCharging, isClan, isClanArmor, isClearingMinefield, isCommander, isDeployed, isDesignValid, isDestroyed, isDone, isDoomed, isDropping, isElevationValid, isEligibleFor, isEligibleForOffboard, isEligibleForPhysical, isEligibleForTargetingPhase, isEnemyOf, isEvading, isFighter, isFindingClub, isHidden, isHullDown, isIlluminated, isImmobile, isINarcedBy, isINarcedWith, isLargeCraft, isLayingMines, isLoadableThisTurn, isLocationBad, isLocationDoomed, isMakingDfa, isMilitary, isMixedTech, isNarcedBy, isNOE, isOffBoard, isOmni, isOnSameSheet, isPartOfFighterSquadron, isProne, isPushing, isRamming, isReckless, isSalvage, isSeenByEnemy, isSelectableThisTurn, isShutDownThisPhase, isSpotting, isStuck, isSufferingEMI, isSurfaceNaval, isSystemRepairable, isTargetable, isTargetOfDisplacementAttack, isUnjammingRAC, isUnloadedThisTurn, isUsingManAce, isUsingSpotlight, isVisibleToEnemy, isWeaponBlockedAt, itemOppositeTech, load, load, loadAllWeapons, loadedUnitsHaveActiveECM, loadWeapon, loadWeapon, loadWeaponWithSameAmmo, loadWeaponWithSameAmmo, locationHasCase, needsRollToStand, onSameC3NetworkAs, onSameC3NetworkAs, passedThrough, passedThroughPrevious, passedWithin, pickUp, printDebugToFile, recover, refreshLocations, reloadEmptyWeapons, removeAllINarcPods, removeAllTransporters, removeCriticals, removeINarcPod, removeMisc, resetBayDoors, resetFiringArcs, restore, rollMovementInBuilding, setAltitude, setArcFired, setArmor, setArmor, setArmorTechLevel, setArmorType, 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, 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

MODE_MECH

public static final int MODE_MECH
See Also:
Constant Field Values

MODE_AIRMECH

public static final int MODE_AIRMECH
See Also:
Constant Field Values

MODE_AIRCRAFT

public static final int MODE_AIRCRAFT
See Also:
Constant Field Values

MODE_CONVERT

public static final int MODE_CONVERT
this is a placeholder for generic conversions. All conversion modes must be greater than this.

See Also:
Constant Field Values

MODE_CONVERT_MECH_TO_AIRMECH

public static final int MODE_CONVERT_MECH_TO_AIRMECH
See Also:
Constant Field Values

MODE_CONVERT_MECH_TO_AIRCRAFT

public static final int MODE_CONVERT_MECH_TO_AIRCRAFT
See Also:
Constant Field Values

MODE_CONVERT_AIRMECH_TO_MECH

public static final int MODE_CONVERT_AIRMECH_TO_MECH
See Also:
Constant Field Values

MODE_CONVERT_AIRMECH_TO_AIRCRAFT

public static final int MODE_CONVERT_AIRMECH_TO_AIRCRAFT
See Also:
Constant Field Values

MODE_CONVERT_AIRCRAFT_TO_MECH

public static final int MODE_CONVERT_AIRCRAFT_TO_MECH
See Also:
Constant Field Values

MODE_CONVERT_AIRCRAFT_TO_AIRMECH

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

LandAirMech

public LandAirMech(java.lang.String inGyroType,
                   java.lang.String inCockpitType)

LandAirMech

public LandAirMech()

LandAirMech

public LandAirMech(int inGyroType,
                   int inCockpitType)
Method Detail

getElevation

public int getElevation()
Returns the elevation of the LAM, correct in Mech mode, but needs fixing in other modes.

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

canGoUp

public boolean canGoUp(int assumedElevation,
                       Coords assumedPos)
is it possible to go up, or are we at maximum altitude? assuming passed elevation.

Overrides:
canGoUp in class Entity

canGoDown

public boolean canGoDown(int assumedElevation,
                         Coords assumedPos)
is it possible to go down, or are we landed/just above the water/treeline? assuming passed elevation. What are the rules regarding airmechs in water? I'll assume that airmechs can't go underwater, and that fighters follow the rules for VTOLS

Overrides:
canGoDown in class Entity

getMode

public int getMode()
Returns the Mode this mech is on.

Returns:
One of the MODE_* or the MODE_CONVERT_* constants.

isInMode

public boolean isInMode(int testMode)
Returns true if the mech is in the given mode, false otherwise.

Parameters:
testMode - One of the MODE_* or the MODE_CONVERT_* constants.
Returns:
true iff the mech is in that mode.

canConvertToMech

public boolean canConvertToMech()
Returns true if the mech can transform into mech mode, false otherwise.

Returns:
true iff the mech can go in that mode.

canConvertToAirmech

public boolean canConvertToAirmech()
Returns true if the mech can transform into airmek mode, false otherwise.

Returns:
true iff the mech can go in that mode.

canConvertToAircraft

public boolean canConvertToAircraft()
Returns true if the mech can transform into fighter mode, false otherwise.

Returns:
true iff the mech can go in that mode.

canConvertToMode

public boolean canConvertToMode(int convertMode)
Returns true if the mech can transform into the given mode, false otherwise.

Returns:
true iff the mech can go in that mode.

convertToMode

public void convertToMode(int newMode)
Tries to convert the mech to the given mode, following all the restrictions.

Parameters:
newMode -

getMaxElevationChange

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

Overrides:
getMaxElevationChange in class Mech

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 Mech
Parameters:
roundNumber - the int number of the new round

getOriginalJumpMP

public int getOriginalJumpMP()
This function returns the original jump MP for the mode the mech is in.

Overrides:
getOriginalJumpMP in class Entity

getJumpHeat

public int getJumpHeat(int movedMP)
How much heat is gained from jumping, airmechs don't gain jumping heat.

Overrides:
getJumpHeat in class Mech
Parameters:
movedMP - the number of movement points spent

isEligibleForFiring

public boolean isEligibleForFiring()
Can this entity fire this turn?

Overrides:
isEligibleForFiring in class Entity

getOriginalWalkMP

public int getOriginalWalkMP()
Returns the original walking MP for that mode or that conversion.

Overrides:
getOriginalWalkMP in class Entity

isAirborne

public boolean isAirborne()
returns true if the mech is flying.

Specified by:
isAirborne in interface Targetable
Overrides:
isAirborne in class Entity
Returns:
true iff the mech is flying

getJumpMP

public int getJumpMP()
Description copied from class: Mech
This mech's jumping MP modified for missing jump jets and gravity

Overrides:
getJumpMP in class Mech

getJumpMPWithTerrain

public int getJumpMPWithTerrain()
Description copied from class: Mech
Returns this mech's jumping MP, modified for missing & underwater jets and gravity.

Overrides:
getJumpMPWithTerrain in class Mech