|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.camelspotting.jotl.event.OpenTTDEvent
public class OpenTTDEvent
This class represents the events that may occur during an OpenTTD-game. NOTE: The electric rail availability may be falsely reported since it can be deactivated with a patch and such a deactivation is undetectable through communication with the server.
Constructor Summary | |
---|---|
OpenTTDEvent(OpenTTDEventType t,
Object... objects)
Constructor for making events. |
Method Summary | |
---|---|
Object[] |
getObjects()
Depending on what type of event this is this array contains different objects. |
OpenTTDEventType |
getType()
This method returns the type of event. |
String |
toString()
This gives a description of this event. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public OpenTTDEvent(OpenTTDEventType t, Object... objects)
t
- the type of eventMethod Detail |
---|
public Object[] getObjects()
Integer
containing the year of
this event GAME_START -> [0] is an Integer
containing the year of
this event GAME_IN_PROGRESS -> [0] is an Integer
containing the
year of this event NEW_LEADER -> [0] is the Company
now in the
lead ELECTRIC_AVAILABLE -> nothing MONORAIL_AVAILABLE -> nothing
MAGLEV_AVAILABLE -> nothing COMPANY_NEW -> [0] is the Company
COMPANY_REMOVED -> [0] is the removed Company
PAUSED -> [0] is an
Integer
containing the year of this event UNPAUSED -> [0] is an
Integer
containing the year of this event CLIENT_JOIN -> [0] is
the Client
that just joined CLIENT_LEFT -> [0] is the
Client
that just left LOST_CONNECTION -> nothing COMPANY_REMOVED
-> [0] is the Company
public OpenTTDEventType getType()
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |