public enum EnumRegion extends java.lang.Enum<EnumRegion> implements Sendable
JSON.Parser| Enum Constant and Description |
|---|
ARCTIC_AMERICA |
CENTRAL_ASIA |
EAST_ASIA |
EUROPE |
MIDDLE_AMERICA |
MIDDLE_EAST |
OCEANIA |
RUSSIA |
SOUTH_AMERICA |
SOUTH_ASIA |
SOUTHEAST_ASIA |
SUB_SAHARAN |
USA_CALIFORNIA
The US states in this region are: CA
|
USA_HEARTLAND
The US states in this region are: IA, MO, IL, IN
|
USA_MOUNTAIN
The US states in this region are: WA, OR, ID, NV, MT, WY, UT, CO, AZ, NM
|
USA_NORTHERN_CRESCENT
The US states in this region are: ME, VT, HN, MA, RI, CT, NJ, NY, PA, DE, MD, OH, WI, MI
|
USA_NORTHERN_PLAINS
The US states in this region are: ND, SD, NE, KS, MN
|
USA_SOUTHEAST
The US states in this region are: FL, MS, AL, GA, TN, NC, SC, KY, WV, VA
|
USA_SOUTHERN_PLAINS
The US states in this region are: TX, LA, OK, AR
|
| Modifier and Type | Field and Description |
|---|---|
static int |
SIZE |
static EnumRegion[] |
US_REGIONS
Array of all player regions used in game.
|
static EnumRegion[] |
WORLD_REGIONS
Array of all non-player regions used in game.
|
| Modifier and Type | Method and Description |
|---|---|
static int |
allUSRegionBits() |
void |
fromJSON(java.lang.Object doc)
Convert String into JSON
|
int |
getBit() |
java.lang.String |
getType() |
boolean |
isUS() |
void |
setType(java.lang.String type) |
JSONDocument |
toJSON()
Convert class into json
|
java.lang.String |
toString() |
static EnumRegion |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static EnumRegion[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EnumRegion USA_CALIFORNIA
public static final EnumRegion USA_HEARTLAND
public static final EnumRegion USA_NORTHERN_PLAINS
public static final EnumRegion USA_SOUTHEAST
public static final EnumRegion USA_NORTHERN_CRESCENT
public static final EnumRegion USA_SOUTHERN_PLAINS
public static final EnumRegion USA_MOUNTAIN
public static final EnumRegion ARCTIC_AMERICA
public static final EnumRegion MIDDLE_AMERICA
public static final EnumRegion SOUTH_AMERICA
public static final EnumRegion EUROPE
public static final EnumRegion MIDDLE_EAST
public static final EnumRegion SUB_SAHARAN
public static final EnumRegion RUSSIA
public static final EnumRegion CENTRAL_ASIA
public static final EnumRegion SOUTH_ASIA
public static final EnumRegion EAST_ASIA
public static final EnumRegion SOUTHEAST_ASIA
public static final EnumRegion OCEANIA
public static final int SIZE
public static final EnumRegion[] US_REGIONS
public static final EnumRegion[] WORLD_REGIONS
public static EnumRegion[] values()
for (EnumRegion c : EnumRegion.values()) System.out.println(c);
public static EnumRegion valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic JSONDocument toJSON()
JSONpublic void fromJSON(java.lang.Object doc)
JSONpublic int getBit()
public java.lang.String toString()
toString in class java.lang.Enum<EnumRegion>public static int allUSRegionBits()
public boolean isUS()