Will onRobotDeath event miss due to skipped turns?
From Talk:Robocode
Jump to navigation
Jump to search
Revision as of 29 December 2017 at 17:17.
The highlighted comment was created in this revision.
The highlighted comment was created in this revision.
onRobotDeath is crucial when dealing with multiple enemies. If this event were able to lost, it will be hard to guess that information back.
- If I understood correctly skipped turns happen when the bots passes the time limit. I think, after this event no actions are made(setAhead( ), setFire( etc.) and no events are called after it. I am 99 percent sure that if you call onRobotDeath first no skipped turns will harm it.
- Even if it stopped everything you did by not updating the robot, static variables wouldn't change.
Dsekercioglu (talk)