Package megamek.common.enums
Enum Class FacingArc
- All Implemented Interfaces:
- Serializable,- Comparable<FacingArc>,- Constable
All the different possible facing arcs
- 
Nested Class SummaryNested classes/interfaces inherited from class java.lang.EnumEnum.EnumDesc<E extends Enum<E>>
- 
Enum Constant SummaryEnum ConstantsEnum ConstantDescription
- 
Method SummaryModifier and TypeMethodDescriptionintintintbooleanisInsideArc(int angle) booleanisInsideArc(Coords source, int facing, Targetable target) booleanisInsideArc(UnitPosition source, UnitPosition target) static FacingArcvalueOf(int arcCode) Returns the enum constant of this type with the legacy specified arcCode.static FacingArcReturns the enum constant of this class with the specified name.static FacingArc[]values()Returns an array containing the constants of this enum class, in the order they are declared.
- 
Enum Constant Details- 
ARC_360
- 
ARC_FORWARD
- 
ARC_LEFT_ARM
- 
ARC_RIGHT_ARM
- 
ARC_REAR
- 
ARC_LEFT_SIDE
- 
ARC_RIGHT_SIDE
- 
ARC_MAIN_GUN
- 
ARC_NORTH
- 
ARC_EAST
- 
ARC_WEST
- 
ARC_NOSE
- 
ARC_LEFT_WING
- 
ARC_RIGHT_WING
- 
ARC_LEFT_WING_AFT
- 
ARC_RIGHT_WING_AFT
- 
ARC_LEFT_SIDE_SPHERE
- 
ARC_RIGHT_SIDE_SPHERE
- 
ARC_LEFT_SIDE_AFT_SPHERE
- 
ARC_RIGHT_SIDE_AFT_SPHERE
- 
ARC_LEFT_BROADSIDE
- 
ARC_RIGHT_BROADSIDE
- 
ARC_AFT
- 
ARC_LEFT_SPHERE_GROUND
- 
ARC_RIGHT_SPHERE_GROUND
- 
ARC_TURRET
- 
ARC_SPONSON_TURRET_LEFT
- 
ARC_SPONSON_TURRET_RIGHT
- 
ARC_PINTLE_TURRET_LEFT
- 
ARC_PINTLE_TURRET_RIGHT
- 
ARC_PINTLE_TURRET_FRONT
- 
ARC_PINTLE_TURRET_REAR
- 
ARC_VGL_FRONT
- 
ARC_VGL_RF
- 
ARC_VGL_RR
- 
ARC_VGL_REAR
- 
ARC_VGL_LR
- 
ARC_VGL_LF
- 
ARC_NOSE_WPL
- 
ARC_LEFT_WING_WPL
- 
ARC_RIGHT_WING_WPL
- 
ARC_LEFT_WING_AFT_WPL
- 
ARC_RIGHT_WING_AFT_WPL
- 
ARC_LEFT_SIDE_SPHERE_WPL
- 
ARC_RIGHT_SIDE_SPHERE_WPL
- 
ARC_LEFT_SIDE_AFT_SPHERE_WPL
- 
ARC_RIGHT_SIDE_AFT_SPHERE_WPL
- 
ARC_AFT_WPL
- 
ARC_LEFT_BROADSIDE_WPL
- 
ARC_RIGHT_BROADSIDE_WPL
 
- 
- 
Method Details- 
valuesReturns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
 
- 
valueOfReturns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
- name- the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
- IllegalArgumentException- if this enum class has no constant with the specified name
- NullPointerException- if the argument is null
 
- 
getArcCodepublic int getArcCode()
- 
getStartAnglepublic int getStartAngle()
- 
getEndAnglepublic int getEndAngle()
- 
isInsideArcpublic boolean isInsideArc(int angle) 
- 
isInsideArc
- 
isInsideArc
- 
valueOfReturns the enum constant of this type with the legacy specified arcCode. The arcCode must match exactly an arcCode used to declare an enum constant in this type.- Returns:
- the enum constant with the specified legacy arcCode
- Throws:
- IllegalArgumentException- – if this enum type has no constant with the specified arcCode
 
 
-