it.gotoandplay.smartfoxserver.User
Availability:
Flash Player 7, 8
SmartFoxServer Basic / Pro
Description:
The User class is used internally by the SmartFoxClient object
to store the properties of each user.
Also
User objects are returned by different
methods and events of the API. Below follows a list of public methods available:
Public Methods:
getId():Number | returns the user Id | |
getName():String | returns the user name | |
getPlayerId():Number | returns the player Id (-1 if not in a game room) | |
getVariable(varName:String):Object | returns a user variable | |
getVariables():Object | returns a list of all the user variables | |
isSpectator():Boolean | returns true if the user is set as spectator in the game room |