GCKGameManagerState 클래스

GCKGameManagerState 클래스 참조

개요

수신기 기기에서 실행되는 게임 관리자의 상태를 나타냅니다.

Deprecated:
게임 관리자 API는 더 이상 지원되지 않으며 향후 출시되는 버전에서 삭제될 예정입니다.

NSObject를 상속합니다.

인스턴스 메서드 요약

(GCKPlayerInfo *__nullable) - getPlayer:
 지정된 플레이어 ID의 GCKPlayerInfo를 반환하거나 플레이어가 없는 경우 nil를 반환합니다. 더보기
 
(NSArray< GCKPlayerInfo * > *) - getPlayersInState:
 지정된 플레이어 상태에 있는 플레이어 목록을 반환합니다. 더보기
 
(BOOL) - hasLobbyStateChanged:
 이 객체와 지정된 게임 관리자 상태 간에 로비 상태가 다른지 여부를 반환합니다. 더보기
 
(BOOL) - hasGameplayStateChanged:
 이 객체와 지정된 게임 관리자 상태 간에 게임플레이 상태가 다른지 여부를 반환합니다. 더보기
 
(BOOL) - hasGameDataChanged:
 이 객체와 지정된 게임 관리자 상태 간에 게임 데이터가 다른지 여부를 반환합니다. 더보기
 
(BOOL) - hasGameStatusTextChanged:
 이 객체와 지정된 게임 관리자 상태 간에 게임 상태 텍스트가 다른지 여부를 반환합니다. 더보기
 
(BOOL) - hasPlayerChanged:otherState:
 지정된 플레이어 ID가 있는 플레이어가 이 객체와 지정된 게임 관리자 상태 사이에 변경되었는지 여부를 반환합니다. 더보기
 
(BOOL) - hasPlayerStateChanged:otherState:
 지정된 플레이어 ID가 있는 플레이어의 플레이어 상태가 이 객체와 지정된 게임 관리자 상태 사이에 변경되었는지 여부를 반환합니다. 더보기
 
(BOOL) - hasPlayerDataChanged:otherState:
 지정된 플레이어 ID가 있는 플레이어의 데이터가 이 객체와 지정된 게임 관리자 상태 사이에 변경되었는지 여부를 반환합니다. 더보기
 
(NSArray< NSString * > *) - getListOfChangedPlayers:
 이 객체와 지정된 게임 관리자 상태 간에 다른 플레이어 ID 목록을 반환합니다. 더보기
 

숙박 시설 요약

GCKLobbyState lobbyState
 로비 상태입니다. 더보기
 
GCKGameplayState gameplayState
 게임플레이 상태입니다. 더보기
 
id gameData
 게임별 데이터입니다. 더보기
 
NSString * gameStatusText
 게임 상태 텍스트입니다. 더보기
 
NSArray< GCKPlayerInfo * > * players
 게임에 있는 모든 플레이어의 목록입니다. 더보기
 
NSArray< GCKPlayerInfo * > * controllablePlayers
 이 전송 기기에서 생성된 모든 플레이어의 목록입니다. 더보기
 
NSArray< GCKPlayerInfo * > * connectedPlayers
 연결된 상태의 플레이어 목록입니다. 더보기
 
NSArray< GCKPlayerInfo * > * connectedControllablePlayers
 연결된 상태이며 이 전송 기기에서도 생성된 플레이어 목록입니다. 더보기
 
NSString * applicationName
 애플리케이션의 이름입니다. 더보기
 
NSInteger maxPlayers
 수신기에서 정의한 최대 플레이어 수입니다. 더보기
 

메소드 세부정보

- (GCKPlayerInfo *__nullable) getPlayer: (NSString *)  playerID

지정된 플레이어 ID의 GCKPlayerInfo를 반환하거나 플레이어가 없는 경우 nil를 반환합니다.

