games
v1
|
#include <turn_based_match_turn.h>
Public Member Functions | |
TurnBasedMatchTurn (const Json::Value &storage) | |
TurnBasedMatchTurn (Json::Value *storage) | |
virtual | ~TurnBasedMatchTurn () |
const StringPiece | GetTypeName () const |
bool | has_data () const |
void | clear_data () |
const TurnBasedMatchDataRequest | get_data () const |
TurnBasedMatchDataRequest | mutable_data () |
bool | has_kind () const |
void | clear_kind () |
const StringPiece | get_kind () const |
void | set_kind (const StringPiece &value) |
bool | has_match_version () const |
void | clear_match_version () |
int32 | get_match_version () const |
void | set_match_version (int32 value) |
bool | has_pending_participant_id () const |
void | clear_pending_participant_id () |
const StringPiece | get_pending_participant_id () const |
void | set_pending_participant_id (const StringPiece &value) |
bool | has_results () const |
void | clear_results () |
const client::JsonCppArray< ParticipantResult > | get_results () const |
client::JsonCppArray< ParticipantResult > | mutable_results () |
Static Public Member Functions | |
static TurnBasedMatchTurn * | New () |
This is a JSON template for the object representing a turn.
|
explicit |
Standard constructor for an immutable data object instance.
[in] | storage | The underlying data storage for this instance. |
|
explicit |
Standard constructor for a mutable data object instance.
[in] | storage | The underlying data storage for this instance. |
|
virtual |
Standard destructor.
|
inline |
Clears the 'data
' attribute.
|
inline |
Clears the 'kind
' attribute.
|
inline |
Clears the 'matchVersion
' attribute.
|
inline |
Clears the 'pendingParticipantId
' attribute.
|
inline |
Clears the 'results
' attribute.
const TurnBasedMatchDataRequest google_games_api::TurnBasedMatchTurn::get_data | ( | ) | const |
Get a reference to the value of the 'data
' attribute.
|
inline |
Get the value of the 'kind
' attribute.
|
inline |
Get the value of the 'matchVersion
' attribute.
|
inline |
Get the value of the 'pendingParticipantId
' attribute.
const client::JsonCppArray<ParticipantResult > google_games_api::TurnBasedMatchTurn::get_results | ( | ) | const |
Get a reference to the value of the 'results
' attribute.
|
inline |
Returns a string denoting the type of this data object.
|
inline |
Determine if the 'data
' attribute was set.
data
' attribute was set.
|
inline |
Determine if the 'kind
' attribute was set.
kind
' attribute was set.
|
inline |
Determine if the 'matchVersion
' attribute was set.
matchVersion
' attribute was set.
|
inline |
Determine if the 'pendingParticipantId
' attribute was set.
pendingParticipantId
' attribute was set.
|
inline |
Determine if the 'results
' attribute was set.
results
' attribute was set. TurnBasedMatchDataRequest google_games_api::TurnBasedMatchTurn::mutable_data | ( | ) |
Gets a reference to a mutable value of the 'data
' property.
The shared game state data after the turn is over.
client::JsonCppArray<ParticipantResult > google_games_api::TurnBasedMatchTurn::mutable_results | ( | ) |
Gets a reference to a mutable value of the 'results
' property.
The match results for the participants in the match.
|
static |
Creates a new default instance.
|
inline |
Change the 'kind
' attribute.
Uniquely identifies the type of this resource. Value is always the fixed string games::turnBasedMatchTurn.
[in] | value | The new value. |
|
inline |
Change the 'matchVersion
' attribute.
The version of this match: an increasing counter, used to avoid out-of-date updates to the match.
[in] | value | The new value. |
|
inline |
Change the 'pendingParticipantId
' attribute.
The ID of the participant who should take their turn next. May be set to the current player's participant ID to update match state without changing the turn. If not set, the match will wait for other player(s) to join via automatching; this is only valid if automatch criteria is set on the match with remaining slots for automatched players.
[in] | value | The new value. |