Difference between revisions of "AdvancedRobot"
Jump to navigation
Jump to search
m (Fixed grammar and added syntax highlighting) |
|||
| Line 3: | Line 3: | ||
---- | ---- | ||
| − | + | 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 API]] | [[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.