|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.swath.UserDefinedEvent
ExampleEvent1
This is my first SWATH event.
| Constructor Summary | |
ExampleEvent1()
|
|
ExampleEvent1(java.lang.String name,
int holds)
Constructs an ExampleEvent1 event. |
|
| Method Summary | |
int |
getHolds()
Gets the number of holds on the ship. |
java.lang.String |
getShipName()
Gets the name of the ship. |
boolean |
onText(java.lang.String buffer,
java.lang.String text)
This method is called when new text has arrived from the game server. |
| Methods inherited from class com.swath.UserDefinedEvent |
getClassName, isEventClass, isUserDefined, printTrace, printTrace, setBufferText, skipBufferText |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ExampleEvent1()
public ExampleEvent1(java.lang.String name,
int holds)
name - The ship name.holds - The number of holds.| Method Detail |
public java.lang.String getShipName()
public int getHolds()
public boolean onText(java.lang.String buffer,
java.lang.String text)
throws java.lang.Exception
UserDefinedEventskipBufferText and setBufferText methods.
onText in class UserDefinedEventbuffer - The current text buffer.text - The new incoming text.
true to post this event or false to wait.
java.lang.ExceptionUserDefinedEvent.skipBufferText(int),
UserDefinedEvent.setBufferText(java.lang.String),
UserDefinedEvent.printTrace(java.lang.String)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||