megamek.common
Class FighterSquadron

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

public class FighterSquadron
extends Aero

Author:
Jay Lawson Fighter squadrons are basically "containers" for a bunch of fighters.
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class megamek.common.Entity
Entity.EntityFluff
 
Field Summary
 java.util.Vector<Aero> fighters
           
static int MAX_SIZE
           
 
Fields inherited from class megamek.common.Aero
ALT_BOMB_ATTACK, COCKPIT_COMMAND_CONSOLE, COCKPIT_SHORT_STRING, COCKPIT_SMALL, COCKPIT_STANDARD, COCKPIT_STRING, CRIT_AVIONICS, CRIT_BOMB, CRIT_CARGO, CRIT_CIC, CRIT_CONTROL, CRIT_CREW, CRIT_DOCK_COLLAR, CRIT_DOOR, CRIT_ENGINE, CRIT_FCS, CRIT_FUEL_TANK, CRIT_GEAR, CRIT_GRAV_DECK, CRIT_HEATSINK, CRIT_KF_BOOM, CRIT_KF_DRIVE, CRIT_LEFT_THRUSTER, CRIT_LIFE_SUPPORT, CRIT_NONE, CRIT_RIGHT_THRUSTER, CRIT_SENSOR, CRIT_WEAPON, CRIT_WEAPON_BROAD, critThresh, DIVE_BOMB_ATTACK, HEAT_DOUBLE, HEAT_SINGLE, LOC_AFT, LOC_LWING, LOC_NOSE, LOC_RWING, LOC_WINGS, RAM_AWAY_DIR, RAM_AWAY_OBL, RAM_TOWARD_DIR, RAM_TOWARD_OBL, SPACE_BOMB_ATTACK, vstol, weaponGroups
 
Fields inherited from class megamek.common.Entity
_isEMId, altitude, ammoList, armorTechLevel, armorType, armsFlipped, aTracker, battleForceDebugString, BATTLEFORCEEXTREMERANGE, BATTLEFORCELONGRANGE, BATTLEFORCEMEDIUMRANGE, battleForceMinRangeModifier, BATTLEFORCESHORTRANGE, battleForceToHitModifier, bombList, bvText, c3CompanyMasterIndex, c3Master, c3NetIdString, canUnstickByJumping, carcass, chassis, crew, crits, damageThisPhase, damageThisRound, DEBUGBATTLEFORCE, delta_distance, designValid, destroyed, displacementAttack, displayName, dodging, done, doomed, duplicateMarker, elevation, endColumn, endRow, endTable, engine, engineHitsThisRound, equipmentList, externalId, facing, failedEquipmentList, findingClub, fluff, game, gotPavementBonus, GRAPPLE_BOTH, GRAPPLE_LEFT, GRAPPLE_RIGHT, hasSpotlight, heat, heatBuildup, heatFromExternal, heatSinkCoolantFailureFactor, hitThisRoundByAntiTSM, hullDown, id, illuminated, iNarcPods, infernos, inReverse, isCarefulStanding, isHidden, jumpMP, killerId, lastTarget, layingMines, LOC_DESTROYED, LOC_NONE, m_lNarcedBy, m_lPendingNarc, MAX_C3_NODES, miscList, mixedTech, model, moved, movementMode, mpUsed, mpUsedLastRound, narcPods, nl, NONE, omni, owner, ownerId, pendingINarcPods, pendingNarcPods, position, prone, reckless, rolledForEngineExplosion, sec_facing, secondaryPositions, shortName, shutDown, shutdownByBATaser, shutDownThisPhase, source, spotlightIsActive, spotting, startColumn, startRow, startTable, structureType, stuckInSwamp, taggedBy, taserFeedBackRounds, taserInterference, taserInterferenceRounds, taserShutdownRounds, techLevel, tmTracker, totalWeaponList, unjammingRAC, usedSearchlight, vectors, walkMP, weaponBayList, weaponGroupList, weaponList, weight, year
 
Fields inherited from interface megamek.common.Targetable
TYPE_BLDG_IGNITE, TYPE_BUILDING, TYPE_ENTITY, TYPE_FLARE_DELIVER, TYPE_FUEL_TANK, TYPE_FUEL_TANK_IGNITE, TYPE_HEX_AERO_BOMB, TYPE_HEX_ARTILLERY, TYPE_HEX_BOMB, TYPE_HEX_CLEAR, TYPE_HEX_EXTINGUISH, TYPE_HEX_IGNITE, TYPE_HEX_SCREEN, TYPE_INARC_POD, TYPE_MINEFIELD_CLEAR, TYPE_MINEFIELD_DELIVER, TYPE_SEARCHLIGHT
 
