cz.cuni.amis.pogamut.defcon.communication.worldview.modules.grid.flags
Enum BasicFlag
java.lang.Object
java.lang.Enum<BasicFlag>
cz.cuni.amis.pogamut.defcon.communication.worldview.modules.grid.flags.BasicFlag
- All Implemented Interfaces:
- Serializable, Comparable<BasicFlag>
public enum BasicFlag
- extends Enum<BasicFlag>
Flag representing a kind of location on a map.
- Author:
- Radek 'Black_Hand' Pibil
Method Summary |
static BasicFlag |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static BasicFlag[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared. |
SEA
public static final BasicFlag SEA
LAND
public static final BasicFlag LAND
OWN_TERRITORY
public static final BasicFlag OWN_TERRITORY
OWN_PLACEABLE_SEA
public static final BasicFlag OWN_PLACEABLE_SEA
OWN_PLACEABLE_LAND
public static final BasicFlag OWN_PLACEABLE_LAND
ENEMY_TERRITORY
public static final BasicFlag ENEMY_TERRITORY
ENEMY_PLACEABLE_SEA
public static final BasicFlag ENEMY_PLACEABLE_SEA
ENEMY_PLACEABLE_LAND
public static final BasicFlag ENEMY_PLACEABLE_LAND
values
public static BasicFlag[] values()
- Returns an array containing the constants of this enum type, in
the order they are declared. This method may be used to iterate
over the constants as follows:
for (BasicFlag c : BasicFlag.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static BasicFlag 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
Copyright © 2013 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.