IBasicEvents OnHitByBullet Method Robocode Robot API for .NET
This method is called when your robot is hit by a bullet. You should override it in your robot if you want to be informed of this event.


void OnHitByBullet(HitByBulletEvent evnt)
    Out.WriteLine(event.RobotName + " hit me!");

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

void OnHitByBullet(
	HitByBulletEvent evnt
See Also