Class MountedHelper

java.lang.Object
megamek.common.equipment.MountedHelper

public class MountedHelper extends Object
Helper methods for Mounted to clean up checks like "is this an Artemis IV".
  • Constructor Details

    • MountedHelper

      public MountedHelper()
  • Method Details

    • isCoolantPod

      public static boolean isCoolantPod(@Nullable Mounted<?> m)
      Returns true if the given Mounted m is a Coolant Pod.
    • isArtemisIV

      public static boolean isArtemisIV(@Nullable Mounted<?> m)
      Returns true if the given Mounted m is an Artemis IV system (IS/C).
    • isArtemisV

      public static boolean isArtemisV(@Nullable Mounted<?> m)
      Returns true if the given Mounted m is an Artemis V system.
    • isArtemisProto

      public static boolean isArtemisProto(@Nullable Mounted<?> m)
      Returns true if the given Mounted m is a Proto Artemis system.
    • isAnyArtemis

      public static boolean isAnyArtemis(@Nullable Mounted<?> m)
      Returns true if the given Mounted m is any Artemis system (IV, V, Proto, IS/C).