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 TypeMethodDescriptionvoid
addBeingTargetedBy
(Formation formation) int
int
int
int
int
getRange
(int formationId) getRole()
int
getSize()
int
getSkill()
int
int
int
int
getTmm()
boolean
boolean
hasDamageAtRange
(ASRange range) boolean
isClan()
boolean
Checks if the formation is crippled.boolean
boolean
isRangeSet
(int formationId) boolean
boolean
boolean
void
reset()
void
setEngagementControl
(EngagementControl engagementControl) void
setEngagementControlFailed
(boolean engagementControlFailed) void
void
void
setInitiativeRoll
(InitiativeRoll initiativeRoll) void
setIsClan
(boolean clanFormation) void
void
void
setStartingSize
(int startingSize) void
setStdDamage
(ASDamageVector stdDamage) void
setTargetFormationId
(int targetFormationId) void
setUnitIsCrippledLatch
(boolean unitIsCrippledLatch) void
setWithdrawing
(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, specificName
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods 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, hasAnySUAOf
Methods inherited from interface megamek.common.strategicBattleSystems.BattleForceSUAFormatter
showSUA
Methods 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, isWarShip
Methods inherited from interface megamek.common.units.Deployable
getBoardId, getFleeZone, hasFleeZone
Methods inherited from interface megamek.common.interfaces.ForceAssignable
partOfForce
Methods 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:
getSize
in classSBFFormation
-
getTmm
public int getTmm()- Overrides:
getTmm
in classSBFFormation
-
getSkill
public int getSkill()- Overrides:
getSkill
in classSBFFormation
-
getTactics
public int getTactics()- Overrides:
getTactics
in classSBFFormation
-
getMovement
public int getMovement()- Overrides:
getMovement
in classSBFFormation
-
getPointValue
public int getPointValue()- Overrides:
getPointValue
in classSBFFormation
-
isWithdrawing
public boolean isWithdrawing() -
setWithdrawing
public void setWithdrawing(boolean withdrawing) -
getInitiativeRoll
-
setInitiativeRoll
-
toString
- Overrides:
toString
in classSBFFormation
-