AdvancedRobot 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.


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

Namespace: Robocode
Assembly: robocode (in robocode.dll) Version:

public IList<Event> GetAllEvents()

Return Value

Type: OnlineIList Event 
See Also