In robocode, create MethodBot1. MethodBot1 should have the following void methods defined from previous robots:
You should be able to call any of these methods from the robot main loop.
See robot source code.