JuniorRobot OnScannedRobot Method Robocode Robot API for .NET
This event method is called from the game when the radar detects another robot. When this event occurs the ScannedDistance, ScannedAngle, ScannedBearing, and ScannedEnergy field values are automatically updated.

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

public virtual void OnScannedRobot()
See Also