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 序列化为 JSON 的对象,也可以是 nil
。
- (NSString*) gameStatusText |
|
readnonatomiccopy |
- (NSString*) applicationName |
|
readnonatomiccopy |
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):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":"其他"
}]