Enum Constant and Description |
---|
None |
Other |
Protoss |
Random |
Select |
Terran |
Unknown |
Unused |
Zerg |
Modifier and Type | Method and Description |
---|---|
UnitType |
getCenter()
Retrieves the default resource center UnitType that is used to create expansions for this Race.
|
int |
getId() |
UnitType |
getRefinery()
Retrieves the default structure UnitType for this Race that is used to harvest gas from Vespene
Geysers.
|
UnitType |
getSupplyProvider()
Retrieves the default supply provider UnitType for this race that is used to construct units.
|
UnitType |
getTransport()
Retrieves the default transport UnitType for this race that is used to transport ground units
across the map.
|
UnitType |
getWorker()
Retrieves the default worker type for this Race.
|
static Race |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Race[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
static Race |
withId(int id) |
public static final Race Zerg
public static final Race Terran
public static final Race Protoss
public static final Race Other
public static final Race Unused
public static final Race Select
public static final Race Random
public static final Race None
public static final Race Unknown
public static Race[] values()
for (Race c : Race.values()) System.out.println(c);
public static Race 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 static Race withId(int id)
public int getId()
public UnitType getWorker()
public UnitType getCenter()
public UnitType getRefinery()
public UnitType getTransport()
public UnitType getSupplyProvider()