Enum Resolution

  • All Implemented Interfaces:
    Serializable, Comparable<Resolution>

    public enum Resolution
    extends Enum<Resolution>
    List of resolutions supported by the game.
    Author:
    Gr��gory Van Den Borre specfield Resolution:Resolution:value for the resolution, must match the pattern RES_\\d{3,4}X\\d{3,4}. derivedfield x:int:width resolution extracted from the x value of RES_xXy. derivedfield y:int:height resolution extracted from the y value of RES_xXy.
    • Enum Constant Detail

      • RES_800X600

        public static final Resolution RES_800X600
        800*600(4/3).
      • RES_1280X800

        public static final Resolution RES_1280X800
        1280*800.
      • RES_1024X768

        public static final Resolution RES_1024X768
        1024*768(4/3).
      • RES_1280X768

        public static final Resolution RES_1280X768
        1280*768.
      • RES_1366X768

        public static final Resolution RES_1366X768
        1366*768.
      • RES_1920X1080

        public static final Resolution RES_1920X1080
        1920*1080(16/9) HD.
    • Field Detail

      • x

        public final int x
        X value of the resolution, immutable.
      • y

        public final int y
        Y value of the resolution, immutable.
    • Method Detail

      • values

        public static Resolution[] values()
        Returns an array containing the constants of this enum type, in the order they are declared.
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static Resolution valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
        NullPointerException - if the argument is null
      • toString

        public final String toString()
        Overrides:
        toString in class Enum<Resolution>
        Returns:
        The enumeration value name without the RES_ prefix.