Constructor Summary
FighterSquadron()
           
FighterSquadron(java.lang.String name)
          construct fighter squadron with a specific name
 
Method Summary
 PilotingRollData addEntityBonuses(PilotingRollData prd)
          Add in any piloting skill mods
 int calculateBattleValue()
          Calculates the battle value of this entity
 int calculateBattleValue(boolean ignoreC3, boolean ignorePilot)
          Calculates the battle value of this mech.
 boolean canLoad(Entity unit, boolean checkFalse)
          Determines if this object can accept the given unit.
 int get0SI()
           
 java.util.ArrayList<Mounted> getAmmo()
           
 double getArmorRemainingPercent()
          Returns the percent of the armor remaining
 double getAveWeight()
           
 java.util.ArrayList<Mounted> getBombs()
           
 int getCargoMpReduction()
           
 int getClusterMods()
          get modifications to the cluster hit table for critical hits
 double getCost(boolean ignoreAmmo)
          There is a mistake in some of the AT2r costs for some reason they added ammo twice for a lot of the level 2 designs, leading to costs that are too high
 Entity getExteriorUnitAt(int loc, boolean isRear)
          If a unit is being transported on the outside of the transporter, it can suffer damage when the transporter is hit by an attack.
 Aero getFighter(int loc)
           
 java.util.Vector<Aero> getFighters()
           
 int getFuel()
           
 int getHeatCapacity()
          Returns the amount of heat that the entity can sink each turn.
 int getHeatSinks()
           
 double getInternalRemainingPercent()
          Returns the percent of the SI remaining
 java.util.Vector<Entity> getLoadedUnits()
          Get a List of the units currently loaded into this payload.
 int getN0Fighters()
           
 int getNFighters()
           
 int getSI()
           
 int getTotalArmor()
          Returns the total amount of armor on the entity.
 int getTotalOArmor()
          Returns the total amount of armor on the entity.
 java.lang.String getUnusedString()
          Return a string that identifies the unused capacity of this transporter.
 int getWalkMP(boolean gravity, boolean ignoreheat)
          Returns this entity's safe thrust, factored for heat, extreme temperatures, gravity, and bomb load.
 float getWeight()
           
 boolean hasActiveECM()
          Does the mech have a functioning ECM unit?
 boolean hasTargComp()
          Returns wether or not this entity has a Targeting Computer.
 boolean isCapitalFighter()
          overrides the default Entity.isCapitalFighter() with true
 boolean isWeaponBlockedAt(int loc, boolean isRear)
          Determine if transported units prevent a weapon in the given location from firing.
 void load(Entity unit, boolean checkFalse)
          Load the given unit.
 boolean loadedUnitsHaveActiveECM()
          Do units loaded onto this entity still have active ECM/ECCM/etc.?
 void newRound(int roundNumber)
          Start a new round
 void resetHeatCapacity()
           
 HitData rollHitLocation(int table, int side)
          Rolls up a hit location
 HitData rollHitLocation(int table, int side, int aimedLocation, int aimingMode)
          Fighter Squadron units can only get hit in undestroyed fighters.
 boolean unload(Entity unit)
          Unload the given unit.
 void updateSkills()
          update the skills for this squadron
 void updateWeaponGroups()
          instead of trying to track the individual units weapons, just recompile the weapon groups for this squadron each round
 void useFuel(int fuel)
          use the specified amount of fuel for this Aero.
 
Methods inherited from class megamek.common.Aero
addClanCase, addEquipment, addStandardDamage, applyBombs, areWingsHit, autoSetCapArmor, autoSetFatalThresh, autoSetInternal, autoSetMaxBombPoints, autoSetSI, autoSetThresh, calculateWalk, canChangeSecondaryFacing, canCharge, canDFA, canGoDown, canGoHullDown, canRam, canTakeOffHorizontally, canTakeOffVertically, canUnjamRAC, checkDown, checkHover, checkManeuver, checkRolls, checkStall, checkThrustSI, checkThrustSITotal, checkVelocityDouble, checkVerticalTakeOff, chooseSideRam, clipSecondaryFacing, didAccDecNow, didAccLast, didFailManeuver, doomedInAtmosphere, doomedInSpace, doomedInVacuum, doomedOnGround, getAltLoss, getArmorType, getAvionicsHits, getBadCriticals, getBombChoices, getBombPoints, getBVTypeModifier, getCap0Armor, getCapArmor, getCICHits, getCockpitType, getCockpitTypeString, getCockpitTypeString, getCriticalEffect, getCurrentDamage, getCurrentThrust, getCurrentVelocity, getCurrentVelocityActual, getDependentLocation, getECCMBonus, getECCMRoll, getECCMStrength, getECCMTarget, getECMRange, getElevation, getEngineCritHeat, getEngineHits, getFatalThresh, getFCSHits, getForwardArc, getFuelUsed, getGravPrimaryThreshold, getGravSecondaryThreshold, getHeatCapacityWithWater, getHeatType, getIgnoredCrewHits, getLeftThrustHits, getLocationAbbrs, getLocationNames, getMaxBombPoints, getMaxElevationChange, getMaxEngineHits, getMovementAbbr, getMovementString, getNextVelocity, getNoOfSlots, getOppositeLocation, getPotCrit, getRearArc, getRightThrustHits, getRunMPwithoutMASC, getSensorHits, getStandardDamage, getStraightMoves, getSuspensionFactor, getTakeOffLength, getThresh, getTotalCommGearTons, getTransferLocation, getWeaponArc, getWhoFirst, hasArmoredEngine, hasCase, hasLifeSupport, hasModularArmor, hasModularArmor, hasRearArmor, hasRoomForHorizontalTakeOff, height, initializeSI, initializeThresh, isCrewProtected, isGearHit, isHexProhibited, isImmobile, isNuclearHardened, isOutControl, isOutControlTotal, isOutCtrlHeat, isRandomMove, isRepairable, isRolled, isSecondaryArcWeapon, isSpheroid, isValidSecondaryFacing, isVSTOL, land, liftOff, locations, resetAltLoss, resetStandardDamage, restore, rollArcs, set0SI, setAccDecNow, setAccLast, setAltLoss, setArmorType, setAvionicsHits, setBombChoices, setCapArmor, setCICHits, setCockpitType, setCritThresh, setCurrentDamage, setCurrentVelocity, setECCMRoll, setEngine, setEngineHits, setFailedManeuver, setFCSHits, setFuel, setGameOptions, setGearHit, setHeatSinks, setHeatType, setIgnoredCrewHits, setLeftThrustHits, setLifeSupport, setNextVelocity, setOmni, setOutControl, setOutCtrlHeat, setPotCrit, setRandomMove, setRightThrustHits, setRolled, setSensorHits, setSI, setSpheroid, setStraightMoves, setThresh, setVSTOL, setWhoFirst, setWingsHit, shouldMoveBackHex, sideTableRam, sideTableRam, victoryReport, wasCritThresh
 
Methods inherited from class megamek.common.Entity
absHeight, addBomb, addBomb, addConditionBonuses, addCoolantFailureAmount, addCritical, addCritical, addEquipment, addEquipment, addEquipment, addEquipment, addEquipment, addEquipment, addEquipment, addFailedEquipment, addKill, addPassedThrough, addPilotingModifierForTerrain, addPilotingModifierForTerrain, addPilotingModifierForTerrain, addTargetedBySwarm, addTransporter, addWeaponGroup, applyDamage, applyGravityEffectsOnMP, applySantaAnna, armorStringFor, assignAMS, attachINarcPod, attachNarcPod, baTaserShutdown, C3MasterIs, calcElevation, calcElevation, calculateFreeC3MNodes, calculateFreeC3Nodes, canAssaultDrop, canAssist, canFlee, canFlipArms, canGoDown, canGoUp, canLayMine, canLoad, canSpot, canTransferCriticals, canUnstickByJumping, checkBogDown, checkDislodgeSwarmers, checkGetUp, checkLandingInHeavyWoods, checkLandingOnIce, checkLandingWithDamage, checkMovedTooFast, checkMovementInBuilding, checkRecklessMove, checkRubbleMove, checkRunningWithDamage, checkSideSlip, checkSkid, checkSprintingWithMASC, checkSprintingWithSupercharger, checkUnstall, checkWaterMove, checkWaterMove, chooseSide, clearQuirks, climbMode, countQuirks, countQuirks, countWorkingMisc, damageBayDoor, damageDockCollar, damageDoorRecovery, decodeTransporters, deployOffBoard, destroy, destroyLocation, destroyRetractableBlade, doCheckEngineStallRoll, elevationOccupied, encodeTransporters, entityIsBiped, entityIsQuad, equals, extendBlade, findTargetedDisplacement, fixElevation, generateDisplayName, generateShortName, getActiveSensor, getActiveUMUCount, getActiveVibrobladeHeat, getAllUMUCount, getAltitude, getArmor, getArmor, getArmor, getArmorString, getArmorString, getArmorTechLevel, getArmorWeight, getArmsFlipped, getBAPRange, getBARRating, getBasePilotingRoll, getBasePilotingRoll, getBattleForceArmorPoints, getBattleForceDamageThresholdString, getBattleForceJumpPoints, getBattleForceMovement, getBattleForceMovementPoints, getBattleForceOverHeatValue, getBattleForcePoints, getBattleForceSize, getBattleForceSpecialAbilites, getBattleForceStandardWeaponsDamage, getBattleForceStandardWeaponsDamage, getBattleForceStandardWeaponsDamage, getBattleForceStandardWeaponsDamage, getBattleForceStructurePoints, getBattleForceTotalHeatGeneration, getBayByAmmo, getBayLoadedUnits, getBlueShieldRounds, getBombLoadout, getBombs, getBVText, getC3Master, getC3MasterId, getC3NetId, getC3Top, getChassis, getClubs, getCoolantFailureAmount, getCrew, getCritical, getDamageReductionFromModularArmor, getDeployRound, getDisplacementAttack, getDisplayName, getDocks, getDroppableUnits, getECMStrength, getEmptyCriticals, getEngine, getEquipment, getEquipment, getEquipmentNum, getEquipmentType, getEvasionBonus, getExternalId, getExternalUnits, getExtraCommGearTons, getExtremeRangeModifier, getFacing, getFailedEquipment, getFighterBays, getFighterLaunchRate, getFirstBay, getFirstWeapon, getFluff, getGame, getGaveKillCredit, getGhostTargetOverride, getGhostTargetRoll, getGhostTargetRollMoS, getGoodCriticals, getGoodCriticals, getGrappled, getGrappleSide, getGyroType, getHeading, getHeatFiringModifier, getHeatInArc, getHeatMPReduction, getHeight, getHitCriticals, getHittableCriticals, getHQIniBonus, getId, getINarcPodsAttached, getInternal, getInternal, getInternalString, getJumpHeat, getJumpMP, getJumpMP, getJumpMPWithTerrain, getJumpType, getKillNumber, getKills, getLastTarget, getLaunchableFighters, getLaunchableSmallCraft, getLoadedBay, getLoadedFighters, getLoadedSmallCraft, getLocationAbbr, getLocationAbbr, getLocationFromAbbr, getLocationName, getLocationName, getLocationStatus, getLongRangeModifier, getMaxElevationDown, getMDIniBonus, getMediumRangeModifier, getMisc, getModel, getMovementBeforeSkidPSRModifier, getMovementMode, getMovementModeAsBattleForceString, getMovementModeAsString, getNextSensor, getNextWeapon, getNumberOf, getNumberOfCriticals, getNumberOfCriticals, getNumberOfCriticals, getNumberOfCriticals, getNumberOfShields, getOArmor, getOArmor, getOArmor, getOffBoardDirection, getOffBoardDistance, getOInternal, getOInternal, getOriginalJumpMP, getOriginalRunMP, getOriginalSprintMP, getOriginalWalkMP, getOwner, getOwnerId, getPassedThrough, getPickedUpMechWarriors, getPosition, getPriorPosition, getQuirkIniBonus, getQuirkList, getQuirks, getRecoveryTurn, getRemovalCondition, getRetreatedDirection, getRunHeat, getRunMP, getRunMP, getRunMPasString, getRunMPwithoutMASC, getRunningGravityLimit, getSecondaryFacing, getSecondaryPositions, getSensorCheck, getSensorDesc, getSensors, getShortName, getShortNameRaw, getShortRangeModifier, getSmallCraftBays, getSmallCraftLaunchRate, getSource, getSpotTargetId, getSprintHeat, getSprintMP, getSprintMP, getSprintMPasString, getSprintMPwithoutMASC, getSprintMPwithoutMASC, getStandingHeat, getStartingPos, getStealthModifier, getStructureType, getSwarmAttackerId, getSwarmTargetId, getTaggedBy, getTargetedBySwarm, getTargetId, getTargetType, getTaserFeedBackRounds, getTaserInterference, getTaserInterferenceRounds, getTaserShutdownRounds, getTechLevel, getTMTracker, getTotalAmmoOfType, getTotalInternal, getTotalMunitionsOfType, getTotalOInternal, getTotalWeaponList, getTransferLocation, getTransportBays, getTransportId, getTransports, getTroopCarryingSpace, getTrooperAtLocation, getUnitNumber, getVector, getVectors, getVelocity, getVibroClaws, getWalkHeat, getWalkMP, getWeaponBayList, getWeaponGroupList, getWeaponList, getWeapons, getWeaponsAndEquipmentCost, getWeaponsAndEquipmentCost, getWeightClass, getWeightClassName, getYear, hasActiveAngelECCM, hasActiveAngelECM, hasActiveBlueShield, hasActiveECCM, 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, hasUMU, hasVibroblades, hasWorkingMisc, hasWorkingMisc, hasWorkingMisc, hasWorkingMisc, hasWorkingSystem, hasWorkingWeapon, hasWorkingWeapon, hasWorkingWeapon, hasWorkingWeapon, hitAllCriticals, illuminateTarget, initializeArmor, initializeInternal, isActive, isActive, isAirborne, isAirborneVTOL, isAssaultDropInProgress, isAttackingThisTurn, isBATaserShutdown, isBoardProhibited, isCanon, isCapitalScale, isCaptured, isCarcass, isCarefulStand, isChameleonShieldActive, isCharging, isClan, isClanArmor, isClearingMinefield, isCommander, isDeployed, isDesignValid, isDestroyed, isDone, isDoomed, isDropping, isElevationValid, isEligibleFor, isEligibleForFiring, isEligibleForMovement, isEligibleForOffboard, isEligibleForPhysical, isEligibleForTargetingPhase, isEnemyOf, isEvading, isFighter, isFindingClub, isGrappleAttacker, isHidden, isHullDown, isIlluminated, isINarcedBy, isINarcedWith, isLargeCraft, isLayingMines, isLoadableThisTurn, isLocationBad, isLocationDoomed, isMakingDfa, isMilitary, isMixedTech, isNarcedBy, isNOE, isNullSigActive, isOffBoard, isOmni, isOnSameSheet, isPartOfFighterSquadron, isProne, isPushing, isRamming, isReckless, isSalvage, isSeenByEnemy, isSelectableThisTurn, isShutDown, isShutDownThisPhase, isSpotting, isStalled, isStealthActive, isStealthOn, isStuck, isSufferingEMI, isSurfaceNaval, isSystemRepairable, isTargetable, isTargetOfDisplacementAttack, isUnjammingRAC, isUnloadedThisTurn, isUsingManAce, isUsingSpotlight, isVisibleToEnemy, isVoidSigActive, itemOppositeTech, load, loadAllWeapons, loadWeapon, loadWeapon, loadWeaponWithSameAmmo, loadWeaponWithSameAmmo, locationHasCase, locationIsLeg, needsRollToStand, onSameC3NetworkAs, onSameC3NetworkAs, passedThrough, passedThroughPrevious, passedWithin, pickUp, printDebugToFile, recover, refreshLocations, reloadEmptyWeapons, removeAllINarcPods, removeAllTransporters, removeCriticals, removeINarcPod, removeMisc, removePartialCoverHits, resetBayDoors, resetFiringArcs, rollMovementInBuilding, setAltitude, setArcFired, setArmor, setArmor, setArmor, setArmorTechLevel, setArmorType, setArmsFlipped, setAssaultDropInProgress, setBATaserShutdown, setC3Master, setC3Master, setC3NetId, setCanon, setCanUnstickByJumping, setCaptured, setCarcass, setCarefulStand, setChassis, setClearingMinefield, setClimbMode, setCommander, setCrew, setCritical, setDeployed, setDeployRound, setDesignValid, setDestroyed, setDisplacementAttack, setDone, setDoomed, setElevation, setEMI, setEvading, setExternalId, setFacing, setFindingClub, setGame, setGrappled, setGrappleSide, setHidden, setHullDown, setId, setIlluminated, setInternal, setInternal, setLandedAssaultDrop, setLastTarget, setLayingMines, setLocationStatus, setMixedTech, setModel, setMovementMode, setNextSensor, setOffBoard, setOriginalJumpMP, setOriginalWalkMP, setOwner, setPassedThrough, setPosition, setProne, setQuirks, setRamming, setRapidFire, setReckless, setRecoveryTurn, setRemovalCondition, setRetreatedDirection, setSalvage, setSecondaryFacing, setSeenByEnemy, setShutDown, setShutDownThisPhase, setSource, setSpotlight, setSpotlightState, setSpotTargetId, setSpotting, setStartingPos, setStructureType, setStructureType, setStuck, setSwarmAttackerId, setSwarmTargetId, setTaggedBy, setTaserFeedback, setTaserInterference, setTaserShutdownRounds, setTechLevel, setTransportId, setUnitNumber, setUnjammingRAC, setUnloaded, setUsedSearchlight, setVectors, setVisibleToEnemy, setWeaponHit, setWeight, setYear, shouldDeploy, sideTable, sideTable, sideTable, statusToString, statusToString, statusToString, toString, 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

