public static ActionSubmitResponse submitAction(
Client client,
String playerToken,
SubmitAction<?> request
) throws IOException
Submits a game action to specific targets (host, all, others, or specific players) with typed request data.
public static <T> ActionPollResponse<T> pollActions(
Client client,
String playerToken,
Class<T> dataType
) throws IOException
Polls for completed actions from other players with typed response data.
public static <T> ActionPendingResponse<T> getPendingActions(
Client client,
String playerToken,
Class<T> dataType
) throws IOException
Retrieves a list of pending actions that need to be processed with typed request data.
public static ActionCompleteResponse completeAction(
Client client,
String actionId,
String playerToken,
ActionComplete<?> request
) throws IOException
Marks an action as completed with response data using typed ActionComplete parameter.
Actions are the room's request/response primitive — trades, votes, dialogs, ability prompts. Send issues a typed action at a target set: everyone, the host, everyone-but-you, or an explicit list of player ids. Each action carries a request payload and waits for an answer rather than firing and forgetting.
Recipients poll for actions addressed to them and answer with complete — a status marking it accepted, declined or completed, plus an optional response payload. Pending lists the sender's own still-unanswered actions, so a reconnecting client can rebuild its outstanding-request view.