robocode
Class MoveCompleteCondition
public class MoveCompleteCondition
A prebuilt condition you can use that indicates your robot has finished
moving.
- Mathew A. Nelson (original)
- Flemming N. Larsen (contributor)
- Nathaniel Troutman (contributor)
@Override | boolean test() - Tests if the robot has stopped moving.
|
@Override | void cleanup() - Called by the system in order to clean up references to internal objects.
|
MoveCompleteCondition
public MoveCompleteCondition(AdvancedRobot r)
Creates a new MoveCompleteCondition with default priority.
The default priority is 80.
MoveCompleteCondition
public MoveCompleteCondition(AdvancedRobot robot,
int priority)
Creates a new MoveCompleteCondition with the specified 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 robot has stopped moving.
true
if the robot has stopped moving; false
otherwise
void cleanup
public @Override void cleanup()
Called by the system in order to clean up references to internal objects.