Acme-RTB
view release on metacpan or search on metacpan
=head3 YourName [name (string)]
Current name of the robot, don't change it if you don't have very good reasons.
=head3 YourColour [colour (hex)]
Current colour of the robot, change it if you find it ugly.
=head3 GameOption [optionnr (int)] [value (double)]
At the beginning of each game the robots will be sent a number of settings, which can be useful for the robot. For a complete list of these, look in the file Messagetypes.h for the game_option_type enum. In the options chapter you can get more detail...
=head3 GameStarts
This message is sent when the game starts (surprise!)
=head3 Radar [distance (double)] [observed object type (int)] [radar angle (double)]
This message gives information from the radar each turn. Remember that the radar-angle is relative to the robot front; it is given in radians.
=head3 Info [time (double)] [speed (double)] [cannon angle (double)]
Print message on the message window.
=over 4
=head2 Debug [message (string)]
=back
Print message on the message window if in debug-mode.
=over 4
=head2 DebugLine [angle1 (double)] [radius1 (double)] [angle2 (double)] [radius2 (double)]
=back
Draw a line direct to the arena. This is only allowed in the highest debug level(5), otherwise a warning message is sent. The arguments are the start and end point of the line given in polar coordinates relative to the robot.
=over 4
=head2 DebugCircle [center angle (double)] [center radius (double)] [circle radius (double)]
=back
Similar to DebugLine above, but draws a circle. The first two arguments are the angle and radius of the central point of the circle relative to the robot. The third argument gives the radius of the circle.
( run in 0.458 second using v1.01-cache-2.11-cpan-3cd7ad12f66 )