megamek.common
Class QuadMech

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

public class QuadMech
extends Mech

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class megamek.common.Entity
Entity.EntityFluff
 
Field Summary
 
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
QuadMech()
           
QuadMech(int inGyroType, int inCockpitType)
           
QuadMech(java.lang.String inGyroType, java.lang.String inCockpitType)
           
 
Method Summary
 PilotingRollData addEntityBonuses(PilotingRollData roll)
          Add in any piloting skill mods
 boolean canChangeSecondaryFacing()
          Can this entity change secondary facing at all?
 boolean canGoHullDown()
           
 boolean cannotStandUpFromHullDown()
          Returns true if the Mech cannot stand up any longer.
protected  double getArmActuatorCost()
           
protected  double getLegActuatorCost()
           
 java.lang.String[] getLocationAbbrs()
          Returns a vector of abbreviations for all locations
 java.lang.String[] getLocationNames()
          Returns a vector of names for all locations
protected  int[] getNoOfSlots()
          Returns a vector of slot counts for all locations
 int getRunMP(boolean gravity, boolean ignoreheat)
          Returns this mech's running/flank mp modified for leg loss & stuff.
 int getRunMPwithoutMASC(boolean gravity, boolean ignoreheat)
          Returns run MP without considering MASC modified for leg loss & stuff.
 int getWalkMP(boolean gravity, boolean ignoreheat)
          Returns this entity's walking/cruising mp, factored for heat and possibly gravity.
 int getWeaponArc(int wn)
          Returns the Compute.ARC that the weapon fires into.
 boolean hasFunctionalLegAES()
          Checks for functional AES in all legs
 boolean isArm(int loc)
          Is the passed in location an arm?
 boolean locationIsLeg(int loc)
          Returns true is the location is a leg
 boolean needsRollToStand()
          Returns true is the entity needs a roll to stand up
 boolean removePartialCoverHits(int location, int cover, int side)
           
static int restrictScore(int location)
           
 HitData rollHitLocation(int table, int side, int aimedLocation, int aimingMode)
          Rolls the to-hit number
 void setInternal(int head, int ct, int t, int arm, int leg)
          Sets the internal structure for the mech.
 
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, 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, getElevation, getEngineCritHeat, getGrappled, getGrappleSide, getGyroDisplayString, getGyroMultiplier, getGyroType, getGyroTypeForString, getGyroTypeShortString, getGyroTypeString, getGyroTypeString, getHeatCapacity, getHeatCapacity, getHeatCapacityWithWater, getHQIniBonus, getInnerLocation, getJumpHeat, getJumpMP, getJumpMP, getJumpMPWithTerrain, getJumpType, getLevelsFallen, getMASC, getMASCTarget, getMASCTurns, getMaxElevationChange, 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, 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, hasRetractedBlade, hasTracks, hasTSM, hasVoidSig, heatSinks, height, initializeRearArmor, isAutoEject, isCarefulStand, isChameleonShieldActive, isCheckForCrit, isEligibleForMovement, isGrappleAttacker, isHexProhibited, isIndustrial, isJustMovedIntoIndustrialKillingWater, isMASCUsed, isNuclearHardened, isNullSigActive, isPrimitive, isRepairable, isSecondaryArcWeapon, isShutDown, isStalled, isStealthActive, isStealthOn, isSystemIntact, isValidSecondaryFacing, isVoidSigActive, leastRestrictiveLoc, legHasHipCrit, locationIsTorso, locations, mostRestrictiveLoc, newRound, resetSinks, 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, canFlipArms, canGoDown, canGoDown, canGoUp, canLayMine, canLoad, canLoad, canRam, canSpot, canTransferCriticals, canUnjamRAC, canUnstickByJumping, checkBogDown, checkDislodgeSwarmers, checkGetUp, 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, getActiveVibrobladeHeat, 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, getNumberOfShields, getOArmor, getOArmor, getOffBoardDirection, getOffBoardDistance, getOInternal, getOInternal, getOriginalJumpMP, getOriginalRunMP, getOriginalSprintMP, getOriginalWalkMP, 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, hasActiveShield, hasActiveShield, hasAimModeTargComp, hasArcFired, hasArmoredChassis, hasBAP, hasBAP, hasBARArmor, hasBattleArmorHandles, hasC3, hasC3i, hasC3M, hasC3MM, hasC3S, hasCASEII, hasDisplacementAttack, hasEnvironmentalSealing, hasFunctionalArmAES, hasGhostTargets, 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, isCharging, isClan, isClanArmor, isClearingMinefield, isCommander, isDeployed, isDesignValid, isDestroyed, isDone, isDoomed, isDropping, isElevationValid, isEligibleFor, isEligibleForFiring, 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, 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
 

