GCKPlayerInfo Class

GCKPlayerInfo Class Reference

Overview

Represents data for a single player.

Deprecated:
The Game Manager API is no longer supported and will be removed in a future release.

Inherits NSObject.

Instance Method Summary

(instancetype) 
- init
Default initializer is not available. More...

Property Summary

NSString * 
The unique string identifier of this player. More...
The current state of the player. More...
id 
Player-specific data defined by the game. More...
BOOL 
True if this player is in a connected state. More...
True if this player is was created on this sender device. More...

Method Detail

- (instancetype) init

Default initializer is not available.

Property Detail

- (NSString*) playerID
read nonatomic copy

The unique string identifier of this player.

- ( GCKPlayerState ) playerState
read nonatomic assign

The current state of the player.

- (id) playerData
read nonatomic copy

Player-specific data defined by the game.

This data is persisted while the game is running. Will be either an object that can be serialized to JSON using NSJSONSerialization , or nil .

- (BOOL) isConnected
read nonatomic assign

True if this player is in a connected state.

A player is considered to be in a connected state if the associated GCKPlayerInfo::playerState is one of GCKPlayerStateAvailable , GCKPlayerStateReady , GCKPlayerStateIdle , or GCKPlayerStatePlaying .

- (BOOL) isControllable
read nonatomic assign

True if this player is was created on this sender device.

Create a Mobile Website
View Site in Mobile | Classic
Share by: