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