robocode
Class GunTurnCompleteCondition
public class GunTurnCompleteCondition
A prebuilt condition you can use that indicates your gun has finished
turning.
- Mathew A. Nelson (original)
- Flemming N. Larsen (contributor)
- Nathaniel Troutman (contributor)
@Override | boolean test() - Tests if the gun has stopped turning.
|
@Override | void cleanup() - Called by the system in order to clean up references to internal objects.
|
GunTurnCompleteCondition
public GunTurnCompleteCondition(AdvancedRobot robot)
Creates a new GunTurnCompleteCondition with default priority.
The default priority is 80.
GunTurnCompleteCondition
public GunTurnCompleteCondition(AdvancedRobot robot,
int priority)
Creates a new GunTurnCompleteCondition with a specific priority.
A condition priority is a value from 0 - 99. The higher value, the
higher priority. The default priority is 80.
robot
- your robot, which must be a AdvancedRobot
priority
- the priority of this condition
boolean test
public @Override boolean test()
Tests if the gun has stopped turning.
true
if the gun has stopped turning; false
otherwise
void cleanup
public final @Override void cleanup()
Called by the system in order to clean up references to internal objects.