public class Ship
extends java.lang.Object
| Constructor and Description |
|---|
Ship() |
| Modifier and Type | Method and Description |
|---|---|
ShipOrientation |
orientation() |
Ship |
orientation(ShipOrientation orientation) |
void |
params(ShipType type,
ShipOrientation orientation,
int x,
int y) |
Ship |
setType(ShipType type) |
ShipType |
type() |
int |
x() |
Ship |
x(int x) |
int |
y() |
Ship |
y(int y) |
public void params(ShipType type, ShipOrientation orientation, int x, int y)
public ShipType type()
public ShipOrientation orientation()
public Ship orientation(ShipOrientation orientation)
public int x()
public Ship x(int x)
public int y()
public Ship y(int y)