Package megamek.common.units
Interface ActiveHeatSinkController
- All Known Implementing Classes:
Aero,AeroSpaceFighter,BipedMek,ConvFighter,Dropship,EscapePods,FighterSquadron,FixedWingSupport,Jumpship,LandAirMek,Mek,MekWithArms,QuadMek,QuadVee,SmallCraft,SpaceStation,TeleMissile,TripodMek,Warship
public interface ActiveHeatSinkController
Implemented by units whose players can switch heat sinks off and back on (the activation/deactivation rules).
Meks track activation per heat sink mount via equipment modes; aerospace units track only a count, because their
heat sinks are not individual equipment mounts. In both cases a change is declared at any time but takes effect in
the End Phase.
-
Method Summary
Modifier and TypeMethodDescriptionintintvoidsetActiveSinksNextRound(int sinks) Requests that the given number of heat sinks be active next round; the change takes effect in the End Phase.
-
Method Details
-
getActiveSinks
int getActiveSinks()- Returns:
- the number of operable heat sinks that are currently active (switched on)
-
getActiveSinksNextRound
int getActiveSinksNextRound()- Returns:
- the number of operable heat sinks that will be active next round, taking pending changes into account
-
setActiveSinksNextRound
void setActiveSinksNextRound(int sinks) Requests that the given number of heat sinks be active next round; the change takes effect in the End Phase.- Parameters:
sinks- the number of heat sinks that should be active
-