|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<OpenTTDEventType>
com.camelspotting.jotl.event.OpenTTDEventType
public enum OpenTTDEventType
This enum represents the type of OpenTTD events.
Enum Constant Summary | |
---|---|
COMPANY_NEW
A new company has been created |
|
COMPANY_REMOVED
A company has been removed |
|
ELECTRIC_AVAILABLE
Electric rail has now become available |
|
GAME_END
A game has ended |
|
GAME_IN_PROGRESS
A game is in progress |
|
GAME_START
A game has started |
|
LOST_CONNECTION
Software has lost connection to server |
|
MAGLEV_AVAILABLE
Maglev has now become available |
|
MONORAIL_AVAILABLE
Monorail has now become available |
|
NEW_LEADER
A new company now has the best rating |
|
PAUSED
The game has been paused |
|
UNPAUSED
The game has been unpaused |
Method Summary | |
---|---|
String |
getDescription()
|
String |
toString()
Returns a textual description of the enum. |
static OpenTTDEventType |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static OpenTTDEventType[] |
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, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final OpenTTDEventType GAME_END
public static final OpenTTDEventType GAME_START
public static final OpenTTDEventType GAME_IN_PROGRESS
public static final OpenTTDEventType NEW_LEADER
public static final OpenTTDEventType ELECTRIC_AVAILABLE
public static final OpenTTDEventType MONORAIL_AVAILABLE
public static final OpenTTDEventType MAGLEV_AVAILABLE
public static final OpenTTDEventType COMPANY_NEW
public static final OpenTTDEventType COMPANY_REMOVED
public static final OpenTTDEventType PAUSED
public static final OpenTTDEventType UNPAUSED
public static final OpenTTDEventType LOST_CONNECTION
Method Detail |
---|
public static OpenTTDEventType[] values()
for (OpenTTDEventType c : OpenTTDEventType.values()) System.out.println(c);
public static OpenTTDEventType 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 String toString()
toString
in class Enum<OpenTTDEventType>
public String getDescription()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |