Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV NEXT | FRAMES NO FRAMES

## Uses of Class
it.gotoandplay.smartfoxserver.data.User

Packages that use User
it.gotoandplay.smartfoxserver.data |
it.gotoandplay.smartfoxserver.data.buddylist |
it.gotoandplay.smartfoxserver.extensions |
it.gotoandplay.smartfoxserver.extensions.examples |

Uses of User in it.gotoandplay.smartfoxserver.data

Methods in it.gotoandplay.smartfoxserver.data that return User
`User[]` | `Room.getAllPlayers()` Return an array of players (for game rooms)
`User[]` | `Room.getAllSpectators()` Return an array of all spectators in this room
`User[]` | `Room.getAllUsers()` Get all the users in the Room
`User[]` | `Room.getAllUsersButOne(java.lang.Integer excludedUserId)` Get an array of Users excluding the one passed to the function This can be useful when you need to broadcast a message to all people in the room except for the one who sent the request to the server.
`User[]` | `Room.getAllUsersButOne(User excludedUser)` Get an array of Users excluding the one passed to the function This can be useful when you need to broadcast a message to all people in the room except for the one who sent the request to the server.
`User` | `RoomVariable.getOwner()`
`User` | `Zone.getUserByName(java.lang.String name)` Get a user from its name
`User` | `Room.getUserByName(java.lang.String userName)` Get a user from its name
`User` | `Room.getUserByPlayerIndex(int pid)` Return a player by its player id

Methods in it.gotoandplay.smartfoxserver.data with parameters of type User
`boolean` | `Room.deleteVariable(java.lang.String vName, User owner)`
`void` | `Zone.destroyVariables(User u)`
`User[]` | `Room.getAllUsersButOne(User excludedUser)` Get an array of Users excluding the one passed to the function This can be useful when you need to broadcast a message to all people in the room except for the one who sent the request to the server.
`void` | `Room.join(User u, java.lang.String pwd, boolean isSpectator)`
`void` | `Zone.removeName(java.lang.String name, User u)`
`boolean` | `Room.removeUser(User u, boolean updateUserRoomList, boolean destroyVars)`
`void` | `RoomVariable.setOwner(User who)` Set the variable owner
`boolean` | `Room.setVariable(java.lang.String vn, java.lang.String vt, java.lang.String vv, boolean pr, boolean ps, User owner, boolean setOwnership)`
`boolean` | `Room.switchPlayer(User u)`
`int` | `Room.switchSpectator(User u)`

Constructors in it.gotoandplay.smartfoxserver.data with parameters of type User
`RoomVariable(boolean value, User owner, boolean persistent, boolean priv)` Create a Room variable with a Boolean value
`RoomVariable(double value, User owner, boolean persistent, boolean priv)` Create a Room variable with a Double value
`RoomVariable(int value, User owner, boolean persistent, boolean priv)` Create a Room variable with a int value
`RoomVariable(java.lang.String value, java.lang.String type, User owner, boolean persistent, boolean priv)` Deprecated.
`RoomVariable(java.lang.String value, User owner, boolean persistent, boolean priv)` Create a Room variable with a String value

Uses of User in it.gotoandplay.smartfoxserver.data.buddylist

Methods in it.gotoandplay.smartfoxserver.data.buddylist with parameters of type User
`void` | `BuddyListManager.checkValidAddRequest(User sender, java.lang.String target)`
`void` | `BuddyListManager.sendBuddyListUpdate(User user)` Send an update about the specified User to all clients that have him/her in their buddy list
`void` | `BuddyListManager.setBuddyBlockStatus(User owner, java.lang.String buddyName, boolean status)` Set buddy block status
`java.util.List<java.lang.String>` | `BuddyListManager.setBuddyVariables(User user, java.util.Map<java.lang.String,java.lang.String> variables)` Set one or more buddy variables
`boolean` | `BuddyListManager.validateRecipient(User sender, User recipient)` Check a sender/receiver pair for a private message from BuddyList

Uses of User in it.gotoandplay.smartfoxserver.extensions

Methods in it.gotoandplay.smartfoxserver.extensions that return User
`User` | `ExtensionHelper.canLogin(java.lang.String nick, java.lang.String pass, java.nio.channels.SocketChannel ch, java.lang.String zone)` Checks if a connected client can log in the requested Zone.
`User` | `ExtensionHelper.canLogin(java.lang.String nick, java.lang.String pass, java.nio.channels.SocketChannel ch, java.lang.String zone, boolean forceLogin)` Checks if a connected client can log in the requested Zone.
`User` | `ExtensionHelper.createNPC(java.lang.String userName, java.lang.String ipAddress, int port, java.lang.String zoneName)` Creates an NPC (Non-Player Character) or BOT User that can be used for automated tasks, game AI etc...
`User` | `ExtensionHelper.getUserByChannel(java.nio.channels.SocketChannel sc)` Return a User object from its socket channel
`User` | `ExtensionHelper.getUserById(int id)` Return a User object from its numeric id