MAX_SIZE

public static int MAX_SIZE

fighters

public java.util.Vector<Aero> fighters
Constructor Detail

FighterSquadron

public FighterSquadron()

FighterSquadron

public FighterSquadron(java.lang.String name)
construct fighter squadron with a specific name

Method Detail

getCost

public double getCost(boolean ignoreAmmo)
Description copied from class: Aero
There is a mistake in some of the AT2r costs for some reason they added ammo twice for a lot of the level 2 designs, leading to costs that are too high

Overrides:
getCost in class Aero

isCapitalFighter

public boolean isCapitalFighter()
overrides the default Entity.isCapitalFighter() with true

Overrides:
isCapitalFighter in class Entity

getN0Fighters

public int getN0Fighters()

getNFighters

public int getNFighters()

get0SI

public int get0SI()
Overrides:
get0SI in class Aero

getSI

public int getSI()
Overrides:
getSI in class Aero

getFighter

public Aero getFighter(int loc)

getFighters

public java.util.Vector<Aero> getFighters()

getTotalArmor

public int getTotalArmor()
Description copied from class: Entity
Returns the total amount of armor on the entity.

Overrides:
getTotalArmor in class Entity

getTotalOArmor

public int getTotalOArmor()
Description copied from class: Entity
Returns the total amount of armor on the entity.

