Called by the game to create a new HitRobotEvent.
Compares this event to another event regarding precedence.(Overrides Event CompareTo(Event).)
The event precedence is first and foremost determined by the event time, secondly the event priority, and lastly specific event information.
This method will first compare the time of each event. If the event time is the same for both events, then this method compared the priority of each event. If the event priorities are equals, then this method will compare the two events based on specific event information.
This method is called by the game in order to sort the event queue of a robot to make sure the events are listed in chronological order.
Returns the bearing to the robot you hit, relative to your robot's heading, in degrees (-180 <= getBearing() < 180)
Returns the bearing to the robot you hit, relative to your robot's heading, in radians (-PI <= getBearingRadians() < PI)
Returns the amount of energy of the robot you hit.
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.
Returns the name of the robot you hit.
The priority of this event.(Inherited from Event.)
An event priority is a value from 0 - 99. The higher value, the higher priority.
The default priority is 80, but varies depending on the type of event.
The time when this event occurred.(Inherited from Event.)