Package megamek.common.equipment
Record Class Sensor
java.lang.Object
java.lang.Record
megamek.common.equipment.Sensor
- All Implemented Interfaces:
Serializable
This class will hold all the information about a particular active sensor, including its rolls
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final intstatic final intstatic final intstatic final Stringstatic final Stringstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintadjustRange(int range, Game game, LosEffects los) intentityAdjustments(int range, Entity target, Game game) final booleanIndicates whether some other object is "equal to" this one.intgetECMSensorRangeModifier(ECMInfo ecmInfo) intgetModForECM(Entity en, List<ECMInfo> allECMInfo) Computes the sensor check modifier for ECM.intgetModForMetalContent(Entity en, Entity te) intgetModForTargetECM(Entity targetEntity, List<ECMInfo> allECMInfo) Computes the sensor check modifier for ECM.intintfinal inthashCode()Returns a hash code value for this object.booleanisBAP()final StringtoString()Returns a string representation of this record class.inttype()Returns the value of thetyperecord component.
-
Field Details
-
TYPE_MEK_RADAR
public static final int TYPE_MEK_RADAR- See Also:
-
TYPE_VEE_RADAR
public static final int TYPE_VEE_RADAR- See Also:
-
TYPE_BAP
public static final int TYPE_BAP- See Also:
-
TYPE_CLAN_AP
public static final int TYPE_CLAN_AP- See Also:
-
TYPE_BLOODHOUND
public static final int TYPE_BLOODHOUND- See Also:
-
TYPE_WATCHDOG
public static final int TYPE_WATCHDOG- See Also:
-
TYPE_LIGHT_AP
public static final int TYPE_LIGHT_AP- See Also:
-
TYPE_MEK_IR
public static final int TYPE_MEK_IR- See Also:
-
TYPE_VEE_IR
public static final int TYPE_VEE_IR- See Also:
-
TYPE_MEK_MAG_SCAN
public static final int TYPE_MEK_MAG_SCAN- See Also:
-
TYPE_VEE_MAG_SCAN
public static final int TYPE_VEE_MAG_SCAN- See Also:
-
TYPE_BA_HEAT
public static final int TYPE_BA_HEAT- See Also:
-
TYPE_BA_IMPROVED
public static final int TYPE_BA_IMPROVED- See Also:
-
TYPE_MEK_SEISMIC
public static final int TYPE_MEK_SEISMIC- See Also:
-
TYPE_VEE_SEISMIC
public static final int TYPE_VEE_SEISMIC- See Also:
-
TYPE_EW_EQUIPMENT
public static final int TYPE_EW_EQUIPMENT- See Also:
-
TYPE_NOVA
public static final int TYPE_NOVA- See Also:
-
TYPE_BAPP
public static final int TYPE_BAPP- See Also:
-
TYPE_AERO_SENSOR
public static final int TYPE_AERO_SENSOR- See Also:
-
TYPE_SPACECRAFT_RADAR
public static final int TYPE_SPACECRAFT_RADAR- See Also:
-
TYPE_SPACECRAFT_ESM
public static final int TYPE_SPACECRAFT_ESM- See Also:
-
TYPE_SPACECRAFT_THERMAL
public static final int TYPE_SPACECRAFT_THERMAL- See Also:
-
TYPE_AERO_THERMAL
public static final int TYPE_AERO_THERMAL- See Also:
-
TYPE_EI_PROBE
public static final int TYPE_EI_PROBE- See Also:
-
WATCHDOG
- See Also:
-
NOVA
- See Also:
-
BAP
- See Also:
-
BAPP
- See Also:
-
CLAN_AP
- See Also:
-
BLOODHOUND
- See Also:
-
LIGHT_AP
- See Also:
-
IS_IMPROVED
- See Also:
-
CL_IMPROVED
- See Also:
-
CL_BA_LIGHT_AP
- See Also:
-
IS_BA_LIGHT_AP
- See Also:
-
EW_EQUIPMENT
- See Also:
-
SIZE
public static final int SIZE -
ASF_RADAR_AUTO_SPOT_RANGE
public static final int ASF_RADAR_AUTO_SPOT_RANGE- See Also:
-
ASF_OPTICAL_FIRING_SOLUTION_RANGE
public static final int ASF_OPTICAL_FIRING_SOLUTION_RANGE- See Also:
-
LC_RADAR_AUTO_SPOT_RANGE
public static final int LC_RADAR_AUTO_SPOT_RANGE- See Also:
-
LC_RADAR_GROUND_RANGE
public static final int LC_RADAR_GROUND_RANGE- See Also:
-
ASF_RADAR_MAX_RANGE
public static final int ASF_RADAR_MAX_RANGE- See Also:
-
LC_OPTICAL_FIRING_SOLUTION_RANGE
public static final int LC_OPTICAL_FIRING_SOLUTION_RANGE- See Also:
-
-
Constructor Details
-
Sensor
public Sensor(int type) Constructor
-
-
Method Details
-
getDisplayName
-
isBAP
public boolean isBAP() -
getRangeByBracket
public int getRangeByBracket() -
adjustRange
-
getModsForStealth
-
getModForECM
Computes the sensor check modifier for ECM.- Parameters:
allECMInfo- A collection of ECMInfo for all entities, this value can be null, and it will be computed when it's needed, however passing in the pre-computed collection is much faster
-
getModForTargetECM
Computes the sensor check modifier for ECM.- Parameters:
allECMInfo- A collection of ECMInfo for all entities, this value can be null, and it will be computed when it's needed, however passing in the pre-computed collection is much faster
-
getECMSensorRangeModifier
-
getModForMetalContent
-
entityAdjustments
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with '=='. -
type
public int type()Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-