Hi,
Originally the normalRelativeAngle() method (and similar methods) was
available in the internal Robocode class robocode.util.Utils. The
robots were not supposed to use these internal methods. But since a
lot of old robots count of the Utils class, it has been preserved for
backwards compability with old robots.
So, the normalRelativeAngle() is not available on the Robot and
AdvancedRobot class etc. you have to 'import robocode.util.Utils', and
write Utils.normalRelativeAngle() in order to access it.
With Java 5 you can do this "smarter" by performing a static import
like 'import static robocode.util.Utils.*'. This way you can call
'normalRelativeAngle()' instead of writing 'Utils.' as "prefix".
Regards,
- Flemming
--- In
Robocode@..., "Edwin Pilobello" <e_pilobello@...>
wrote:
>
> One of my students downloaded robocode and compiled TrackFire. It
> seems normalRelativeAngle is now a separate util. Seems the utils were
> not included in the dow2bnload.
>