robocode
Class RadarTurnCompleteCondition

java.lang.Object
  |
  +--robocode.Condition
        |
        +--robocode.RadarTurnCompleteCondition

public class RadarTurnCompleteCondition
extends Condition

A prebuilt condition you can use that indicates your radar has finished rotating.

See Also:
Condition

Field Summary
 
Fields inherited from class robocode.Condition
name, priority
 
Constructor Summary
RadarTurnCompleteCondition(AdvancedRobot r)
          Creates a new RadarTurnCompleteCondition with default priority.
RadarTurnCompleteCondition(AdvancedRobot r, 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
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RadarTurnCompleteCondition

public RadarTurnCompleteCondition(AdvancedRobot r)
Creates a new RadarTurnCompleteCondition with default priority.


RadarTurnCompleteCondition

public RadarTurnCompleteCondition(AdvancedRobot r,
                                  int priority)
Creates a new RadarTurnCompleteCondition with the specified priority.

Method Detail

test

public boolean test()
Tests if the radar has stopped turning.

Specified by:
test in class Condition
Returns:
true if the condition has been met, false otherwise.