- java.lang.Object
-
- java.lang.Enum<Resolution>
-
- be.yildizgames.common.client.config.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 Summary
Enum Constants Enum Constant Description RES_1024X7681024*768(4/3).RES_1280X7681280*768.RES_1280X8001280*800.RES_1366X7681366*768.RES_1920X10801920*1080(16/9) HD.RES_800X600800*600(4/3).
-
Method Summary
Modifier and Type Method Description StringtoString()static ResolutionvalueOf(String name)Returns the enum constant of this type with the specified name.static Resolution[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
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.
-
-
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 nameNullPointerException- if the argument is null
-
toString
public final String toString()
- Overrides:
toStringin classEnum<Resolution>- Returns:
- The enumeration value name without the RES_ prefix.
-
-