Methods in it.gotoandplay.smartfoxserver.extensions with parameters of type User
`void` | `ExtensionHelper.addBuddy(java.lang.String buddyName, User user)` Add a buddy to a user buddy list Based on the BuddyList configuration this may immediately add the buddy to the user list or send a buddy request that the target user must respond to.
`void` | `ExtensionHelper.banUser(User user, int delay, java.lang.String farewellMessage, int banType)` Disconnects and bans a user.
`void` | `ExtensionHelper.clearBuddyList(User user)` Deprecated.
`Room` | `ExtensionHelper.createRoom(Zone z, java.util.Map params, User creator, boolean sendUpdate, boolean broadcastEvent)` Create a new dynamic room.
`Room` | `ExtensionHelper.createRoom(Zone z, java.util.Map params, User creator, java.util.HashMap roomVars, User varsOwner, boolean setOwnership, boolean sendUpdate, boolean broadcastEvent)` Create a new dynamic room.
`void` | `ExtensionHelper.disconnectUser(User u)` Disconnects a client from the server.
`void` | `ExtensionHelper.dispatchPrivateMessage(java.lang.String msg, Room r, User sender, User recipient)` Dispatch a private message.
`void` | `ExtensionHelper.dispatchPublicMessage(java.lang.String msg, Room r, User u)` Dispatch a public message.
`void` | `AbstractExtension.handleRequest(java.lang.String cmd, org.json.JSONObject jso, User u, int fromRoom)` Basic implementation of interface method Needed to avoid breaking extensions of version 1.4.0 and previous which only handle XML or String requests.
`boolean` | `ExtensionHelper.joinRoom(User usr, int currRoom, int newRoom, boolean leaveRoom, java.lang.String pword, boolean isSpectator, boolean broadcast)` Join a room from a server side extension
`void` | `ExtensionHelper.kickUser(User user, int delay, java.lang.String farewellMessage)` Kicks a user allowing to specify a delay before the task is executed and an admin message.
`void` | `ExtensionHelper.leaveRoom(User u, int roomId, boolean broadcastEvent)` Force a user to leave a room.
`void` | `ExtensionHelper.logoutUser(User user, boolean fireClientEvt, boolean fireInternalEvt)` Logout a user from the current Zone
`void` | `ExtensionHelper.removeBuddy(java.lang.String buddyName, User user)` Removes a buddy from a user buddy list.
`void` | `ExtensionHelper.requestAddBuddyPermission(User sender, java.lang.String targetUserName, java.lang.String optionalMessage)` Requests permission for adding the target user in the sender buddy list.
`void` | `ExtensionHelper.sendBuddyListUpdate(User user)` Send an update about the specified User to all clients that have him/her in their buddy list.
`void` | `ExtensionHelper.sendCustomRoomList(java.util.List<Room> roomList, User user)` Allows to send a custom room list to the client.
`void` | `ExtensionHelper.sendModeratorMessage(java.lang.String message, User sender, int type, int id)` Send a moderator message to a single user, a room or an entire Zone.
`void` | `AbstractExtension.sendResponse(ActionscriptObject ao, int fromRoom, User sender, java.util.LinkedList recipients)` Send a response to one or more clients using XML format
`void` | `AbstractExtension.sendResponse(org.json.JSONObject jso, int fromRoom, User sender, java.util.LinkedList recipients)` Send a response to one or more clients using JSON format
`void` | `AbstractExtension.sendResponse(net.sf.json.JSONObject jso, int fromRoom, User sender, java.util.LinkedList recipients)` Send a response to one or more clients using JSON format
`void` | `AbstractExtension.sendResponse(java.lang.String[] params, int fromRoom, User sender, java.util.LinkedList recipients)` Send a response to one or more clients using String format
`void` | `ExtensionHelper.setBuddyBlockStatus(User user, java.lang.String buddyName, boolean isBlocked)` Set the isBlocked flag of a buddy in the User's buddy list.
`void` | `ExtensionHelper.setBuddyVariables(User user, java.util.Map<java.lang.String,java.lang.String> variables)` Set the buddy variables of the specified user.
`void` | `ExtensionHelper.setRoomVariable(Room r, User u, java.lang.String vn, java.lang.String vt, java.lang.String vv, boolean pr, boolean ps, boolean setOwnership, boolean broadcastAll)` Deprecated.
`void` | `ExtensionHelper.setRoomVariables(Room r, User u, java.util.HashMap vars, boolean setOwnership, boolean broadcastAll)` Set one or more Room Variable The vars parameter requires a Map of RoomVariables where the key is the variable name and the value is the RoomVariable object.
`void` | `ExtensionHelper.setUserVariables(User u, java.util.HashMap vars, boolean broadcastAll)` Set one or more User Variables.
`void` | `ExtensionHelper.switchPlayer(User u, int roomId, boolean brodcastEvent)` Switch a player into a spectator, if possible (game rooms only) Fires an onPlayerSwitched event on the client side.
`void` | `ExtensionHelper.switchSpectator(User u, int roomId, boolean brodcastEvent)` Switch a spectator into a player, if possible (game rooms only) For more details about switching spectators to players you should check the SmartFoxTris game example.

Uses of User in it.gotoandplay.smartfoxserver.extensions.examples

Methods in it.gotoandplay.smartfoxserver.extensions.examples with parameters of type User
`void` | `SimpleExtension.handleRequest(java.lang.String cmd, ActionscriptObject ao, User u, int fromRoom)` Handle client requests sent in XML format.
`void` | `SimpleDbExtension.handleRequest(java.lang.String cmd, ActionscriptObject ao, User u, int fromRoom)` Handle client requests sent in XML format.
`void` | `SchedulerExample.handleRequest(java.lang.String cmd, ActionscriptObject ao, User u, int fromRoom)`
`void` | `PixelGame.handleRequest(java.lang.String cmd, ActionscriptObject ao, User u, int fromRoom)` This is not used.
`void` | `SimpleExtension.handleRequest(java.lang.String cmd, java.lang.String[] params, User u, int fromRoom)` Handle client requests sent in String format.
`void` | `SimpleDbExtension.handleRequest(java.lang.String cmd, java.lang.String[] params, User u, int fromRoom)` Handle client requests sent in String format.
`void` | `SchedulerExample.handleRequest(java.lang.String cmd, java.lang.String[] params, User u, int fromRoom)`
`void` | `PixelGame.handleRequest(java.lang.String cmd, java.lang.String[] params, User u, int fromRoom)` Hanlde client requests in String format

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV NEXT | FRAMES NO FRAMES