public enum CoordinateType extends Enum<CoordinateType>
Enum Constant and Description |
---|
Map
Position.Origin (0,0) corresponds to the top left corner of the map |
Mouse
Position.Origin (0,0) corresponds to the top left corner of the mouse cursor |
None
A default value for uninitialized coordinate types.
|
Screen
Position.Origin (0,0) corresponds to the top left corner of the screen |
Modifier and Type | Method and Description |
---|---|
static CoordinateType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CoordinateType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CoordinateType None
public static final CoordinateType Screen
Position.Origin
(0,0) corresponds to the top left corner of the screenpublic static final CoordinateType Map
Position.Origin
(0,0) corresponds to the top left corner of the mappublic static final CoordinateType Mouse
Position.Origin
(0,0) corresponds to the top left corner of the mouse cursorpublic static CoordinateType[] values()
for (CoordinateType c : CoordinateType.values()) System.out.println(c);
public static CoordinateType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2022. All rights reserved.