public enum Flag extends Enum<Flag>
Enum Constant and Description |
---|
CENTER
A flag used to indicate the center of something.
|
LEFT
A flag used to indicate the left of something.
|
LEFT_10
The flag on the left hand side of the goal, 10 along from the center of the goal.
|
LEFT_20
The flag on the left hand side of the goal, 20 along from the center of the goal.
|
LEFT_30
The flag on the left hand side of the goal, 30 along from the center of the goal.
|
OTHER_10
The flag on the other side of the pitch, 10 along from the center line.
|
OTHER_20
The flag on the other side of the pitch, 20 along from the center line.
|
OTHER_30
The flag on the other side of the pitch, 30 along from the center line.
|
OTHER_40
The flag on the other side of the pitch, 40 along from the center line.
|
OTHER_50
The flag on the other side of the pitch, 50 along from the center line.
|
OWN_10
The flag on our side of the pitch, 10 along from the center line.
|
OWN_20
The flag on our side of the pitch, 20 along from the center line.
|
OWN_30
The flag on our side of the pitch, 30 along from the center line.
|
OWN_40
The flag on our side of the pitch, 40 along from the center line.
|
OWN_50
The flag on our side of the pitch, 50 along from the center line.
|
RIGHT
A flag used to indicate the right of something.
|
RIGHT_10
The flag on the right hand side of the goal, 10 along from the center of the goal.
|
RIGHT_20
The flag on the right hand side of the goal, 20 along from the center of the goal.
|
RIGHT_30
The flag on the right hand side of the goal, 30 along from the center of the goal.
|
Modifier and Type | Method and Description |
---|---|
static boolean |
isLeftRight(Flag pointer)
Checks if the enum flag is LEFT or RIGHT.
|
static boolean |
isLeftRightCenter(Flag pointer)
Checks if the enum flag is LEFT RIGHT or CENTER.
|
static Flag |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Flag[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Flag CENTER
public static final Flag LEFT
public static final Flag LEFT_10
public static final Flag LEFT_20
public static final Flag LEFT_30
public static final Flag OTHER_10
public static final Flag OTHER_20
public static final Flag OTHER_30
public static final Flag OTHER_40
public static final Flag OTHER_50
public static final Flag OWN_10
public static final Flag OWN_20
public static final Flag OWN_30
public static final Flag OWN_40
public static final Flag OWN_50
public static final Flag RIGHT
public static final Flag RIGHT_10
public static final Flag RIGHT_20
public static final Flag RIGHT_30
public static Flag[] values()
for (Flag c : Flag.values()) System.out.println(c);
public static Flag 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 nullpublic static boolean isLeftRightCenter(Flag pointer)
pointer
- The flag to check.public static boolean isLeftRight(Flag pointer)
pointer
- The flag to check.Copyright © 2003–2015 Atan. All rights reserved.