GCKGameManagerState 클래스
컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
수신기 기기에서 실행되는 게임 관리자의 상태를 나타냅니다.
- Deprecated:
- 게임 관리자 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 |
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
최종 업데이트: 2025-07-26(UTC)
[[["이해하기 쉬움","easyToUnderstand","thumb-up"],["문제가 해결됨","solvedMyProblem","thumb-up"],["기타","otherUp","thumb-up"]],[["필요한 정보가 없음","missingTheInformationINeed","thumb-down"],["너무 복잡함/단계 수가 너무 많음","tooComplicatedTooManySteps","thumb-down"],["오래됨","outOfDate","thumb-down"],["번역 문제","translationIssue","thumb-down"],["샘플/코드 문제","samplesCodeIssue","thumb-down"],["기타","otherDown","thumb-down"]],["최종 업데이트: 2025-07-26(UTC)"],[[["The `GCKGameManagerState` class represents the state of the Game Manager on a receiver device, providing access to lobby, gameplay, and player information."],["This class is deprecated and will be removed in a future release; the Game Manager API is no longer supported."],["It offers methods to retrieve player details, check for changes in game state, and access lists of players."],["Several properties expose data like lobby state, gameplay state, game data, player lists, application name, and maximum player count."],["Developers can use this class to track and react to changes in the game session on the receiver."]]],["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"]]