Package robocode
Class RadarTurnCompleteCondition
java.lang.Object
robocode.Condition
robocode.RadarTurnCompleteCondition
A prebuilt condition you can use that indicates your radar has finished
turning.
- Author:
- Mathew A. Nelson (original), Flemming N. Larsen (contributor), Nathaniel Troutman (contributor)
- See Also:
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a new RadarTurnCompleteCondition with default priority.RadarTurnCompleteCondition
(AdvancedRobot robot, int priority) Creates a new RadarTurnCompleteCondition with the specified priority. -
Method Summary
Methods inherited from class robocode.Condition
getName, getPriority, setName, setPriority
-
Constructor Details
-
RadarTurnCompleteCondition
Creates a new RadarTurnCompleteCondition with default priority. The default priority is 80.- Parameters:
robot
- your robot, which must be aAdvancedRobot
-
RadarTurnCompleteCondition
Creates a new RadarTurnCompleteCondition with the specified priority. A condition priority is a value from 0 - 99. The higher value, the higher priority. The default priority is 80.- Parameters:
robot
- your robot, which must be aAdvancedRobot
priority
- the priority of this condition- See Also:
-
-
Method Details
-
test
public boolean test()Tests if the radar has stopped turning. -
cleanup
public void cleanup()Called by the system in order to clean up references to internal objects.
-