curl --request POST \
--url http://50.187.81.221:4000/api/v1/cubic/attack \
--header 'Content-Type: application/json' \
--data '
{
"gameID": "uniqueGame123",
"direction": "CURRENT",
"attackingShip": {
"teamName": "RedTeam",
"shipName": "RedDestroyer1"
},
"target": {
"teamName": "BlueTeam",
"shipName": "BlueScout1"
}
}
'Enables a ship to engage an enemy ship within its attack range, potentially dealing damage based on combat factors.
curl --request POST \
--url http://50.187.81.221:4000/api/v1/cubic/attack \
--header 'Content-Type: application/json' \
--data '
{
"gameID": "uniqueGame123",
"direction": "CURRENT",
"attackingShip": {
"teamName": "RedTeam",
"shipName": "RedDestroyer1"
},
"target": {
"teamName": "BlueTeam",
"shipName": "BlueScout1"
}
}
'Details for a ship to perform an attack, including the game ID, the direction of attack, the attacking ship, and the target ship.
Data transfer object for a ship to perform an attack action against another ship.
The unique identifier of the game.
The direction of the attack relative to the attacking ship. 'CURRENT' means attacking at the same vertex.
CURRENT, UP, DOWN, LEFT, RIGHT, FORWARD, BACK The ship initiating the attack.
Show child attributes
The ship being targeted by the attack.
Show child attributes
Attack successfully executed.