Packagenet.flashplusplus.Snapdragon.GameCenter
Classpublic class SDPlayer
InheritanceSDPlayer Inheritance Object

SDPlayer is a descriptor class. It holds informations about a player authenticated in iOS Game Center.



Public Properties
 PropertyDefined By
  alias : String
[read-only] Alias is chosen by the player to identify themselves to other players.
SDPlayer
  displayName : String
[read-only] DisplayName depends on whether the player is a friend of the local player authenticated on the device.
SDPlayer
  isFriend : Boolean
[read-only] IsFriend tells if the player is a friend of the local player.
SDPlayer
  playerID : String
[read-only] PlayerID assigned by Game Center to uniquely identify a player.
SDPlayer
Public Methods
 MethodDefined By
  
SDPlayer(playerID:String, alias:String, displayName:String, isFriend:Boolean)
Constructor of SDPlayer class.
SDPlayer
Property Detail
aliasproperty
alias:String  [read-only]

Alias is chosen by the player to identify themselves to other players. It is the name of the player in the game center.


Implementation
    public function get alias():String
displayNameproperty 
displayName:String  [read-only]

DisplayName depends on whether the player is a friend of the local player authenticated on the device. If the player is a friend of the local player, then the display name is the actual name of the player. If the player is not a friend, then the display name is the player’s alias.


Implementation
    public function get displayName():String
isFriendproperty 
isFriend:Boolean  [read-only]

IsFriend tells if the player is a friend of the local player.


Implementation
    public function get isFriend():Boolean
playerIDproperty 
playerID:String  [read-only]

PlayerID assigned by Game Center to uniquely identify a player.


Implementation
    public function get playerID():String
Constructor Detail
SDPlayer()Constructor
public function SDPlayer(playerID:String, alias:String, displayName:String, isFriend:Boolean)

Constructor of SDPlayer class.

Parameters
playerID:String — is a string assigned by Game Center to uniquely identify a player.
 
alias:String — is a string chosen by the player to identify themselves to other players.
 
displayName:String — is a string to display for the player.
 
isFriend:Boolean — is a boolean variable to tell if the player is a friend.