Class _Robot
java.lang.Object
robocode._RobotBase
robocode._Robot
- All Implemented Interfaces:
Runnable, IBasicRobot
- Direct Known Subclasses:
Robot
-
Field Summary
Fields inherited from class _RobotBase
out -
Method Summary
Modifier and TypeMethodDescriptionintDeprecated.doubleDeprecated.UsegetGunHeat()instead.Deprecated.This call is not used.doublegetLife()Deprecated.UsegetEnergy()instead.intDeprecated.UsegetNumRounds()instead.Deprecated.This call is not used.Deprecated.This call is not used.voidsetGunImageName(String newGunImageName) Deprecated.This call is not used.voidsetInterruptible(boolean interruptible) This call has moved toAdvancedRobot, and will no longer function in theRobotclass.voidsetRadarImageName(String newRadarImageName) Deprecated.This call is not used.voidsetRobotImageName(String newRobotImageName) Deprecated.This call is not used.Methods inherited from class _RobotBase
finalize, setOut, setPeerMethods inherited from class Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface IBasicRobot
getBasicEventListener, getRobotRunnable
-
Method Details
-
getGunCharge
Deprecated.UsegetGunHeat()instead.- Returns:
- 5 -
getGunHeat().
-
getLife
Deprecated.UsegetEnergy()instead.- Returns:
- the robot's current life/energy.
-
getNumBattles
Deprecated.UsegetNumRounds()instead.- Returns:
- the number of rounds in the current battle
-
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.This call is not used.- Returns:
- the name of the gun image
-
setGunImageName
Deprecated.This call is not used.- Parameters:
newGunImageName- the name of the new gun image
-
setRadarImageName
Deprecated.This call is not used.- Parameters:
newRadarImageName- the name of the new radar image
-
setRobotImageName
Deprecated.This call is not used.- Parameters:
newRobotImageName- the name of the new robot body image
-
getRadarImageName
Deprecated.This call is not used.- Returns:
- the name of the radar image
-
getRobotImageName
Deprecated.This call is not used.- Returns:
- the name of the robot image
-
getRoundNum()instead.