Package megamek.common.compute
Class ComputeArc
java.lang.Object
megamek.common.compute.ComputeArc
-
Method Summary
Modifier and TypeMethodDescriptionstatic booleanstatic booleanstatic booleanisInArc(Coords src, int facing, Targetable target, int arc) static booleanisInArc(Game game, int attackerId, int weaponId, Targetable target) static booleanisInArcOld(Coords src, int facing, List<Coords> destV, int arc) Deprecated, for removal: This API element is subject to removal in a future version.
-
Method Details
-
isInArc
-
isInArc
-
isInArc
-
isInArc
-
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 coordinatesfacing- the appropriate attacker sfacingdestV- A vector of target coordinatesarc- the arc
-