|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<Event> cz.cuni.amis.pogamut.defcon.consts.Event
public enum Event
Contains all types of defcon events and supplies user with a factory method for each of them. GENERATED by EventFactoryGenerator.xslt so any modifications should go there!!!
Field Summary | |
---|---|
int |
id
Holds integer (defcon) event type of this event..type. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
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
Field Detail |
---|
public final int id
Method Detail |
---|
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 name
NullPointerException
- if the argument is nullpublic static Event getEnum(int eventId)
eventId
- integer (defcon) event type
public static DefConEvent getInstanceOfUnitTypeFromEventType(JBot.EventData data, double time)
data
- event datatime
- time of creation
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |