robocode
Class NavalTurnCompleteCondition
java.lang.Object
robocode.Condition
robocode.NavalTurnCompleteCondition
public class NavalTurnCompleteCondition
- extends Condition
A prebuilt condition you can use that indicates your ship has finished
turning.
- Author:
- Thales B.V. / Thomas Hakkers
- See Also:
Condition
Method Summary |
void |
cleanup()
Called by the system in order to clean up references to internal objects. |
boolean |
test()
Tests if the ship has finished turning. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NavalTurnCompleteCondition
public NavalTurnCompleteCondition(Ship ship)
- Creates a new TurnCompleteCondition with default priority.
The default priority is 80.
- Parameters:
ship
- your ship, which must be a Ship
NavalTurnCompleteCondition
public NavalTurnCompleteCondition(Ship ship,
int priority)
- Creates a new NavalTurnCompleteCondition with the specified priority.
A condition priority is a value from 0 - 99. The higher value, the
higher priority. The default priority is 80.
- Parameters:
ship
- your ship, which must be a Ship
priority
- the priority of this condition- See Also:
Condition.setPriority(int)
test
public boolean test()
- Tests if the ship has finished turning.
- Specified by:
test
in class Condition
- Returns:
true
if the ship has stopped turning; false
otherwise
cleanup
public void cleanup()
- Called by the system in order to clean up references to internal objects.
- Overrides:
cleanup
in class Condition
- Since:
- 1.4.3
Copyright © 2015 Robocode. All Rights Reserved.