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

Field Summary
 
Fields inherited from class robocode.Condition
name, priority
 
Constructor Summary
MoveCompleteCondition(AdvancedRobot r)
          Creates a new MoveCompleteCondition with default priority.
MoveCompleteCondition(AdvancedRobot r, int priority)
          Creates a new MoveCompleteCondition with the specified priority.
 
Method Summary
 boolean test()
          Tests if the robot has stopped moving.
 
Methods inherited from class robocode.Condition
getName, getPriority, setName, setPriority
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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.

Method Detail

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.