# Enum Class OrientationShield

java.lang.Object
java.lang.Enum<OrientationShield>
it.polimi.ingsw.is25am31.model.components.OrientationShield

All Implemented Interfaces:
  `Serializable`, `Comparable<OrientationShield>`, `Constable`

public enum OrientationShield extends Enum<OrientationShield>
Enumeration representing the four diagonal orientations for shield components. This enum defines the diagonal positioning orientations that can be applied to shield elements within the game. Unlike the cardinal directions defined in `Side`, this enumeration focuses on diagonal orientations that provide corner-based positioning for shield-related game components. The orientations follow a clockwise progression starting from the upper-left position, representing the four diagonal quadrants of a coordinate system or game board. These orientations can be used for: Positioning shield components at diagonal angles, Defining defensive coverage areas, Specifying corner-based attachment points, Indicating diagonal movement or rotation patterns. The available shield orientations are: `UPLEFT` - Upper-left diagonal orientation, `UPRIGHT` - Upper-right diagonal orientation, `DOWNRIGHT` - Lower-right diagonal orientation, `DOWNLEFT` - Lower-left diagonal orientation.

See Also:
  - `Side`

- ## Nested Class Summary

  ### Nested classes/interfaces inherited from class java.lang.Enum

  `Enum.EnumDesc<E extends Enum<E>>`

- ## Enum Constant Summary

  Enum Constants
  Enum Constant
  Description
  `DOWNLEFT`
  `DOWNRIGHT`
  `UPLEFT`
  `UPRIGHT`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `static OrientationShield`
  `valueOf(String name)`
  Returns the enum constant of this class with the specified name.
  `static OrientationShield[]`
  `values()`
  Returns an array containing the constants of this enum class, in the order they are declared.

  ### Methods inherited from class java.lang.Enum

  `clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf`

  ### Methods inherited from class java.lang.Object

  `getClass, notify, notifyAll, wait, wait, wait`

- ## Enum Constant Details

  - ### UPLEFT

    public static final OrientationShield UPLEFT

  - ### UPRIGHT

    public static final OrientationShield UPRIGHT

  - ### DOWNRIGHT

    public static final OrientationShield DOWNRIGHT

  - ### DOWNLEFT

    public static final OrientationShield DOWNLEFT

- ## Method Details

  - ### values

    public static OrientationShield[] values()
    Returns 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

  - ### valueOf

    public static OrientationShield valueOf(String name)
    Returns 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