cz.cuni.amis.pogamut.defcon.communication.worldview.modules.grid.flags
Enum BasicFlag

Package class diagram package BasicFlag
java.lang.Object
  extended by java.lang.Enum<BasicFlag>
      extended by 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

Enum Constant Summary
ENEMY_PLACEABLE_LAND
           
ENEMY_PLACEABLE_SEA
           
ENEMY_TERRITORY
           
LAND
           
OWN_PLACEABLE_LAND
           
OWN_PLACEABLE_SEA
           
OWN_TERRITORY
           
SEA
           
 
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.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

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
Method Detail

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.