GCKGameManagerState Class
Stay organized with collections
Save and categorize content based on your preferences.
A representation of the state of the Game Manager running on the receiver device.
- Deprecated:
- The Game Manager API is no longer supported and will be removed in a future release.
Inherits NSObject.
Returns the GCKPlayerInfo for the specified player ID or nil
if the player does not exist.
- Parameters
-
Returns a list of players that are in the specified player state.
- Parameters
-
playerState | The player state. |
Returns whether the lobby state is different between this object and the specified game manager state.
- Parameters
-
otherState | The game manager state to compare to. |
Returns whether the gameplay state is different between this object and the specified game manager state.
- Parameters
-
otherState | The game manager state to compare to. |
Returns whether the game data is different between this object and the specified game manager state.
- Parameters
-
otherState | The game manager state to compare to. |
Returns whether game status text is different between this object and the specified game manager state.
- Parameters
-
otherState | The game manager state to compare to. |
- (BOOL) hasPlayerChanged: |
|
(NSString *) |
playerId |
otherState: |
|
(GCKGameManagerState *) |
otherState |
|
|
| |
Returns whether the player with the specified player ID has changed between this object and the specified game manager state.
- Parameters
-
playerId | The player ID. |
otherState | The game manager state to compare to. |
- (BOOL) hasPlayerStateChanged: |
|
(NSString *) |
playerId |
otherState: |
|
(GCKGameManagerState *) |
otherState |
|
|
| |
Returns whether the player state of the player with the specified player ID has changed between this object and the specified game manager state.
- Parameters
-
playerId | The player ID. |
otherState | The game manager state to compare to. |
- (BOOL) hasPlayerDataChanged: |
|
(NSString *) |
playerId |
otherState: |
|
(GCKGameManagerState *) |
otherState |
|
|
| |
Returns whether the player data of the player with the specified player ID has changed between this object and the specified game manager state.
- Parameters
-
playerId | The player ID. |
otherState | The game manager state to compare to. |
Returns a list of player IDs that are different between this object and the specified game manager state.
This includes players that were added, removed, or have changed in any way.
- Parameters
-
otherState | The game manager state to compare to. |
The lobby state.
See GCKLobbyState for valid values.
The gameplay state.
See GCKGameplayState for valid values.
The game specific data.
Will be either an object that can be serialized to JSON using NSJSONSerialization, or nil
.
- (NSString*) gameStatusText |
|
readnonatomiccopy |
The list of all players in the game.
The list of all the players created by this sender device.
- (NSString*) applicationName |
|
readnonatomiccopy |
The application name.
Returns nil
if the GCKGameManagerChannel is not yet connected to the receiver's Game Manager.
The maximum number of players as defined by the receiver.
Returns 0 if the GCKGameManagerChannel is not yet connected to the receiver's Game Manager.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-09-18 UTC.
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"Missing the information I need"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"Too complicated / too many steps"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"Out of date"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"Samples / code issue"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]
{"lastModified": "Last updated 2024-09-18 UTC."}
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-09-18 UTC."]]