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) 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.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
public int getStartingSize() -
setStartingSize
public void setStartingSize(int startingSize) -
currentSize
public int currentSize() -
isSingleEntity
public boolean isSingleEntity() -
getEntity
-
setEntity
-
getRole
-
setRole
-
getMemory
-
getEngagementControl
-
setEngagementControl
-
getTargetFormationId
public int getTargetFormationId() -
isUnitIsCrippledLatch
public boolean isUnitIsCrippledLatch() -
setUnitIsCrippledLatch
public void setUnitIsCrippledLatch(boolean unitIsCrippledLatch) -
setTargetFormationId
public void setTargetFormationId(int targetFormationId) -
setIsClan
public void setIsClan(boolean clanFormation) -
isClan
public boolean isClan() -
isEngagementControlFailed
public boolean isEngagementControlFailed() -
setEngagementControlFailed
public void setEngagementControlFailed(boolean engagementControlFailed) -
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
-
setInitiativeRoll
-
toString
- Overrides:
toStringin classSBFFormation
-