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 Summary
Nested classes/interfaces inherited from class megamek.common.strategicBattleSystems.SBFFormation
SBFFormation.MoraleStatus -
Field Summary
Fields inherited from class megamek.common.strategicBattleSystems.SBFFormation
moraleStatus, type -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddBeingTargetedBy(Formation formation) intintintDeprecated, for removal: This API element is subject to removal in a future version.intintgetRange(int formationId) getRole()intgetSize()intgetSkill()intDeprecated, for removal: This API element is subject to removal in a future version.intintintgetTmm()booleanbooleanhasDamageAtRange(ASRange range) booleanisClan()booleanChecks if the formation is crippled.booleanDeprecated, for removal: This API element is subject to removal in a future version.booleanisRangeSet(int formationId) booleanbooleanDeprecated, for removal: This API element is subject to removal in a future version.booleanvoidreset()voidsetEngagementControl(EngagementControl engagementControl) Deprecated, for removal: This API element is subject to removal in a future version.voidsetEngagementControlFailed(boolean engagementControlFailed) Deprecated, for removal: This API element is subject to removal in a future version.voidvoidvoidsetInitiativeRoll(InitiativeRoll initiativeRoll) Deprecated, for removal: This API element is subject to removal in a future version.voidsetIsClan(boolean clanFormation) voidvoidvoidsetStartingSize(int startingSize) voidsetStdDamage(ASDamageVector stdDamage) voidsetTargetFormationId(int targetFormationId) voidsetUnitIsCrippledLatch(boolean unitIsCrippledLatch) Deprecated, for removal: This API element is subject to removal in a future version.voidsetWithdrawing(boolean withdrawing) toString()Methods inherited from class megamek.common.strategicBattleSystems.SBFFormation
addUnit, 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.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface megamek.common.alphaStrike.ASSpecialAbilityCollector
getAC, 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.BattleForceSUAFormatter
showSUAMethods inherited from interface megamek.common.units.BTObject
getFluffImage, 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.Deployable
getBoardId, getFleeZone, hasFleeZoneMethods inherited from interface megamek.common.interfaces.ForceAssignable
partOfForceMethods inherited from interface megamek.common.game.InGameObject
countForStrengthSum, hasOwner
-
Constructor Details
-
Formation
public Formation()
-
-
Method Details
-
addBeingTargetedBy
-
beingTargetByHowMany
public int beingTargetByHowMany() -
getStartingSize
Deprecated, for removal: This API element is subject to removal in a future version. -
setStartingSize
public void setStartingSize(int startingSize) -
currentSize
public int currentSize() -
isSingleEntity
public boolean isSingleEntity() -
getEntity
-
setEntity
-
getRole
-
setRole
-
getMemory
-
getEngagementControl
-
setEngagementControl
@Deprecated(since="0.51.0", forRemoval=true) public void setEngagementControl(EngagementControl engagementControl) Deprecated, for removal: This API element is subject to removal in a future version. -
getTargetFormationId
public int getTargetFormationId() -
isUnitIsCrippledLatch
Deprecated, for removal: This API element is subject to removal in a future version. -
setUnitIsCrippledLatch
@Deprecated(since="0.51.0", forRemoval=true) public void setUnitIsCrippledLatch(boolean unitIsCrippledLatch) Deprecated, for removal: This API element is subject to removal in a future version. -
setTargetFormationId
public void setTargetFormationId(int targetFormationId) -
setIsClan
public void setIsClan(boolean clanFormation) -
isClan
public boolean isClan() -
isEngagementControlFailed
Deprecated, for removal: This API element is subject to removal in a future version. -
setEngagementControlFailed
@Deprecated(since="0.51.0", forRemoval=true) public void setEngagementControlFailed(boolean engagementControlFailed) Deprecated, for removal: This API element is subject to removal in a future version. -
isRangeSet
public boolean isRangeSet(int formationId) -
getRange
-
setRange
-
setHighStressEpisode
public void setHighStressEpisode() -
reset
public void reset() -
getDisplayName
-
getElementNames
-
getCurrentMovement
public int getCurrentMovement() -
hadHighStressEpisode
public boolean hadHighStressEpisode() -
isCrippled
public 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.
-
getSize
public int getSize()- Overrides:
getSizein classSBFFormation
-
getTmm
public int getTmm()- Overrides:
getTmmin classSBFFormation
-
getSkill
public int getSkill()- Overrides:
getSkillin classSBFFormation
-
getTactics
public int getTactics()- Overrides:
getTacticsin classSBFFormation
-
getMovement
public int getMovement()- Overrides:
getMovementin classSBFFormation
-
getPointValue
public int getPointValue()- Overrides:
getPointValuein classSBFFormation
-
isWithdrawing
public boolean isWithdrawing() -
setWithdrawing
public void setWithdrawing(boolean withdrawing) -
getInitiativeRoll
Deprecated, for removal: This API element is subject to removal in a future version. -
setInitiativeRoll
@Deprecated(since="0.51.0", forRemoval=true) public void setInitiativeRoll(InitiativeRoll initiativeRoll) Deprecated, for removal: This API element is subject to removal in a future version. -
toString
- Overrides:
toStringin classSBFFormation
-