Modifier and Type | Method | Description |
---|---|---|
static Alliance |
from(int sc2ApiPlayerRelative) |
|
static Alliance |
from(SC2APIProtocol.Raw.Alliance sc2ApiAlliance) |
|
static Alliance |
valueOf(java.lang.String name) |
Returns the enum constant of this type with the specified name.
|
static Alliance[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Alliance SELF
public static final Alliance ALLY
public static final Alliance ENEMY
public static final Alliance NEUTRAL
public static Alliance[] values()
for (Alliance c : Alliance.values()) System.out.println(c);
public static Alliance 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 Alliance from(SC2APIProtocol.Raw.Alliance sc2ApiAlliance)
public static Alliance from(int sc2ApiPlayerRelative)
Copyright © 2017–2018 Ocraft Project. All rights reserved.