Difference between revisions of "AdvancedRobot"

From Robowiki
Jump to navigation Jump to search
(Added migration note)
m (Fixed grammar and added syntax highlighting)
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{migrating|user=FlemmingLarsen}}
+
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.
  
This page is dedicated for describing the <code>robocode.AdvancedRobot</code>
+
Learn more at the [http://robocode.sourceforge.net/docs/robocode/robocode/AdvancedRobot.html AdvancedRobot documentation].
  
[[Category:Robocode 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.