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:

public bool IsMyFault { get; }

Property Value

Type: OnlineBoolean
See Also