ITeamRobotPeer GetMessageEvents Method Robocode Robot API for .NET
Returns a list containing all MessageEvents currently in the robot's queue. You might, for example, call this while processing another event.

Examples

foreach (MessageEvent e in GetMessageEvents())
{
   // do something with e
}

Namespace: Robocode.RobotInterfaces.Peer
Assembly: robocode (in robocode.dll) Version: 1.9.2.0
Syntax

IList<MessageEvent> GetMessageEvents()

Return Value

Type: OnlineIList MessageEvent 
See Also