curl --request POST \
--url http://50.187.81.221:4000/api/v1/cubic/capture \
--header 'Content-Type: application/json' \
--data '
{
"gameID": "uniqueGame123",
"direction": "CURRENT",
"capturingShip": {
"teamName": "RedTeam",
"shipName": "RedCruiser1"
}
}
'Allows a ship to attempt to capture an objective or another game element at its current location or in an adjacent direction.
curl --request POST \
--url http://50.187.81.221:4000/api/v1/cubic/capture \
--header 'Content-Type: application/json' \
--data '
{
"gameID": "uniqueGame123",
"direction": "CURRENT",
"capturingShip": {
"teamName": "RedTeam",
"shipName": "RedCruiser1"
}
}
'Details for a ship to attempt a capture action, including the game ID, the direction, and the capturing ship.
Data transfer object for a ship to attempt a capture action.
The unique identifier of the game.
The direction of the capture attempt relative to the capturing ship. 'CURRENT' means attempting capture at the same vertex.
CURRENT, UP, DOWN, LEFT, RIGHT, FORWARD, BACK The ship attempting to capture an objective.
Show child attributes
Capture attempt successfully executed.