public enum Event extends Enum<Event>
Enum Constant and Description |
---|
CEASED_FIRE |
DESTROYED |
HIT |
NEW_VOTE |
NUKE_LAUNCH_SILO |
NUKE_LAUNCH_SUB |
PING_CARRIER |
PING_DETECTION |
PING_SUB |
SHARED_RADAR |
TEAM_RETRACTED_VOTE |
TEAM_VOTED |
UNCEASED_FIRE |
UNSHARED_RADAR |
VOTE_FINISHED_NO |
VOTE_FINISHED_YES |
Modifier and Type | Field and Description |
---|---|
int |
id
Holds integer (defcon) event type of this event..type.
|
Modifier and Type | Method and Description |
---|---|
static Event |
getEnum(int eventId)
Returns appropriate Event for given integer.
|
static DefConEvent |
getInstanceOfUnitTypeFromEventType(JBot.EventData data,
double time)
Factory styled method, which provides you with an appropriate instance of event
object based on the given EventData data.
|
static Event |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Event[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Event PING_SUB
public static final Event PING_CARRIER
public static final Event NUKE_LAUNCH_SILO
public static final Event NUKE_LAUNCH_SUB
public static final Event HIT
public static final Event DESTROYED
public static final Event PING_DETECTION
public static final Event CEASED_FIRE
public static final Event UNCEASED_FIRE
public static final Event SHARED_RADAR
public static final Event UNSHARED_RADAR
public static final Event NEW_VOTE
public static final Event TEAM_VOTED
public static final Event TEAM_RETRACTED_VOTE
public static final Event VOTE_FINISHED_YES
public static final Event VOTE_FINISHED_NO
public static Event[] values()
for (Event c : Event.values()) System.out.println(c);
public static Event valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant
with the specified nameNullPointerException
- if the argument is nullpublic static Event getEnum(int eventId)
eventId
- integer (defcon) event typepublic static DefConEvent getInstanceOfUnitTypeFromEventType(JBot.EventData data, double time)
data
- event datatime
- time of creationCopyright © 2012 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.