Package | net.flashplusplus.Snapdragon.GameCenter |
Class | public class SDPlayer |
Inheritance | SDPlayer Object |
Property | Defined 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 |
Method | Defined By | ||
---|---|---|---|
SDPlayer(playerID:String, alias:String, displayName:String, isFriend:Boolean)
Constructor of SDPlayer class. | SDPlayer |
alias | property |
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.
public function get alias():String
displayName | property |
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.
public function get displayName():String
isFriend | property |
isFriend:Boolean
[read-only] IsFriend tells if the player is a friend of the local player.
public function get isFriend():Boolean
playerID | property |
playerID:String
[read-only] PlayerID assigned by Game Center to uniquely identify a player.
public function get playerID():String
SDPlayer | () | Constructor |
public function SDPlayer(playerID:String, alias:String, displayName:String, isFriend:Boolean)
Constructor of SDPlayer class.
ParametersplayerID: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.
|