Class Formation
java.lang.Object
megamek.common.strategicBattleSystems.SBFFormation
megamek.common.autoResolve.component.Formation
- All Implemented Interfaces:
- Serializable,- ASSpecialAbilityCollector,- InGameObject,- ForceAssignable,- BattleForceSUAFormatter,- BTObject,- Deployable
- See Also:
- 
Nested Class SummaryNested classes/interfaces inherited from class megamek.common.strategicBattleSystems.SBFFormationSBFFormation.MoraleStatus
- 
Field SummaryFields inherited from class megamek.common.strategicBattleSystems.SBFFormationmoraleStatus, type
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidaddBeingTargetedBy(Formation formation) intintintintintgetRange(int formationId) getRole()intgetSize()intgetSkill()intintintintgetTmm()booleanbooleanhasDamageAtRange(ASRange range) booleanisClan()booleanChecks if the formation is crippled.booleanbooleanisRangeSet(int formationId) booleanbooleanbooleanvoidreset()voidsetEngagementControl(EngagementControl engagementControl) voidsetEngagementControlFailed(boolean engagementControlFailed) voidvoidvoidsetInitiativeRoll(InitiativeRoll initiativeRoll) voidsetIsClan(boolean clanFormation) voidvoidvoidsetStartingSize(int startingSize) voidsetStdDamage(ASDamageVector stdDamage) voidsetTargetFormationId(int targetFormationId) voidsetUnitIsCrippledLatch(boolean unitIsCrippledLatch) voidsetWithdrawing(boolean withdrawing) toString()Methods inherited from class megamek.common.strategicBattleSystems.SBFFormationaddUnit, equals, formatSUA, generalName, getConversionReport, getDeployRound, getForceId, getForceString, getId, getJumpMove, getJumpUsedThisTurn, getMorale, getMovementCode, getMovementMode, getName, getOwnerId, getPosition, getSbfArtilleryDamage, getSbfArtilleryHomingDamage, getSpecialAbilities, getSpecialsDisplayString, getStrength, getSUA, getTrspMovement, getTrspMovementCode, getTrspMovementMode, getType, getUnits, hashCode, hasSUA, isAerospace, isAnyTypeOf, isBroken, isDeployed, isDone, isEligibleForPhase, isHidden, isRouted, isShaken, isType, isUnitGroup, isUnsteady, moraleStatus, removeUnit, setConversionReport, setDeployed, setDeployRound, setDone, setForceId, setForceString, setId, setJumpMove, setJumpUsedThisTurn, setMorale, setMoraleStatus, setMovement, setMovementMode, setName, setOwnerId, setPointValue, setPosition, setSize, setSkill, setTactics, setTmm, setTrspMovement, setTrspMovementMode, setType, setUnits, specificNameMethods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface megamek.common.alphaStrike.ASSpecialAbilityCollectorgetAC, getBIM, getCAP, getCAR, getCT, getFLK, getFUEL, getHT, getIATM, getIF, getIT, getJMPS, getLAM, getLRM, getMHQ, getMSL, getREAR, getSCAP, getSpecialsDisplayString, getSRM, getSUBS, getTOR, getTUR, hasAnySUAOfMethods inherited from interface megamek.common.strategicBattleSystems.BattleForceSUAFormattershowSUAMethods inherited from interface megamek.common.units.BTObjectgetFluffImage, getIcon, hasAerodyneSpheroidDistinction, isAero, isAerodyne, isAerospaceFighter, isAerospaceSV, isBattleArmor, isBattleMek, isCarryableObject, isCombatVehicle, isConventionalFighter, isConventionalInfantry, isDropShip, isFighter, isFixedWingSupport, isGround, isHandheldWeapon, isIndustrialMek, isInfantry, isJumpShip, isLargeAerospace, isMek, isObjectiveMarker, isProtoMek, isQuadMek, isSingleUnit, isSmallCraft, isSpaceStation, isSpheroid, isSupportVehicle, isTripodMek, isVehicle, isWarShipMethods inherited from interface megamek.common.units.DeployablegetBoardId, getFleeZone, hasFleeZoneMethods inherited from interface megamek.common.interfaces.ForceAssignablepartOfForceMethods inherited from interface megamek.common.game.InGameObjectcountForStrengthSum, hasOwner
- 
Constructor Details- 
Formationpublic Formation()
 
- 
- 
Method Details- 
addBeingTargetedBy
- 
beingTargetByHowManypublic int beingTargetByHowMany()
- 
getStartingSizepublic int getStartingSize()
- 
setStartingSizepublic void setStartingSize(int startingSize) 
- 
currentSizepublic int currentSize()
- 
isSingleEntitypublic boolean isSingleEntity()
- 
getEntity
- 
setEntity
- 
getRole
- 
setRole
- 
getMemory
- 
getEngagementControl
- 
setEngagementControl
- 
getTargetFormationIdpublic int getTargetFormationId()
- 
isUnitIsCrippledLatchpublic boolean isUnitIsCrippledLatch()
- 
setUnitIsCrippledLatchpublic void setUnitIsCrippledLatch(boolean unitIsCrippledLatch) 
- 
setTargetFormationIdpublic void setTargetFormationId(int targetFormationId) 
- 
setIsClanpublic void setIsClan(boolean clanFormation) 
- 
isClanpublic boolean isClan()
- 
isEngagementControlFailedpublic boolean isEngagementControlFailed()
- 
setEngagementControlFailedpublic void setEngagementControlFailed(boolean engagementControlFailed) 
- 
isRangeSetpublic boolean isRangeSet(int formationId) 
- 
getRange
- 
setRange
- 
setHighStressEpisodepublic void setHighStressEpisode()
- 
resetpublic void reset()
- 
getDisplayName
- 
getElementNames
- 
getCurrentMovementpublic int getCurrentMovement()
- 
hadHighStressEpisodepublic boolean hadHighStressEpisode()
- 
isCrippledpublic boolean isCrippled()Checks if the formation is crippled. Rules as described on Interstellar Operations BETA pg 242 - Crippling Damage- Returns:
- true in case it is crippled
 
- 
hasDamageAtRange
- 
setStdDamage
- 
getStdDamage- Returns:
- The standard damage to this element or turret or the STD damage to this arc.
 
- 
getSizepublic int getSize()- Overrides:
- getSizein class- SBFFormation
 
- 
getTmmpublic int getTmm()- Overrides:
- getTmmin class- SBFFormation
 
- 
getSkillpublic int getSkill()- Overrides:
- getSkillin class- SBFFormation
 
- 
getTacticspublic int getTactics()- Overrides:
- getTacticsin class- SBFFormation
 
- 
getMovementpublic int getMovement()- Overrides:
- getMovementin class- SBFFormation
 
- 
getPointValuepublic int getPointValue()- Overrides:
- getPointValuein class- SBFFormation
 
- 
isWithdrawingpublic boolean isWithdrawing()
- 
setWithdrawingpublic void setWithdrawing(boolean withdrawing) 
- 
getInitiativeRoll
- 
setInitiativeRoll
- 
toString- Overrides:
- toStringin class- SBFFormation
 
 
-