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

Examples

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

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

public virtual void OnHitByBullet(
	HitByBulletEvent evnt
)

Implements

IBasicEvents OnHitByBullet(HitByBulletEvent)
See Also