Sc2ApiSerializable<SC2APIProtocol.Sc2Api.PlayerType>
, java.io.Serializable
, java.lang.Comparable<PlayerType>
public enum PlayerType extends java.lang.Enum<PlayerType> implements Sc2ApiSerializable<SC2APIProtocol.Sc2Api.PlayerType>
Enum Constant | Description |
---|---|
COMPUTER |
|
OBSERVER |
|
PARTICIPANT |
Modifier and Type | Method | Description |
---|---|---|
static PlayerType |
from(SC2APIProtocol.Sc2Api.PlayerType sc2ApiPlayerType) |
|
SC2APIProtocol.Sc2Api.PlayerType |
toSc2Api() |
|
static PlayerType |
valueOf(java.lang.String name) |
Returns the enum constant of this type with the specified name.
|
static PlayerType[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PlayerType PARTICIPANT
public static final PlayerType COMPUTER
public static final PlayerType OBSERVER
public static PlayerType[] values()
for (PlayerType c : PlayerType.values()) System.out.println(c);
public static PlayerType 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 PlayerType from(SC2APIProtocol.Sc2Api.PlayerType sc2ApiPlayerType)
public SC2APIProtocol.Sc2Api.PlayerType toSc2Api()
toSc2Api
in interface Sc2ApiSerializable<SC2APIProtocol.Sc2Api.PlayerType>
Copyright © 2017–2018 Ocraft Project. All rights reserved.