Class ComputeArc

java.lang.Object
megamek.common.compute.ComputeArc

public class ComputeArc extends Object
  • Method Details

    • isInArc

      public static boolean isInArc(Game game, int attackerId, int weaponId, Targetable target)
    • isInArc

      public static boolean isInArc(Coords src, int facing, Targetable target, int arc)
    • isInArc

      public static boolean isInArc(Coords src, int facing, Coords dest, int arc)
    • isInArc

      public static boolean isInArc(Coords src, int facing, List<Coords> destV, int arc)
    • isInArcOld

      @Deprecated(forRemoval=true, since="0.50.07") public static boolean isInArcOld(Coords src, int facing, List<Coords> destV, int arc)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Returns true if the target is in the specified arc. Note: This has to take vectors of coordinates to account for potential secondary positions
      Parameters:
      src - the attack coordinates
      facing - the appropriate attacker sfacing
      destV - A vector of target coordinates
      arc - the arc