|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectrobocode.Condition
robocode.TurnCompleteCondition
public class TurnCompleteCondition
A prebuilt condition you can use that indicates your robot has finished turning.
Condition
Field Summary |
---|
Fields inherited from class robocode.Condition |
---|
name, priority |
Constructor Summary | |
---|---|
TurnCompleteCondition(AdvancedRobot robot)
Creates a new TurnCompleteCondition with default priority. |
|
TurnCompleteCondition(AdvancedRobot robot,
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 |
---|
public TurnCompleteCondition(AdvancedRobot robot)
robot
- your robot, which must be a AdvancedRobot
public TurnCompleteCondition(AdvancedRobot robot, int priority)
robot
- your robot, which must be a AdvancedRobot
priority
- the priority of this conditionCondition.setPriority(int)
Method Detail |
---|
public boolean test()
test
in class Condition
true
if the robot has stopped turning; false
otherwise
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |