java.io.Serializable
, java.lang.Comparable<UnitAttribute>
public enum UnitAttribute extends java.lang.Enum<UnitAttribute>
Enum Constant | Description |
---|---|
ARMORED |
|
BIOLOGICAL |
|
HEROIC |
|
HOVER |
|
LIGHT |
|
MASSIVE |
|
MECHANICAL |
|
PSIONIC |
|
ROBOTIC |
|
STRUCTURE |
|
SUMMONED |
Modifier and Type | Method | Description |
---|---|---|
static UnitAttribute |
from(SC2APIProtocol.Data.Attribute sc2ApiAttribute) |
|
static UnitAttribute |
valueOf(java.lang.String name) |
Returns the enum constant of this type with the specified name.
|
static UnitAttribute[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final UnitAttribute LIGHT
public static final UnitAttribute ARMORED
public static final UnitAttribute BIOLOGICAL
public static final UnitAttribute MECHANICAL
public static final UnitAttribute ROBOTIC
public static final UnitAttribute PSIONIC
public static final UnitAttribute MASSIVE
public static final UnitAttribute STRUCTURE
public static final UnitAttribute HOVER
public static final UnitAttribute HEROIC
public static final UnitAttribute SUMMONED
public static UnitAttribute[] values()
for (UnitAttribute c : UnitAttribute.values()) System.out.println(c);
public static UnitAttribute 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 UnitAttribute from(SC2APIProtocol.Data.Attribute sc2ApiAttribute)
Copyright © 2017–2018 Ocraft Project. All rights reserved.