Overrides:
getTotalOArmor in class Entity

getArmorRemainingPercent

public double getArmorRemainingPercent()
Returns the percent of the armor remaining

Overrides:
getArmorRemainingPercent in class Aero

getWalkMP

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

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

getFuel

public int getFuel()
Overrides:
getFuel in class Aero

getInternalRemainingPercent

public double getInternalRemainingPercent()
Description copied from class: Aero
Returns the percent of the SI remaining

Overrides:
getInternalRemainingPercent in class Aero

hasTargComp

public boolean hasTargComp()
Description copied from class: Entity
Returns wether or not this entity has a Targeting Computer.

Overrides:
hasTargComp in class Entity

hasActiveECM

public boolean hasActiveECM()
Description copied from class: Entity
Does the mech have a functioning ECM unit?

Overrides:
hasActiveECM in class Entity

loadedUnitsHaveActiveECM

public boolean loadedUnitsHaveActiveECM()
Do units loaded onto this entity still have active ECM/ECCM/etc.?

Overrides:
loadedUnitsHaveActiveECM in class Entity

addEntityBonuses

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

Overrides:
addEntityBonuses in class Aero

getClusterMods

public int getClusterMods()
Description copied from class: Aero
get modifications to the cluster hit table for critical hits

Overrides:
getClusterMods in class Aero

calculateBattleValue

public int calculateBattleValue(boolean ignoreC3,
                                boolean ignorePilot)
Description copied from class: Entity
Calculates the battle value of this mech. If the parameter is true, then the battle value for c3 will be added whether the mech is currently part of a network or not. This should be overwritten if necessary

