- saveObject(Object) - Method in class com.socialquantum.battleship.gameapi.internal.serializationutils.SerializationDeserializationFactory
-
Сохранить данные объекта в строку.
- saveSnapshoot(GameId) - Method in class com.socialquantum.battleship.gameapi.internal.connector.GameConnectionVer1
-
- saveSnapshoot(GameId) - Method in interface com.socialquantum.battleship.gameapi.types.connector.GameConnector
-
Сохранить состояние игры.
- SaveSnapshot - Interface in com.socialquantum.battleship.gameapi.types.response
-
Результат выполнения команды сохранения состояния игры.
- SaveSnapshotRequestData - Class in com.socialquantum.battleship.gameapi.internal.dataobjects.savesnapshot
-
//{
// "command": "save_snapshot",
// "params": {
// "game_id": "3f888e99-5f6b-498d-80cb-dd45787421b1"
// }
//}
Везде где используется game_id (тип UUID использовать) спецтип и сериализовать в него.
- SaveSnapshotRequestData() - Constructor for class com.socialquantum.battleship.gameapi.internal.dataobjects.savesnapshot.SaveSnapshotRequestData
-
- SaveSnapshotResponseData - Class in com.socialquantum.battleship.gameapi.internal.dataobjects.savesnapshot
-
// {
// "status" : "OK",
// "data" : {
// "message" : "Snapshot ef99831b-dec5-4ed6-af4e-c81c9d3b0101 for game ef99831b-dec5-4ed6-af4e-c81c9d3b0102 saved",
// "snapshot_id" : "ef99831b-dec5-4ed6-af4e-c81c9d3b0101"
// }
// }
Created 06/07/17 15:00
- SaveSnapshotResponseData() - Constructor for class com.socialquantum.battleship.gameapi.internal.dataobjects.savesnapshot.SaveSnapshotResponseData
-
- SerializationDeserializationFactory - Class in com.socialquantum.battleship.gameapi.internal.serializationutils
-
Фабрика загрузки и сохранения объектов.
- SerializationDeserializationFactory() - Constructor for class com.socialquantum.battleship.gameapi.internal.serializationutils.SerializationDeserializationFactory
-
- SERVER_HOST - Static variable in class com.socialquantum.battleship.gameapi.example.ExampleSettings
-
- setCoords(int, int) - Method in class com.socialquantum.battleship.gameapi.internal.dataobjects.move.ShootRequestData
-
- setGameId(GameId) - Method in class com.socialquantum.battleship.gameapi.internal.dataobjects.deletegame.DeleteGameRequestData
-
- setGameId(GameId) - Method in class com.socialquantum.battleship.gameapi.internal.dataobjects.gamestatus.GameStatusRequestData
-
- setGameId(GameId) - Method in class com.socialquantum.battleship.gameapi.internal.dataobjects.move.ShootRequestData
-
- setGameId(GameId) - Method in class com.socialquantum.battleship.gameapi.internal.dataobjects.placeships.PlaceShipsRequestData
-
- setGameId(GameId) - Method in class com.socialquantum.battleship.gameapi.internal.dataobjects.savesnapshot.SaveSnapshotRequestData
-
- setGameId(GameId) - Method in class com.socialquantum.battleship.gameapi.internal.dataobjects.startgame.StartGameRequestData
-
- setGameId(GameId) - Method in interface com.socialquantum.battleship.gameapi.types.request.placeships.ShipsPlacementRequest
-
Установка идентификатора игры.
- setMessage(String) - Method in class com.socialquantum.battleship.gameapi.internal.dataobjects.placeships.PlaceShipsResponseData
-
- setMessage(String) - Method in class com.socialquantum.battleship.gameapi.internal.dataobjects.startgame.StartGameResponseData
-
- setSnapshotId(SnapshotId) - Method in class com.socialquantum.battleship.gameapi.internal.dataobjects.deletesnapshot.DeleteSnapshotRequestData
-
- setSnapshotId(SnapshotId) - Method in class com.socialquantum.battleship.gameapi.internal.dataobjects.restoresnapshot.RestoreSnapshotRequestData
-
- setStatus(ExecutionStatus) - Method in class com.socialquantum.battleship.gameapi.internal.dataobjects.gamelist.GameListResponseData
-
- setStatus(ExecutionStatus) - Method in class com.socialquantum.battleship.gameapi.internal.dataobjects.placeships.PlaceShipsResponseData
-
- setStatus(ExecutionStatus) - Method in class com.socialquantum.battleship.gameapi.internal.dataobjects.startgame.StartGameResponseData
-
- setType(ShipType) - Method in class com.socialquantum.battleship.gameapi.internal.dataobjects.placeships.Ship
-
- setUsers(UserToken, UserToken) - Method in class com.socialquantum.battleship.gameapi.internal.dataobjects.creategame.CreateGameRequestData
-
Назначить пользователей
- setX(int) - Method in class com.socialquantum.battleship.gameapi.internal.dataobjects.move.ShootRequestData
-
- setY(int) - Method in class com.socialquantum.battleship.gameapi.internal.dataobjects.move.ShootRequestData
-
- Ship - Class in com.socialquantum.battleship.gameapi.internal.dataobjects.placeships
-
Данные одного корабля
// {
// "type": "s2",
// "orientation": "h",
// "x": 1,
// "y": 4
// }
- Ship() - Constructor for class com.socialquantum.battleship.gameapi.internal.dataobjects.placeships.Ship
-
- ShipOrientation - Enum in com.socialquantum.battleship.gameapi.types.base
-
Расположение кораблей.
- ShipsPlacementRequest - Interface in com.socialquantum.battleship.gameapi.types.request.placeships
-
Вспомогательный объект расстановки кораблей.
- ShipType - Enum in com.socialquantum.battleship.gameapi.types.base
-
Тип корабля.
- shoot(GameId, int, int) - Method in class com.socialquantum.battleship.gameapi.internal.connector.GameConnectionVer1
-
- shoot(GameId, int, int) - Method in interface com.socialquantum.battleship.gameapi.types.connector.GameConnector
-
Выстрел.
- Shoot - Interface in com.socialquantum.battleship.gameapi.types.response
-
Результат выполнения команды хода (выстрела).
- SHOOT_SUBTYPE - Static variable in class com.socialquantum.battleship.gameapi.internal.dataobjects.move.ShootRequestData
-
- ShootRequestData - Class in com.socialquantum.battleship.gameapi.internal.dataobjects.move
-
https://paste.sqtools.ru/j/ygvx7
//{
// "command": "move",
// "params": {
// “game_id”: “37812032-d0fe-42bc-a264-fd271e629c3c”,
// “type”: “shoot”,
// "x": 1,
// "y": 2
// }
//}
Created 30/06/17 18:08
- ShootRequestData() - Constructor for class com.socialquantum.battleship.gameapi.internal.dataobjects.move.ShootRequestData
-
- ShootResponseData - Class in com.socialquantum.battleship.gameapi.internal.dataobjects.move
-
// * {
// * "status": "OK",
// * "data": {
// * "message": "Move successful"
// * }
// * }
Created 30/06/17 18:08
- ShootResponseData() - Constructor for class com.socialquantum.battleship.gameapi.internal.dataobjects.move.ShootResponseData
-
- shut() - Method in class com.socialquantum.battleship.gameapi.internal.connector.GameConnectionVer1
-
Закрытие коннектора, освобождение ресурсов.
- shut() - Method in interface com.socialquantum.battleship.gameapi.types.connector.GameConnector
-
Закрытие коннектора, освобождение ресурсов.
- snapshotId() - Method in class com.socialquantum.battleship.gameapi.internal.dataobjects.deletesnapshot.DeleteSnapshotRequestData
-
- snapshotId() - Method in class com.socialquantum.battleship.gameapi.internal.dataobjects.savesnapshot.SaveSnapshotResponseData
-
- SnapshotId - Interface in com.socialquantum.battleship.gameapi.types.base
-
Идентификатор игры.
- snapshotId() - Method in interface com.socialquantum.battleship.gameapi.types.response.SaveSnapshot
-
- snapshotId(String) - Static method in class com.socialquantum.battleship.gameapi.utils.TransformUtils
-
- snapshotList() - Method in class com.socialquantum.battleship.gameapi.internal.connector.GameConnectionVer1
-
- snapshotList() - Method in interface com.socialquantum.battleship.gameapi.types.connector.GameConnector
-
Получить список всех сохраненных состояний
Типы возвращаемые в случае успеха и не успеха операции соответственно:
SnapshotList OperationError
- SnapshotList - Interface in com.socialquantum.battleship.gameapi.types.response
-
Результат выполнения команды получения списка всех сохраненных состояний.
- SnapshotListRequestData - Class in com.socialquantum.battleship.gameapi.internal.dataobjects.snapshotlist
-
// {
// "command": "list_snapshots"
// }
Добавить javadocs и тесты
Created 06/07/17 15:22
- SnapshotListRequestData() - Constructor for class com.socialquantum.battleship.gameapi.internal.dataobjects.snapshotlist.SnapshotListRequestData
-
- SnapshotListResponseData - Class in com.socialquantum.battleship.gameapi.internal.dataobjects.snapshotlist
-
// {
// "status": "OK",
// "data": {
// "snapshot_ids": ["6890b2de-8ddc-49cb-8f79-db61f49dbddc", "c571d1f0-fc1c-4c33-bdf9-23ad6bdd652e",]
// }
// }
Created 06/07/17 15:22
- SnapshotListResponseData() - Constructor for class com.socialquantum.battleship.gameapi.internal.dataobjects.snapshotlist.SnapshotListResponseData
-
- snapshots() - Method in class com.socialquantum.battleship.gameapi.internal.dataobjects.snapshotlist.SnapshotListResponseData
-
- snapshots() - Method in interface com.socialquantum.battleship.gameapi.types.response.SnapshotList
-
- startGame(GameId) - Method in class com.socialquantum.battleship.gameapi.internal.connector.GameConnectionVer1
-
- startGame(GameId) - Method in interface com.socialquantum.battleship.gameapi.types.connector.GameConnector
-
Начать игру.
- StartGame - Interface in com.socialquantum.battleship.gameapi.types.response
-
Результат выполнения команды начала игры.
- StartGameRequestData - Class in com.socialquantum.battleship.gameapi.internal.dataobjects.startgame
-
// {
// "command": "start",
// "params": {
// "game_id": "37812032-d0fe-42bc-a264-fd271e629c3c"
// }
// }
Created 30/06/17 13:44
- StartGameRequestData() - Constructor for class com.socialquantum.battleship.gameapi.internal.dataobjects.startgame.StartGameRequestData
-
- StartGameResponseData - Class in com.socialquantum.battleship.gameapi.internal.dataobjects.startgame
-
// {
// "status": "OK",
// "data": {
// "message": "Game 37812032-d0fe-42bc-a264-fd271e629c3c started successfully"
// }
// }
Created 30/06/17 13:44
- StartGameResponseData() - Constructor for class com.socialquantum.battleship.gameapi.internal.dataobjects.startgame.StartGameResponseData
-
- status() - Method in class com.socialquantum.battleship.gameapi.internal.dataobjects.creategame.CreateGameResponseData
-
- status - Variable in class com.socialquantum.battleship.gameapi.internal.dataobjects.defaultresponse.DefaultResponse
-
- status() - Method in class com.socialquantum.battleship.gameapi.internal.dataobjects.defaultresponse.DefaultResponse
-
- status() - Method in class com.socialquantum.battleship.gameapi.internal.dataobjects.deletesnapshot.DeleteSnapshotResponseData
-
- status() - Method in class com.socialquantum.battleship.gameapi.internal.dataobjects.gamelist.GameListResponseData
-
- status() - Method in class com.socialquantum.battleship.gameapi.internal.dataobjects.gamestatus.DefaultCell.DefaultContent
-
- status() - Method in class com.socialquantum.battleship.gameapi.internal.dataobjects.gamestatus.GameStatusResponseData
-
- status() - Method in class com.socialquantum.battleship.gameapi.internal.dataobjects.move.ShootResponseData
-
- status() - Method in class com.socialquantum.battleship.gameapi.internal.dataobjects.restoresnapshot.RestoreSnapshotResponseData
-
- status() - Method in class com.socialquantum.battleship.gameapi.internal.dataobjects.savesnapshot.SaveSnapshotResponseData
-
- status() - Method in class com.socialquantum.battleship.gameapi.internal.dataobjects.snapshotlist.SnapshotListResponseData
-
- status() - Method in class com.socialquantum.battleship.gameapi.internal.dataobjects.startgame.StartGameResponseData
-
- status() - Method in interface com.socialquantum.battleship.gameapi.types.base.CellContent
-
- status() - Method in interface com.socialquantum.battleship.gameapi.types.response.OperationResponse
-
- successData() - Method in class com.socialquantum.battleship.gameapi.internal.types.DefaultOperationResult
-
- successData() - Method in interface com.socialquantum.battleship.gameapi.internal.types.OperationResult
-
- value - Variable in class com.socialquantum.battleship.gameapi.internal.dataobjects.gamestatus.DefaultCell.DefaultContent
-
- value() - Method in interface com.socialquantum.battleship.gameapi.types.base.GameId
-
- value() - Method in interface com.socialquantum.battleship.gameapi.types.base.SnapshotId
-
- value() - Method in interface com.socialquantum.battleship.gameapi.types.base.UserToken
-
- valueOf(String) - Static method in enum com.socialquantum.battleship.gameapi.internal.dataobjects.gamestatus.GameState
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum com.socialquantum.battleship.gameapi.internal.dataobjects.gamestatus.GameStateDataStatus
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum com.socialquantum.battleship.gameapi.internal.dataobjects.placeships.PlacementMethods
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum com.socialquantum.battleship.gameapi.internal.types.OperationResult.Result
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum com.socialquantum.battleship.gameapi.types.base.CellStatus
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum com.socialquantum.battleship.gameapi.types.base.ExecutionStatus
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum com.socialquantum.battleship.gameapi.types.base.ShipOrientation
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum com.socialquantum.battleship.gameapi.types.base.ShipType
-
Returns the enum constant of this type with the specified name.
- values() - Static method in enum com.socialquantum.battleship.gameapi.internal.dataobjects.gamestatus.GameState
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum com.socialquantum.battleship.gameapi.internal.dataobjects.gamestatus.GameStateDataStatus
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum com.socialquantum.battleship.gameapi.internal.dataobjects.placeships.PlacementMethods
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum com.socialquantum.battleship.gameapi.internal.types.OperationResult.Result
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum com.socialquantum.battleship.gameapi.types.base.CellStatus
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum com.socialquantum.battleship.gameapi.types.base.ExecutionStatus
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum com.socialquantum.battleship.gameapi.types.base.ShipOrientation
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum com.socialquantum.battleship.gameapi.types.base.ShipType
-
Returns an array containing the constants of this enum type, in
the order they are declared.