Controller
@ThreadSafe public abstract class JavaController extends Object implements Controller
Controller.playAction(Field, Team, Player)
method.Controller.Action
Modifier | Constructor | Description |
---|---|---|
protected |
JavaController() |
Constructs a JavaController object, setting its logger and clock.
|
Modifier and Type | Method | Description |
---|---|---|
Clock |
getClock() |
Gets the clock that this controller can use to determine how much time it
has left to make its moves.
|
Logger |
getLogger() |
Gets the logger that this controller can use to log messages.
|
static JavaController |
newInstance(Class<? extends JavaController> clazz,
Logger logger,
Clock clock) |
Deprecated.
|
playAction
protected JavaController()
public Logger getLogger()
System.out
for this purpose, as that
could interfere with communication with the game engine.public Clock getClock()
@Deprecated public static JavaController newInstance(Class<? extends JavaController> clazz, Logger logger, Clock clock) throws ControllerException
clazz
- the class of the new controllerlogger
- the logger that the new controller will useclock
- the clock that the new controller will useControllerException
- if there was a problem with the controller class