Package robocode
Class _Robot
- java.lang.Object
-
- robocode._RobotBase
-
- robocode._Robot
-
- All Implemented Interfaces:
java.lang.Runnable,IBasicRobot
- Direct Known Subclasses:
Robot
public abstract class _Robot extends _RobotBase
This class is used by the system, as well as being a placeholder for all deprecated (meaning, you should not use them) calls forRobot.You should create a
Robotinstead.- Author:
- Mathew A. Nelson (original), Flemming N. Larsen (contributor), Pavel Savara (contributor)
- See Also:
Robot,JuniorRobot,AdvancedRobot,TeamRobot,RateControlRobot
-
-
Field Summary
-
Fields inherited from class robocode._RobotBase
out
-
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description intgetBattleNum()Deprecated.UsegetRoundNum()instead.doublegetGunCharge()Deprecated.UsegetGunHeat()instead.java.lang.StringgetGunImageName()Deprecated.This call is not used.doublegetLife()Deprecated.UsegetEnergy()instead.intgetNumBattles()Deprecated.UsegetNumRounds()instead.java.lang.StringgetRadarImageName()Deprecated.This call is not used.java.lang.StringgetRobotImageName()Deprecated.This call is not used.voidsetGunImageName(java.lang.String newGunImageName)Deprecated.This call is not used.voidsetInterruptible(boolean interruptible)This call has moved toAdvancedRobot, and will no longer function in theRobotclass.voidsetRadarImageName(java.lang.String newRadarImageName)Deprecated.This call is not used.voidsetRobotImageName(java.lang.String newRobotImageName)Deprecated.This call is not used.-
Methods inherited from class robocode._RobotBase
finalize, setOut, setPeer
-
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface robocode.robotinterfaces.IBasicRobot
getBasicEventListener, getRobotRunnable
-
-
-
-
Method Detail
-
getGunCharge
@Deprecated public double getGunCharge()
Deprecated.UsegetGunHeat()instead.- Returns:
- 5 -
getGunHeat().
-
getLife
@Deprecated public double getLife()
Deprecated.UsegetEnergy()instead.- Returns:
- the robot's current life/energy.
-
getNumBattles
@Deprecated public int getNumBattles()
Deprecated.UsegetNumRounds()instead.- Returns:
- the number of rounds in the current battle
-
getBattleNum
@Deprecated public int getBattleNum()
Deprecated.UsegetRoundNum()instead.- Returns:
- the current round number of the battle (zero indexed).
-
setInterruptible
public void setInterruptible(boolean interruptible)
This call has moved toAdvancedRobot, and will no longer function in theRobotclass.- Parameters:
interruptible-trueif the event handler should be interrupted if new events of the same priority occurs;falseotherwise
-
getGunImageName
@Deprecated public java.lang.String getGunImageName()
Deprecated.This call is not used.- Returns:
- the name of the gun image
-
setGunImageName
@Deprecated public void setGunImageName(java.lang.String newGunImageName)
Deprecated.This call is not used.- Parameters:
newGunImageName- the name of the new gun image
-
setRadarImageName
@Deprecated public void setRadarImageName(java.lang.String newRadarImageName)
Deprecated.This call is not used.- Parameters:
newRadarImageName- the name of the new radar image
-
setRobotImageName
@Deprecated public void setRobotImageName(java.lang.String newRobotImageName)
Deprecated.This call is not used.- Parameters:
newRobotImageName- the name of the new robot body image
-
getRadarImageName
@Deprecated public java.lang.String getRadarImageName()
Deprecated.This call is not used.- Returns:
- the name of the radar image
-
getRobotImageName
@Deprecated public java.lang.String getRobotImageName()
Deprecated.This call is not used.- Returns:
- the name of the robot image
-
-