Keeping AdvancedRobot instance in static field

Jump to navigation Jump to search
Revision as of 19 August 2018 at 09:45.
This is the thread's initial revision.

Keeping AdvancedRobot instance in static field

When keeping AdvancedRobot instance in static field, robot will show warning:

Static references to robots can cause unwanted behaviour with the robot using these.

However I've been using this pattern (the way robocode can't detect, and I cannot avoid as well) since the first day I write robocode. However, robocode did not mention what's wrong with this pattern. Do anyone know what's the exact meaning of this warning?

    Xor (talk)10:45, 19 August 2018