|
|||||||||
| 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 | |
|---|---|
void |
cleanup()
Called by the system in order to clean up references to internal objects. |
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 AdvancedRobotpriority - the priority of this conditionCondition.setPriority(int)| Method Detail |
|---|
public boolean test()
test in class Conditiontrue if the robot has stopped turning; false
otherwisepublic void cleanup()
cleanup in class Condition
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||