public interface ShipsPlacementRequest
| Modifier and Type | Method and Description |
|---|---|
ShipsPlacementRequest |
addShip(ShipType type,
ShipOrientation orientation,
int x,
int y)
Добавить информацию о расстановке кораблей.
|
static ShipsPlacementRequest |
createRequest()
Фабричный метод получения нового объекта.
|
ShipsPlacementRequest |
setGameId(GameId gameId)
Установка идентификатора игры.
|
ShipsPlacementRequest setGameId(GameId gameId)
gameId - идентификатора игры всегда не nullShipsPlacementRequest addShip(ShipType type, ShipOrientation orientation, int x, int y)
type - тип корабля.orientation - оприентацияx - координата xy - координата ystatic ShipsPlacementRequest createRequest()