Difference between revisions of "AdvancedRobot"
Jump to navigation
Jump to search
(Preparing) |
m (Fixed grammar and added syntax highlighting) |
||
| (3 intermediate revisions by 3 users not shown) | |||
| Line 1: | Line 1: | ||
| − | + | This page is dedicated for describing the <code>robocode.AdvancedRobot</code> | |
| + | |||
| + | ---- | ||
| + | |||
| + | In order to convert a Robot into an AdvancedRobot, replace: | ||
| − | + | <syntaxhighlight lang="java"> | |
| + | public class NameOfRobot extends Robot { //... | ||
| + | </syntaxhighlight> | ||
| + | |||
| + | with: | ||
| + | |||
| + | <syntaxhighlight lang="java"> | ||
| + | public class NameOfRobot extends AdvancedRobot { //... | ||
| + | </syntaxhighlight> | ||
| + | |||
| + | This will allow you to access setXXX() methods, as well as other parts of Robocode. | ||
| − | + | Learn more at the [http://robocode.sourceforge.net/docs/robocode/robocode/AdvancedRobot.html AdvancedRobot documentation]. | |
| − | [[Category:Robocode | + | [[Category:Robocode API]] |
Latest revision as of 02:27, 26 March 2016
This page is dedicated for describing the robocode.AdvancedRobot
In order to convert a Robot into an AdvancedRobot, replace:
public class NameOfRobot extends Robot { //...
with:
public class NameOfRobot extends AdvancedRobot { //...
This will allow you to access setXXX() methods, as well as other parts of Robocode.
Learn more at the AdvancedRobot documentation.