megamek.common
Class BipedMech

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

public class BipedMech
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
BipedMech()
           
BipedMech(int inGyroType, int inCockpitType)
           
BipedMech(java.lang.String inGyroType, java.lang.String inCockpitType)
           
 
Method Summary
 PilotingRollData addEntityBonuses(PilotingRollData roll)
          Add in any piloting skill mods
 void addStandingPenalties(PilotingRollData roll)
           
 boolean canFlipArms()
          Returns true if the entity can flip its arms
 boolean canGoHullDown()
           
 boolean cannotStandUpFromHullDown()
           
 PilotingRollData checkGetUp(MoveStep step)
          Checks if the entity is getting up.
 int getActiveVibrobladeHeat(int location)
          Checks for Active Vibroblades in location and returns the amount of heat genereated if active.
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 getNumberOfShields(long size)
          Check to see how many shields of a certain size a mek has. you can have up to shields per mek.
 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.
 boolean hasActiveShield(int location)
          Does the mech have an active shield This should only be called by hasActiveShield(location,rear)
 boolean hasActiveShield(int location, boolean rear)
          Does the mech have an active shield This should only be called after hasShield has been called.
 boolean hasClaw(int location)
          Check to see if a Biped mech has a claw in one of its arms
 boolean hasFunctionalArmAES(int location)
          Checks is Biped Mek has functional AES in the location.
 boolean hasFunctionalLegAES()
          Checks for functional AES in both legs
 boolean hasNoDefenseShield(int location)
          Does the mech have an shield in no defense mode
 boolean hasPassiveShield(int location)
          Does the mech have a passive shield This should only be called by hasPassiveShield(location,rear)
 boolean hasPassiveShield(int location, boolean rear)
          Does the mech have a passive shield This should only be called after hasShield has been called.
 boolean hasRetractedBlade(int loc)
          Does the entity have a retracted blade in the given location
 boolean hasShield()
          Does the mech have any shields. a mech can have up to 2 shields.
 boolean hasVibroblades()
          Checks to see if this bipmech has any vibro blades on them.
 boolean hasVibrobladesInLocation(int location)
          Checks to see if this bipedmech has a vibroblade in this location.
 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, 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, 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, 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, newRound, 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, canGoDown, canGoUp, 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, 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, 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, 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, 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
 

Constructor Detail

BipedMech

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

BipedMech

public BipedMech()

BipedMech

public BipedMech(int inGyroType,
                 int inCockpitType)
Method Detail

canFlipArms

public boolean canFlipArms()
Returns true if the entity can flip its arms

Overrides:
canFlipArms in class Entity

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

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

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

getArmActuatorCost

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

getLegActuatorCost

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

hasClaw

public boolean hasClaw(int location)
Check to see if a Biped mech has a claw in one of its arms

Parameters:
location - (LOC_RARM or LOC_LARM)
Returns:
True/False

hasVibroblades

public boolean hasVibroblades()
Checks to see if this bipmech has any vibro blades on them.

Overrides:
hasVibroblades in class Entity
Returns:
boolean true if the mech has vibroblades false if not.

hasVibrobladesInLocation

public boolean hasVibrobladesInLocation(int location)
Checks to see if this bipedmech has a vibroblade in this location.

Parameters:
location -
Returns:
boolean true if the mech has vibroblades false if not.

hasRetractedBlade

public boolean hasRetractedBlade(int loc)
Does the entity have a retracted blade in the given location

Overrides:
hasRetractedBlade in class Mech

getActiveVibrobladeHeat

public int getActiveVibrobladeHeat(int location)
Checks for Active Vibroblades in location and returns the amount of heat genereated if active.

Overrides:
getActiveVibrobladeHeat in class Entity
Parameters:
location -
Returns:
int amount of heat genereated by an active vibroblade.

hasShield

public boolean hasShield()
Does the mech have any shields. a mech can have up to 2 shields.

Overrides:
hasShield in class Entity
Returns:
true if unit has a shield crit.

getNumberOfShields

public int getNumberOfShields(long size)
Check to see how many shields of a certain size a mek has. you can have up to shields per mek. However they can be of different size and each size has its own draw backs. So check each size and add modifers based on the number shields of that size.

Overrides:
getNumberOfShields in class Entity

hasActiveShield

public boolean hasActiveShield(int location,
                               boolean rear)
Does the mech have an active shield This should only be called after hasShield has been called.

Overrides:
hasActiveShield in class Entity

hasActiveShield

public boolean hasActiveShield(int location)
Does the mech have an active shield This should only be called by hasActiveShield(location,rear)

Overrides:
hasActiveShield in class Entity

hasPassiveShield

public boolean hasPassiveShield(int location,
                                boolean rear)
Does the mech have a passive shield This should only be called after hasShield has been called.

Overrides:
hasPassiveShield in class Entity

hasPassiveShield

public boolean hasPassiveShield(int location)
Does the mech have a passive shield This should only be called by hasPassiveShield(location,rear)

Overrides:
hasPassiveShield in class Entity

hasNoDefenseShield

public boolean hasNoDefenseShield(int location)
Does the mech have an shield in no defense mode

Overrides:
hasNoDefenseShield in class Entity

hasFunctionalArmAES

public boolean hasFunctionalArmAES(int location)
Checks is Biped Mek has functional AES in the location. Only works for Arms

Overrides:
hasFunctionalArmAES in class Entity

hasFunctionalLegAES

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

Overrides:
hasFunctionalLegAES in class Entity

canGoHullDown

public boolean canGoHullDown()
Overrides:
canGoHullDown in class Entity

checkGetUp

public PilotingRollData checkGetUp(MoveStep step)
Description copied from class: Entity
Checks if the entity is getting up. If so, returns the target roll for the piloting skill check.

Overrides:
checkGetUp in class Entity

addStandingPenalties

public void addStandingPenalties(PilotingRollData roll)

cannotStandUpFromHullDown

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