GCKGameManagerState クラス
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
レシーバー デバイスで実行されているゲーム マネージャーの状態を表します。
- Deprecated:
- Game Manager API はサポートされなくなり、今後のリリースで削除されます。
NSObject を継承します。
指定されたプレーヤー ID の GCKPlayerInfo を返します。プレーヤーが存在しない場合は nil
を返します。
- Parameters
-
指定されたプレーヤーの状態にあるプレーヤーのリストを返します。
- Parameters
-
playerState | The player state. |
このオブジェクトと指定されたゲーム マネージャーの状態との間でロビーの状態が異なるかどうかを返します。
- Parameters
-
otherState | The game manager state to compare to. |
このオブジェクトと指定されたゲーム マネージャーの状態との間でゲームプレイの状態が異なるかどうかを返します。
- Parameters
-
otherState | The game manager state to compare to. |
このオブジェクトと指定されたゲーム マネージャーの状態の間でゲームデータが異なるかどうかを返します。
- Parameters
-
otherState | The game manager state to compare to. |
このオブジェクトと指定されたゲーム マネージャーの状態の間でゲーム ステータス テキストが異なるかどうかを返します。
- Parameters
-
otherState | The game manager state to compare to. |
- (BOOL) hasPlayerChanged: |
|
(NSString *) |
playerId |
otherState: |
|
(GCKGameManagerState *) |
otherState |
|
|
| |
指定されたプレーヤー ID のプレーヤーが、このオブジェクトと指定されたゲーム マネージャーの状態の間で変更されたかどうかを返します。
- Parameters
-
playerId | The player ID. |
otherState | The game manager state to compare to. |
- (BOOL) hasPlayerStateChanged: |
|
(NSString *) |
playerId |
otherState: |
|
(GCKGameManagerState *) |
otherState |
|
|
| |
指定されたプレーヤー ID のプレーヤーの状態が、このオブジェクトと指定されたゲーム マネージャーの状態の間で変更されたかどうかを返します。
- Parameters
-
playerId | The player ID. |
otherState | The game manager state to compare to. |
- (BOOL) hasPlayerDataChanged: |
|
(NSString *) |
playerId |
otherState: |
|
(GCKGameManagerState *) |
otherState |
|
|
| |
指定されたプレーヤー ID のプレーヤー データが、このオブジェクトと指定されたゲーム マネージャーの状態の間で変更されたかどうかを返します。
- Parameters
-
playerId | The player ID. |
otherState | The game manager state to compare to. |
このオブジェクトと指定されたゲーム マネージャーの状態の間で異なるプレーヤー ID のリストを返します。
これには、追加、削除、変更されたプレーヤーが含まれます。
- Parameters
-
otherState | The game manager state to compare to. |
ロビーの状態。
有効な値については、GCKLobbyState をご覧ください。
ゲームプレイの状態。
有効な値については、GCKGameplayState をご覧ください。
ゲーム固有のデータ。
NSJSONSerialization を使用して JSON にシリアル化できるオブジェクト、または nil
のいずれかになります。
- (NSString*) gameStatusText |
|
readnonatomiccopy |
この送信側デバイスで作成されたすべてのプレーヤーのリスト。
- (NSString*) applicationName |
|
readnonatomiccopy |
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2025-07-26 UTC。
[null,null,["最終更新日 2025-07-26 UTC。"],[],["The GCKGameManagerState class represents the state of a Game Manager on a receiver device, although it is deprecated. Key actions include retrieving player information via `getPlayer:` or `getPlayersInState:`, and checking for changes between game states. Methods exist to check if the lobby state, gameplay state, game data, or game status text have changed. Additionally, there are methods to determine if specific players have changed or if their state or data has been altered, using `hasPlayerChanged`, `hasPlayerStateChanged`, `hasPlayerDataChanged`, and a method to retrieve a list of changed players `getListOfChangedPlayers`. Property methods are also provided to retrieve the lobby, gameplay, game data, status text, players, and other related data.\n"],null,[]]