robocode
Class GunTurnCompleteCondition
java.lang.Object
|
+--robocode.Condition
|
+--robocode.GunTurnCompleteCondition
- public class GunTurnCompleteCondition
- extends Condition
A prebuilt condition you can use that indicates your gun has finished rotating.
- See Also:
Condition
Method Summary |
boolean |
test()
Tests if the gun has stopped turning. |
GunTurnCompleteCondition
public GunTurnCompleteCondition(AdvancedRobot r)
- Creates a new GunTurnCompleteCondition with default priority.
GunTurnCompleteCondition
public GunTurnCompleteCondition(AdvancedRobot r,
int priority)
- Creates a new GunTurnCompleteCondition with the specified priority.
test
public boolean test()
- Tests if the gun has stopped turning.
- Specified by:
test
in class Condition
- Returns:
- true if the condition has been met, false otherwise.