Constructor Detail

QuadMech

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

QuadMech

public QuadMech()

QuadMech

public QuadMech(int inGyroType,
                int inCockpitType)
Method Detail

cannotStandUpFromHullDown

public boolean cannotStandUpFromHullDown()
Returns true if the Mech cannot stand up any longer.

Specified by:
cannotStandUpFromHullDown in class Mech
Returns:
if this mech cannot stand up from hulldown

getWalkMP

public int getWalkMP(boolean gravity,
                     boolean ignoreheat)
Description copied from class: Entity
Returns this entity's walking/cruising mp, factored for heat and possibly gravity.

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

getRunMP

public int getRunMP(boolean gravity,
                    boolean ignoreheat)
Returns this mech's running/flank mp modified for leg loss & stuff.

Overrides:
getRunMP in class Mech

getRunMPwithoutMASC

public int getRunMPwithoutMASC(boolean gravity,
                               boolean ignoreheat)
Returns run MP without considering MASC modified for leg loss & stuff.

Overrides:
getRunMPwithoutMASC in class Mech

canChangeSecondaryFacing

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

Overrides:
canChangeSecondaryFacing in class Mech

locationIsLeg

public boolean locationIsLeg(int loc)
Returns true is the location is a leg

Overrides:
locationIsLeg in class Mech
Parameters:
loc - the location to check.

getWeaponArc

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

Overrides:
getWeaponArc in class Mech

setInternal

public void setInternal(int head,
                        int ct,
                        int t,
                        int arm,
                        int leg)
Sets the internal structure for the mech.

Specified by:
setInternal in class Mech
Parameters:
head - head
ct - center torso
t - right/left torso
arm - right/left arm
leg - right/left leg

needsRollToStand

public boolean needsRollToStand()
Returns true is the entity needs a roll to stand up

Overrides:
needsRollToStand in class Entity

addEntityBonuses

public PilotingRollData addEntityBonuses(PilotingRollData roll)
Add in any piloting skill mods

Overrides:
addEntityBonuses in class Mech

getNoOfSlots

protected int[] getNoOfSlots()
Returns a vector of slot counts for all locations

Specified by:
getNoOfSlots in class Entity

getLocationNames

public java.lang.String[] getLocationNames()
Returns a vector of names for all locations

Specified by:
getLocationNames in class Entity

getLocationAbbrs

public java.lang.String[] getLocationAbbrs()
Returns a vector of abbreviations for all locations

Specified by:
getLocationAbbrs in class Entity

restrictScore

public static int restrictScore(int location)

getArmActuatorCost

protected double getArmActuatorCost()
Specified by:
getArmActuatorCost in class Mech

getLegActuatorCost

protected double getLegActuatorCost()
Specified by:
getLegActuatorCost in class Mech

rollHitLocation

public HitData rollHitLocation(int table,
                               int side,
                               int aimedLocation,
                               int aimingMode)
Description copied from class: Entity
Rolls the to-hit number

Overrides:
rollHitLocation in class Mech

removePartialCoverHits

public boolean removePartialCoverHits(int location,
                                      int cover,
                                      int side)
Overrides:
removePartialCoverHits in class Mech

hasFunctionalLegAES

public boolean hasFunctionalLegAES()
Checks for functional AES in all legs

Overrides:
hasFunctionalLegAES in class Entity

canGoHullDown

public boolean canGoHullDown()
Overrides:
canGoHullDown in class Entity

isArm

public boolean isArm(int loc)
Is the passed in location an arm?

Overrides:
isArm in class Mech
Parameters:
loc -
Returns: