public class PlaceShipsRequestData extends java.lang.Object implements ShipsPlacementRequest
| Constructor and Description |
|---|
PlaceShipsRequestData() |
| Modifier and Type | Method and Description |
|---|---|
PlaceShipsRequestData |
addShip(java.util.function.Consumer<Ship> shipConsumer) |
PlaceShipsRequestData |
addShip(ShipType type,
ShipOrientation orientation,
int x,
int y)
Добавить информацию о расстановке кораблей.
|
PlaceShipsRequestData |
nope() |
PlaceShipsRequestData |
setGameId(GameId gameId)
Установка идентификатора игры.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateRequestpublic PlaceShipsRequestData setGameId(GameId gameId)
ShipsPlacementRequestsetGameId in interface ShipsPlacementRequestgameId - идентификатора игры всегда не nullpublic PlaceShipsRequestData addShip(java.util.function.Consumer<Ship> shipConsumer)
public PlaceShipsRequestData addShip(ShipType type, ShipOrientation orientation, int x, int y)
ShipsPlacementRequestaddShip in interface ShipsPlacementRequesttype - тип корабля.orientation - оприентацияx - координата xy - координата ypublic PlaceShipsRequestData nope()