Parameters
playerIDThe player ID.
- (NSArray<GCKPlayerInfo *> *) getPlayersInState: (GCKPlayerState playerState

지정된 플레이어 상태에 있는 플레이어 목록을 반환합니다.

Parameters
playerStateThe player state.
- (BOOL) hasLobbyStateChanged: (GCKGameManagerState *)  otherState

이 객체와 지정된 게임 관리자 상태 간에 로비 상태가 다른지 여부를 반환합니다.

Parameters
otherStateThe game manager state to compare to.
- (BOOL) hasGameplayStateChanged: (GCKGameManagerState *)  otherState

이 객체와 지정된 게임 관리자 상태 간에 게임플레이 상태가 다른지 여부를 반환합니다.

Parameters
otherStateThe game manager state to compare to.
- (BOOL) hasGameDataChanged: (GCKGameManagerState *)  otherState

이 객체와 지정된 게임 관리자 상태 간에 게임 데이터가 다른지 여부를 반환합니다.

Parameters
otherStateThe game manager state to compare to.
- (BOOL) hasGameStatusTextChanged: (GCKGameManagerState *)  otherState

이 객체와 지정된 게임 관리자 상태 간에 게임 상태 텍스트가 다른지 여부를 반환합니다.

Parameters
otherStateThe game manager state to compare to.
- (BOOL) hasPlayerChanged: (NSString *)  playerId
otherState: (GCKGameManagerState *)  otherState 

지정된 플레이어 ID가 있는 플레이어가 이 객체와 지정된 게임 관리자 상태 사이에 변경되었는지 여부를 반환합니다.

Parameters
playerIdThe player ID.
otherStateThe game manager state to compare to.
- (BOOL) hasPlayerStateChanged: (NSString *)  playerId
otherState: (GCKGameManagerState *)  otherState 

지정된 플레이어 ID가 있는 플레이어의 플레이어 상태가 이 객체와 지정된 게임 관리자 상태 사이에 변경되었는지 여부를 반환합니다.

Parameters
playerIdThe player ID.
otherStateThe game manager state to compare to.
- (BOOL) hasPlayerDataChanged: (NSString *)  playerId
otherState: (GCKGameManagerState *)  otherState 

지정된 플레이어 ID가 있는 플레이어의 데이터가 이 객체와 지정된 게임 관리자 상태 사이에 변경되었는지 여부를 반환합니다.

Parameters
playerIdThe player ID.
otherStateThe game manager state to compare to.
- (NSArray<NSString *> *) getListOfChangedPlayers: (GCKGameManagerState *)  otherState

이 객체와 지정된 게임 관리자 상태 간에 다른 플레이어 ID 목록을 반환합니다.

여기에는 추가, 삭제되었거나 어떤 식으로든 변경된 플레이어가 포함됩니다.

Parameters
otherStateThe game manager state to compare to.

숙박 시설 세부정보

- (GCKLobbyState) lobbyState
readnonatomicassign

로비 상태입니다.

유효한 값은 GCKLobbyState를 참고하세요.

- (GCKGameplayState) gameplayState
readnonatomicassign

게임플레이 상태입니다.

유효한 값은 GCKGameplayState를 참고하세요.

- (id) gameData
readnonatomiccopy

게임별 데이터입니다.

NSJSONSerialization을 사용하여 JSON으로 직렬화할 수 있는 객체 또는 nil입니다.

- (NSString*) gameStatusText
readnonatomiccopy

게임 상태 텍스트입니다.

- (NSArray<GCKPlayerInfo *>*) players
readnonatomicstrong

게임에 있는 모든 플레이어의 목록입니다.

- (NSArray<GCKPlayerInfo *>*) controllablePlayers
readnonatomicassign

이 전송 기기에서 생성된 모든 플레이어의 목록입니다.

- (NSArray<GCKPlayerInfo *>*) connectedPlayers
readnonatomicstrong

연결된 상태의 플레이어 목록입니다.

연결된 GCKPlayerInfo::playerStateGCKPlayerStateAvailable, GCKPlayerStateReady, GCKPlayerStateIdle 또는 GCKPlayerStatePlaying 중 하나인 경우 플레이어가 연결된 상태로 간주됩니다.

- (NSArray<GCKPlayerInfo *>*) connectedControllablePlayers
readnonatomicstrong

연결된 상태이며 이 전송 기기에서도 생성된 플레이어 목록입니다.

연결된 GCKPlayerInfo::playerStateGCKPlayerStateAvailable, GCKPlayerStateReady, GCKPlayerStateIdle 또는 GCKPlayerStatePlaying 중 하나인 경우 플레이어가 연결된 상태로 간주됩니다.

- (NSString*) applicationName
readnonatomiccopy

애플리케이션의 이름입니다.

GCKGameManagerChannel이 아직 수신자의 게임 관리자에 연결되지 않은 경우 nil을 반환합니다.

- (NSInteger) maxPlayers
readnonatomicassign

수신기에서 정의한 최대 플레이어 수입니다.

GCKGameManagerChannel이 아직 수신기의 게임 관리자에 연결되지 않은 경우 0을 반환합니다.