GCKGameManagerState 類別
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
代表遊戲主機在接收器裝置上執行的狀態。
- Deprecated:
- 我們不再支援 Game Manager API,將在日後推出的版本中移除。
沿用 NSObject。
傳回處於指定玩家狀態的玩家清單。
- 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 或 nil
序列化為 JSON 的物件。
- (NSString*) gameStatusText |
|
readnonatomiccopy |
- (NSString*) applicationName |
|
readnonatomiccopy |
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2022-12-06 (世界標準時間)。
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"缺少我需要的資訊"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"過於複雜/步驟過多"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"過時"
},{
"type": "thumb-down",
"id": "translationIssue",
"label":"翻譯問題"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"示例/程式碼問題"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"其他"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"容易理解"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"確實解決了我的問題"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"其他"
}]