|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectrobocode.Event
robocode.MessageEvent
public final class MessageEvent
A MessageEvent is sent to onMessageReceived() when a teammate sends a message to your robot.
You can use the information contained in this event to determine what to do.
| Constructor Summary | |
|---|---|
MessageEvent(java.lang.String sender,
java.io.Serializable message)
Called by the game to create a new MessageEvent. |
|
| Method Summary | |
|---|---|
java.io.Serializable |
getMessage()
Returns the message itself. |
java.lang.String |
getSender()
Returns the name of the sending robot. |
| Methods inherited from class robocode.Event |
|---|
compareTo, getPriority, getTime, setPriority, setTime |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MessageEvent(java.lang.String sender,
java.io.Serializable message)
sender - the name of the sending robotmessage - the message for your robot| Method Detail |
|---|
public java.lang.String getSender()
public java.io.Serializable getMessage()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||