java.io.Serializable
, java.lang.Comparable<GameStatus>
public enum GameStatus extends java.lang.Enum<GameStatus>
Enum Constant | Description |
---|---|
ENDED |
|
IN_GAME |
|
IN_REPLAY |
|
INIT_GAME |
|
LAUNCHED |
|
QUIT |
|
UNKNOWN |
Modifier and Type | Method | Description |
---|---|---|
static GameStatus |
from(SC2APIProtocol.Sc2Api.Status sc2ApiStatus) |
|
static GameStatus |
valueOf(java.lang.String name) |
Returns the enum constant of this type with the specified name.
|
static GameStatus[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final GameStatus LAUNCHED
public static final GameStatus INIT_GAME
public static final GameStatus IN_GAME
public static final GameStatus IN_REPLAY
public static final GameStatus ENDED
public static final GameStatus QUIT
public static final GameStatus UNKNOWN
public static GameStatus[] values()
for (GameStatus c : GameStatus.values()) System.out.println(c);
public static GameStatus 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 GameStatus from(SC2APIProtocol.Sc2Api.Status sc2ApiStatus)
Copyright © 2017–2018 Ocraft Project. All rights reserved.