Job2dDriver
public abstract class AbstractDriver extends java.lang.Object implements Job2dDriver
Constructor | Description |
---|---|
AbstractDriver(int x,
int y) |
Creates instance of driver with marker of certain coordinates.
|
Modifier and Type | Method | Description |
---|---|---|
void |
setPosition(int x,
int y) |
Changes the head coordinates (in passive mode).
|
operateTo
public AbstractDriver(int x, int y)
x
- X axis coordinate.y
- Y axis coordinate.public final void setPosition(int x, int y)
Job2dDriver
setPosition
in interface Job2dDriver
x
- new position on the X axis.y
- new position on the Y axis.