Package robocode
Class MessageEvent
- java.lang.Object
-
- robocode.Event
-
- robocode.MessageEvent
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<Event>
public final class MessageEvent extends Event
A MessageEvent is sent toonMessageReceived()
when a teammate sends a message to your robot. You can use the information contained in this event to determine what to do.- Author:
- Mathew A. Nelson (original)
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description MessageEvent(java.lang.String sender, java.io.Serializable message)
Called by the game to create a new MessageEvent.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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
-
-