Overrides:
calculateBattleValue in class Aero
Parameters:
ignoreC3 - if the contribution of the C3 computer should be ignored when calculating BV.
ignorePilot - if the extra BV due to piloting skill should be ignore, needed for c3 bv

calculateBattleValue

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

Overrides:
calculateBattleValue in class Aero

getHeatSinks

public int getHeatSinks()
Overrides:
getHeatSinks in class Aero

getHeatCapacity

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

Overrides:
getHeatCapacity in class Aero

resetHeatCapacity

public void resetHeatCapacity()

getWeight

public float getWeight()
Overrides:
getWeight in class Entity

getAveWeight

public double getAveWeight()

rollHitLocation

public HitData rollHitLocation(int table,
                               int side,
                               int aimedLocation,
                               int aimingMode)
Fighter Squadron units can only get hit in undestroyed fighters.

Overrides:
rollHitLocation in class Aero

rollHitLocation

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

Overrides:
rollHitLocation in class Aero

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

updateWeaponGroups

public void updateWeaponGroups()
instead of trying to track the individual units weapons, just recompile the weapon groups for this squadron each round

Overrides:
updateWeaponGroups in class Aero

updateSkills

public void updateSkills()
update the skills for this squadron


getAmmo

public java.util.ArrayList<Mounted> getAmmo()
Overrides:
getAmmo in class Entity

useFuel

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

Overrides:
useFuel in class Aero

getBombs

public java.util.ArrayList<Mounted> getBombs()
Overrides:
getBombs in class Entity

canLoad

public boolean canLoad(Entity unit,
                       boolean checkFalse)
Determines if this object can accept the given unit. The unit may not be of the appropriate type or there may be no room for the unit.

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

load

public void load(Entity unit,
                 boolean checkFalse)
          throws java.lang.IllegalArgumentException
Load the given unit.

Overrides:
load in class Entity
Parameters:
unit - - the Entity to be loaded.
Throws:
- - If the unit can't be loaded, an IllegalArgumentException exception will be thrown.
java.lang.IllegalArgumentException - If the unit can't be loaded

unload

public boolean unload(Entity unit)
Unload the given unit. TODO: need to strip out ammo

Specified by:
unload in interface Transporter
Overrides:
unload in class Entity
Parameters:
unit - - the Entity to be unloaded.
Returns:
true if the unit was contained in this space, false otherwise.

getLoadedUnits

public java.util.Vector<Entity> getLoadedUnits()
Get a List of the units currently loaded into this payload.

Specified by:
getLoadedUnits in interface Transporter
Overrides:
getLoadedUnits in class Entity
Returns:
A List of loaded Entity units. This list will never be null, but it may be empty. The returned List is independant from the under- lying data structure; modifying one does not affect the other.

getUnusedString

public java.lang.String getUnusedString()
Return a string that identifies the unused capacity of this transporter.

Specified by:
getUnusedString in interface Transporter
Overrides:
getUnusedString in class Entity
Returns:
A String meant for a human.

isWeaponBlockedAt

public boolean isWeaponBlockedAt(int loc,
                                 boolean isRear)
Determine if transported units prevent a weapon in the given location from firing.

Specified by:
isWeaponBlockedAt in interface Transporter
Overrides:
isWeaponBlockedAt in class Entity
Parameters:
loc - - the int location attempting to fire.
isRear - - a boolean value stating if the given location is rear facing; if false, the location is front facing.
Returns:
true if a transported unit is in the way, false if the weapon can fire.

getExteriorUnitAt

public Entity getExteriorUnitAt(int loc,
                                boolean isRear)
If a unit is being transported on the outside of the transporter, it can suffer damage when the transporter is hit by an attack. Currently, no more than one unit can be at any single location; that same unit can be "spread" over multiple locations.

Specified by:
getExteriorUnitAt in interface Transporter
Overrides:
getExteriorUnitAt in class Entity
Parameters:
loc - - the int location hit by attack.
isRear - - a boolean value stating if the given location is rear facing; if false, the location is front facing.
Returns:
The Entity being transported on the outside at that location. This value will be null if no unit is transported on the outside at that location.

getCargoMpReduction

public int getCargoMpReduction()
Specified by:
getCargoMpReduction in interface Transporter
Overrides:
getCargoMpReduction in class Entity
Returns:
the MP reduction due to cargo carried by this transporter