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

Examples

foreach (Event evnt in GetAllEvents())
{
    if (event is HitRobotEvent)
    {
        // do something with the event
    }
    else if (event is HitByBulletEvent)
    {
        // do something with the event
    }
}

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

IList<Event> GetAllEvents()

Return Value

Type: OnlineIList Event 
See Also