Difference between revisions of "Robocode/Robot Anatomy"
< Robocode
Jump to navigation
Jump to search
(Minor changes) |
|||
Line 8: | Line 8: | ||
* '''Body''' - Carries the gun with the radar on top. The body is used for moving the robot ahead and back, as well as turning left or right. | * '''Body''' - Carries the gun with the radar on top. The body is used for moving the robot ahead and back, as well as turning left or right. | ||
* '''Gun''' - Mounted on the body and is used for firing energy bullets. The gun can turn left or right. | * '''Gun''' - Mounted on the body and is used for firing energy bullets. The gun can turn left or right. | ||
− | * '''Radar''' - Mounted on the gun and is used for | + | * '''Radar''' - Mounted on the gun and is used to scan for other robots when moved. The radar can turn left or right. The radar generates onScannedRobot events when robots are detected. |
== See Also == | == See Also == |
Revision as of 14:56, 2 April 2008
Robot Anatomy
A robot consists of three individual parts:
- Body - Carries the gun with the radar on top. The body is used for moving the robot ahead and back, as well as turning left or right.
- Gun - Mounted on the body and is used for firing energy bullets. The gun can turn left or right.
- Radar - Mounted on the gun and is used to scan for other robots when moved. The radar can turn left or right. The radar generates onScannedRobot events when robots are detected.