HitRobotEvent IsMyFault Property Robocode Robot API for .NET
Checks if your robot was moving towards the robot that was hit.

If IsMyFault returns true then your robot's movement (including turning) will have stopped and been marked complete.

Note: If two robots are moving toward each other and collide, they will each receive two HitRobotEvents. The first will be the one if isMyFault() returns true.

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

public bool IsMyFault { get; }

Property Value

Type: OnlineBoolean
See Also