Robot OnBulletHit Method Robocode Robot API for .NET
This method is called when one of your bullets hits another robot. You should override it in your robot if you want to be informed of this event.

Examples

public void OnBulletHit(BulletHitEvent evnt)
{
    Out.WriteLine("I hit " + evnt.Name + "!");
}

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

public virtual void OnBulletHit(
	BulletHitEvent evnt
)

Implements

IBasicEvents OnBulletHit(BulletHitEvent)
See Also