- game_ids - Variable in class com.socialquantum.battleship.gameapi.internal.dataobjects.defaultresponse.DefaultResponseData
-
- GameConnectionVer1 - Class in com.socialquantum.battleship.gameapi.internal.connector
-
Created 28/06/17 14:01
- GameConnectionVer1(String, UserToken) - Constructor for class com.socialquantum.battleship.gameapi.internal.connector.GameConnectionVer1
-
- GameConnector - Interface in com.socialquantum.battleship.gameapi.types.connector
-
!NB! Возвращаемый тип каждого метода должен быть GeneralOperationResponse + описание того что может быть возвращено
Основоной интерфейс взаимодействия с игрой.
- gameId() - Method in class com.socialquantum.battleship.gameapi.internal.dataobjects.creategame.CreateGameResponseData
-
- GameId - Interface in com.socialquantum.battleship.gameapi.types.base
-
Объект идентификатора игры.
- gameId() - Method in interface com.socialquantum.battleship.gameapi.types.response.CreateGame
-
- gameId(String) - Static method in class com.socialquantum.battleship.gameapi.utils.TransformUtils
-
Преобразование строки в
GameId
- gameIds() - Method in class com.socialquantum.battleship.gameapi.internal.dataobjects.gamelist.GameListResponseData
-
- gameIds() - Method in interface com.socialquantum.battleship.gameapi.types.response.GameList
-
- gameList() - Method in class com.socialquantum.battleship.gameapi.internal.connector.GameConnectionVer1
-
- gameList() - Method in interface com.socialquantum.battleship.gameapi.types.connector.GameConnector
-
Получить список всех игр для игрока
- GameList - Interface in com.socialquantum.battleship.gameapi.types.response
-
Результат выполнения команды получения списка всех игр для игрока.
- GameListRequestData - Class in com.socialquantum.battleship.gameapi.internal.dataobjects.gamelist
-
Created 29/06/17 15:47
- GameListRequestData() - Constructor for class com.socialquantum.battleship.gameapi.internal.dataobjects.gamelist.GameListRequestData
-
- GameListResponseData - Class in com.socialquantum.battleship.gameapi.internal.dataobjects.gamelist
-
//{
// "status" : "OK",
// "data" : {
// "game_ids" : ["7234cf67-8b42-4580-902c-f83ddcaed309", "f8ba64b9-c233-4f7f-8550-ca3c2a9193b3" ]
// }
//}
Created 29/06/17 15:47
- GameListResponseData() - Constructor for class com.socialquantum.battleship.gameapi.internal.dataobjects.gamelist.GameListResponseData
-
- GameState - Enum in com.socialquantum.battleship.gameapi.internal.dataobjects.gamestatus
-
текущий статус игры, который может быть:
`created` -- игра создана, но не начата.
- GameStateDataStatus - Enum in com.socialquantum.battleship.gameapi.internal.dataobjects.gamestatus
-
Текущий статус игры
Created 30/06/17 09:32
- gameStatus(GameId) - Method in class com.socialquantum.battleship.gameapi.internal.connector.GameConnectionVer1
-
- gameStatus(GameId) - Method in interface com.socialquantum.battleship.gameapi.types.connector.GameConnector
-
Получить текущий статус игры.
- GameStatus - Interface in com.socialquantum.battleship.gameapi.types.response
-
Результат выполнения команды получения текущего статуса игры.
- GameStatusRequestData - Class in com.socialquantum.battleship.gameapi.internal.dataobjects.gamestatus
-
// {
// "command": "status",
// "params": {
// "game_id": ""3f888e99-5f6b-498d-80cb-dd45787421b1""
// }
// }
Created 30/06/17 09:02
- GameStatusRequestData() - Constructor for class com.socialquantum.battleship.gameapi.internal.dataobjects.gamestatus.GameStatusRequestData
-
- GameStatusResponseData - Class in com.socialquantum.battleship.gameapi.internal.dataobjects.gamestatus
-
Created 30/06/17 09:02
- GameStatusResponseData() - Constructor for class com.socialquantum.battleship.gameapi.internal.dataobjects.gamestatus.GameStatusResponseData
-
- GameUtils - Class in com.socialquantum.battleship.gameapi.internal.utils
-
Created 29/06/17 08:38
- GameUtils() - Constructor for class com.socialquantum.battleship.gameapi.internal.utils.GameUtils
-
- GameUtils.FunctionThatThrows<T> - Interface in com.socialquantum.battleship.gameapi.internal.utils
-
Вспомогательный интерфейс получения данных.
- GameUtils.FunctionThatThrowsWoResult<T> - Interface in com.socialquantum.battleship.gameapi.internal.utils
-
Вспомогательный интерфейс получения данных.
- GenericOperationResponse - Interface in com.socialquantum.battleship.gameapi.types.response
-
Обобщенный интерфейс всех ответов на команды взаимодействия с игрой.
- 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
-
- 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
-
- 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 - 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.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.response.GenericOperationResponse
-
- 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.Cell.Content
-
- 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.