TurnCompleteCondition (Robocode 1.2.4-Beta API)

Overview | Package | Class | Tree | Deprecated | Index | Help

PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## robocode
Class TurnCompleteCondition

    java.lang.Object
      robocode.Condition
          robocode.TurnCompleteCondition

    public class TurnCompleteCondition

extends Condition

A prebuilt condition you can use that indicates your robot has finished rotating.

Author:
  Mathew A. Nelson (original)
See Also:
  `Condition`

Field Summary

Fields inherited from class robocode.Condition
`name, priority`

Constructor Summary
`TurnCompleteCondition(AdvancedRobot r)` Creates a new TurnCompleteCondition with default priority.
`TurnCompleteCondition(AdvancedRobot r, int priority)` Creates a new TurnCompleteCondition with the specified priority.

Method Summary
`boolean` | `test()` Tests if the robot has finished turning.

Methods inherited from class robocode.Condition
`getName, getPriority, setName, setPriority`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### TurnCompleteCondition

    public TurnCompleteCondition(AdvancedRobot r)

  Creates a new TurnCompleteCondition with default priority.

### TurnCompleteCondition

    public TurnCompleteCondition(AdvancedRobot r,
                                 int priority)

  Creates a new TurnCompleteCondition with the specified priority.

Method Detail

### test

    public boolean test()

  Tests if the robot has finished turning.

  Specified by:
    `test` in class `Condition`
  Returns:
    true if the condition has been met, false otherwise.

Overview | Package | Class | Tree | Deprecated | Index | Help

PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD