|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectrobocode.Condition
robocode.RadarTurnCompleteCondition
public class RadarTurnCompleteCondition
A prebuilt condition you can use that indicates your radar has finished turning.
Condition
Field Summary |
---|
Fields inherited from class robocode.Condition |
---|
name, priority |
Constructor Summary | |
---|---|
RadarTurnCompleteCondition(AdvancedRobot robot)
Creates a new RadarTurnCompleteCondition with default priority. |
|
RadarTurnCompleteCondition(AdvancedRobot robot,
int priority)
Creates a new RadarTurnCompleteCondition with the specified priority. |
Method Summary | |
---|---|
boolean |
test()
Tests if the radar has stopped turning. |
Methods inherited from class robocode.Condition |
---|
getName, getPriority, setName, setPriority |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RadarTurnCompleteCondition(AdvancedRobot robot)
robot
- your robot, which must be a AdvancedRobot
public RadarTurnCompleteCondition(AdvancedRobot robot, int priority)
robot
- your robot, which must be a AdvancedRobot
priority
- the priority of this conditionCondition.setPriority(int)
Method Detail |
---|
public boolean test()
test
in class Condition
true
if the radar has stopped turning; false
otherwise
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |