|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectrobocode._Robot
public class _Robot
This class is used by the system, as well as being a placeholder for all deprecated (meaning, you should not use them) calls for Robot.
You should create a Robot
instead.
There is no guarantee that this class will exist in future versions of Robocode.
Robot
Constructor Summary | |
---|---|
protected |
_Robot()
|
Method Summary | |
---|---|
int |
getBattleNum()
Deprecated. Use getRoundNum instead. |
double |
getGunCharge()
Deprecated. Use getGunHeat instead. |
java.lang.String |
getGunImageName()
Deprecated. This call is not used. |
double |
getLife()
Deprecated. Use getEnergy instead. |
int |
getNumBattles()
Deprecated. Use getNumRounds instead. |
java.lang.String |
getRadarImageName()
Deprecated. This call is not used. |
java.lang.String |
getRobotImageName()
Deprecated. This call is not used. |
void |
setGunImageName(java.lang.String newGunImageName)
Deprecated. This call is not used. |
void |
setInterruptible(boolean interruptible)
Deprecated. This call has moved to AdvancedRobot ,
and will no longer function in the Robot class. |
void |
setPeer(robocode.peer.RobotPeer peer)
This method is called by the game. |
void |
setRadarImageName(java.lang.String newRadarImageName)
Deprecated. This call is not used. |
void |
setRobotImageName(java.lang.String newRobotImageName)
Deprecated. This call is not used. |
protected void |
uninitializedException(java.lang.String methodName)
Throws a RobotException. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected _Robot()
Method Detail |
---|
public final void setPeer(robocode.peer.RobotPeer peer)
protected void uninitializedException(java.lang.String methodName)
methodName
- the name of the method that failed@Deprecated public double getGunCharge()
getGunHeat
instead.
@Deprecated public double getLife()
getEnergy
instead.
@Deprecated public int getNumBattles()
getNumRounds
instead.
@Deprecated public int getBattleNum()
getRoundNum
instead.
@Deprecated public void setInterruptible(boolean interruptible)
AdvancedRobot
,
and will no longer function in the Robot class.
@Deprecated public java.lang.String getGunImageName()
@Deprecated public void setGunImageName(java.lang.String newGunImageName)
@Deprecated public void setRadarImageName(java.lang.String newRadarImageName)
@Deprecated public void setRobotImageName(java.lang.String newRobotImageName)
@Deprecated public java.lang.String getRadarImageName()
@Deprecated public java.lang.String getRobotImageName()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |