Uses of Interface
com.smartfoxserver.v2.entities.User
-
-
Uses of User in com.smartfoxserver.v2.api
Methods in com.smartfoxserver.v2.api that return User Modifier and Type Method Description UserISFSApi. createNPC(java.lang.String userName, Zone zone, boolean forceLogin)Create connection-less NPC (Non-Player Character).UserSFSApi. createNPC(java.lang.String userName, Zone zone, boolean forceLogin)Create connection-less NPC (Non-Player Character).UserISFSApi. getUserById(int userId)Finds a User from its unique IDUserSFSApi. getUserById(int userId)Finds a User from its unique IDUserISFSApi. getUserByName(java.lang.String name)Finds a User from its nameUserSFSApi. getUserByName(java.lang.String name)Finds a User from its nameUserISFSApi. getUserBySession(ISession session)Finds a User from its SessionUserSFSApi. getUserBySession(ISession session)Finds a User from its SessionUserISFSApi. login(ISession session, java.lang.String name, java.lang.String pass, java.lang.String zoneName, ISFSObject params)Logs a client into a Zone, allowing it to become a UserUserISFSApi. login(ISession session, java.lang.String name, java.lang.String pass, java.lang.String zoneName, ISFSObject params, boolean forceLogout)Uses additional flag to disconnect previous user with same usernameUserSFSApi. login(ISession sender, java.lang.String name, java.lang.String pass, java.lang.String zoneName, ISFSObject paramsOut)Logs a client into a Zone, allowing it to become a UserUserSFSApi. login(ISession sender, java.lang.String name, java.lang.String pass, java.lang.String zoneName, ISFSObject paramsOut, boolean forceLogout)Uses additional flag to disconnect previous user with same usernameMethods in com.smartfoxserver.v2.api that return types with arguments of type User Modifier and Type Method Description java.util.List<User>ISFSApi. findUsers(java.util.Collection<User> userList, MatchExpression expression, int limit)Find one or more User(s) in the specified collection of Users.java.util.List<User>SFSApi. findUsers(java.util.Collection<User> userList, MatchExpression expression, int limit)Find one or more User(s) in the specified collection of Users.Methods in com.smartfoxserver.v2.api with parameters of type User Modifier and Type Method Description voidISFSBuddyApi. addBuddy(User owner, java.lang.String buddyName, boolean isTemp, boolean fireClientEvent, boolean fireServerEvent)Adds a new buddy to the BuddyList of the specified User.voidSFSBuddyApi. addBuddy(User owner, java.lang.String buddyName, boolean isTemp, boolean fireClientEvent, boolean fireServerEvent)Adds a new buddy to the BuddyList of the specified User.voidISFSApi. banUser(User userToBan, User modUser, java.lang.String banMessage, BanMode mode, int durationMinutes, int delaySeconds)Ban a User.voidISFSApi. banUser(User userToBan, User modUser, java.lang.String banMessage, java.lang.String reason, BanMode mode, int durationMinutes, int delaySeconds)Ban a User.voidSFSApi. banUser(User userToBan, User modUser, java.lang.String banMessage, BanMode mode, int durationMinutes, int delaySeconds)Ban a User.voidSFSApi. banUser(User userToBan, User modUser, java.lang.String banMessage, java.lang.String reason, BanMode mode, int durationMinutes, int delaySeconds)Ban a User.voidISFSBuddyApi. blockBuddy(User owner, java.lang.String buddyName, boolean isBlocked, boolean fireClientEvent, boolean fireServerEvent)Block/Unblock a Buddy in the owner's BuddyList Blocked buddies won't be able to see the owner online status and send him messages or updatesvoidSFSBuddyApi. blockBuddy(User owner, java.lang.String buddyName, boolean isBlocked, boolean fireClientEvent, boolean fireServerEvent)Block/Unblock a Buddy in the owner's BuddyList Blocked buddies won't be able to see the owner online status and send him messages or updatesvoidISFSApi. changeRoomCapacity(User owner, Room targetRoom, int maxUsers, int maxSpectators)Changes the capacity (max number of Users and Spectators) in the Room.voidSFSApi. changeRoomCapacity(User owner, Room targetRoom, int maxUsers, int maxSpectators)Changes the capacity (max number of Users and Spectators) in the Room.voidISFSApi. changeRoomName(User owner, Room targetRoom, java.lang.String newName)Rename a Room.voidSFSApi. changeRoomName(User owner, Room targetRoom, java.lang.String newName)Rename a Room.voidISFSApi. changeRoomPassword(User owner, Room targetRoom, java.lang.String newPassword)Changes the Room password and the Room password-state.voidSFSApi. changeRoomPassword(User owner, Room targetRoom, java.lang.String newPassword)Changes the Room password and the Room password-state.RoomISFSGameApi. createGame(Zone zone, CreateSFSGameSettings settings, User owner)Create an SFSGame Room and automatically update the clients and fire a server eventRoomISFSGameApi. createGame(Zone zone, CreateSFSGameSettings settings, User owner, boolean fireClientEvent, boolean fireServerEvent)Create an SFSGame Room.RoomSFSGameApi. createGame(Zone zone, CreateSFSGameSettings settings, User owner)Create an SFSGame Room and automatically update the clients and fire a server eventRoomSFSGameApi. createGame(Zone zone, CreateSFSGameSettings settings, User owner, boolean fireClientEvent, boolean fireServerEvent)Create an SFSGame Room.RoomISFSApi. createRoom(Zone zone, CreateRoomSettings settings, User owner)Create a new RoomRoomISFSApi. createRoom(Zone zone, CreateRoomSettings settings, User owner, boolean joinIt, Room roomToLeave)Create a new RoomRoomISFSApi. createRoom(Zone zone, CreateRoomSettings settings, User owner, boolean joinIt, Room roomToLeave, boolean fireClientEvent, boolean fireServerEvent)RoomSFSApi. createRoom(Zone zone, CreateRoomSettings params, User owner)Create a new RoomRoomSFSApi. createRoom(Zone zone, CreateRoomSettings params, User owner, boolean joinIt, Room roomToLeave)Create a new RoomRoomSFSApi. createRoom(Zone zone, CreateRoomSettings params, User owner, boolean joinIt, Room roomToLeave, boolean fireClientEvent, boolean fireServerEvent)voidISFSApi. disconnectUser(User user)Disconnect User abruptlyvoidISFSApi. disconnectUser(User user, IDisconnectionReason reason)Disconnect a User indicating one specific reason (for example because the User was Idle).voidSFSApi. disconnectUser(User user)Disconnect a User from the server.voidSFSApi. disconnectUser(User user, IDisconnectionReason reason)Disconnect a User indicating one specific reason (for example because the User was Idle).voidISFSBuddyApi. goOnline(User user, boolean online, boolean fireServerEvent)Activates/De-activates the Buddy ONLINE status of the User.voidSFSBuddyApi. goOnline(User user, boolean online, boolean fireServerEvent)Activates/De-activates the Buddy ONLINE status of the User.BuddyListISFSBuddyApi. initBuddyList(User user, boolean fireServerEvent)Initialize the buddy list for the requested User.BuddyListSFSBuddyApi. initBuddyList(User user, boolean fireServerEvent)Initialize the buddy list for the requested User.protected voidSFSBuddyApi. initializeBuddyState(User user)voidISFSApi. joinRoom(User user, Room room)Join the user in a room.
This is the quickest way to join a User in non password-protected Room.voidISFSApi. joinRoom(User user, Room roomToJoin, java.lang.String password, boolean asSpectator, Room roomToLeave)Join the user in a room.
A client update and server side event will be also firedvoidISFSApi. joinRoom(User user, Room roomToJoin, java.lang.String password, boolean asSpectator, Room roomToLeave, boolean fireClientEvent, boolean fireServerEvent)Join the user in a room.voidSFSApi. joinRoom(User user, Room room)Join the user in a room.
This is the quickest way to join a User in non password-protected Room.voidSFSApi. joinRoom(User user, Room roomToJoin, java.lang.String password, boolean asSpectator, Room roomToLeave)Join the user in a room.
A client update and server side event will be also firedvoidSFSApi. joinRoom(User user, Room roomToJoin, java.lang.String password, boolean asSpectator, Room roomToLeave, boolean fireClientEvent, boolean fireServerEvent)Join the user in a room.voidISFSApi. kickUser(User userToKick, User modUser, java.lang.String kickMessage, int delaySeconds)Kicks the User out.voidSFSApi. kickUser(User userToKick, User modUser, java.lang.String kickMessage, int delaySeconds)Kicks the User out.voidISFSApi. leaveRoom(User user, Room room)Makes a user leave a room that he has joinedvoidISFSApi. leaveRoom(User user, Room room, boolean fireClientEvent, boolean fireServerEvent)Removes a User from a previously joined RoomvoidSFSApi. leaveRoom(User user, Room room)Makes a user leave a room that he has joinedvoidSFSApi. leaveRoom(User user, Room room, boolean fireClientEvent, boolean fireServerEvent)Removes a User from a previously joined RoomvoidISFSApi. logout(User user)Log a User out of the current ZonevoidSFSApi. logout(User user)Log a User out of the current ZonevoidISFSApi. playerToSpectator(User user, Room targetRoom, boolean fireClientEvent, boolean fireServerEvent)Turns a player in a Game Room to a spectator.voidSFSApi. playerToSpectator(User user, Room targetRoom, boolean fireClientEvent, boolean fireServerEvent)RoomISFSGameApi. quickJoinGame(User player, MatchExpression expression, Zone zone, java.lang.String groupId)Quick join a User in an SFSGame.RoomISFSGameApi. quickJoinGame(User player, MatchExpression expression, Zone zone, java.lang.String groupId, Room roomToLeave)Quick join a User in an SFSGame.RoomISFSGameApi. quickJoinGame(User player, MatchExpression expression, java.util.Collection<Room> searchableRooms, Room roomToLeave)Quick join a User in an SFSGame.RoomSFSGameApi. quickJoinGame(User player, MatchExpression expression, Zone zone, java.lang.String groupId)Quick join a User in an SFSGame.RoomSFSGameApi. quickJoinGame(User player, MatchExpression expression, Zone zone, java.lang.String groupId, Room roomToLeave)Quick join a User in an SFSGame.RoomSFSGameApi. quickJoinGame(User player, MatchExpression expression, java.util.Collection<Room> searchableRooms, Room roomToLeave)Quick join a User in an SFSGame.voidISFSApi. quickJoinOrCreateRoom(User user, MatchExpression expression, java.util.Collection<java.lang.String> groupList, CreateRoomSettings settings)Searches for a Room that matches the provided MatchExpression and joins the User in the first occurrence found.voidISFSApi. quickJoinOrCreateRoom(User user, MatchExpression expression, java.util.Collection<java.lang.String> groupList, CreateRoomSettings settings, Room roomToLeave)Searches for a Room that matches the provided MatchExpression and joins the User in the first occurrence found.voidSFSApi. quickJoinOrCreateRoom(User user, MatchExpression expression, java.util.Collection<java.lang.String> groupList, CreateRoomSettings settings)Searches for a Room that matches the provided MatchExpression and joins the User in the first occurrence found.voidSFSApi. quickJoinOrCreateRoom(User user, MatchExpression expression, java.util.Collection<java.lang.String> groupList, CreateRoomSettings settings, Room roomToLeave)Searches for a Room that matches the provided MatchExpression and joins the User in the first occurrence found.voidISFSBuddyApi. removeBuddy(User owner, java.lang.String buddyName, boolean fireClientEvent, boolean fireServerEvent)Remove a Buddy from the owner's BuddyListvoidSFSBuddyApi. removeBuddy(User owner, java.lang.String buddyName, boolean fireClientEvent, boolean fireServerEvent)Remove a Buddy from the owner's BuddyListvoidISFSGameApi. replyToInvitation(User invitedUser, int invitationId, InvitationResponse reply, ISFSObject params, boolean fireClientEvent)Handle the Invitation reply of a UservoidSFSGameApi. replyToInvitation(User invitedUser, int invitationId, InvitationResponse reply, ISFSObject params, boolean fireClientEvent)Handle the Invitation reply of a UservoidISFSApi. sendAdminMessage(User sender, java.lang.String message, ISFSObject params, java.util.Collection<ISession> recipients)Sends a administrator message to a number of Users.voidSFSApi. sendAdminMessage(User sender, java.lang.String message, ISFSObject params, java.util.Collection<ISession> recipients)Sends a administrator message to a number of Users.voidISFSApi. sendBuddyMessage(User sender, User recipient, java.lang.String message, ISFSObject params)voidISFSBuddyApi. sendBuddyMessage(User sender, User recipient, java.lang.String message, ISFSObject params)Send a Buddy Message to any Buddy in your list.voidSFSApi. sendBuddyMessage(User sender, User recipient, java.lang.String message, ISFSObject params)voidSFSBuddyApi. sendBuddyMessage(User sender, User recipient, java.lang.String message, ISFSObject params)Send a Buddy Message to any Buddy in your list.voidISFSApi. sendExtensionResponse(java.lang.String cmdName, ISFSObject params, User recipient, Room room, boolean useUDP)voidSFSApi. sendExtensionResponse(java.lang.String cmdName, ISFSObject params, User recipient, Room room, boolean useUDP)voidISFSApi. sendGenericMessage(com.smartfoxserver.v2.api.GenericMessageType type, User sender, int targetRoomId, java.lang.String message, ISFSObject params, java.util.Collection<ISession> recipients)voidSFSApi. sendGenericMessage(com.smartfoxserver.v2.api.GenericMessageType type, User sender, int targetRoomId, java.lang.String message, ISFSObject params, java.util.Collection<ISession> recipients)voidISFSGameApi. sendInvitation(User inviter, java.util.List<User> invitees, int expirySeconds, InvitationCallback callBackHandler, ISFSObject params)Send an Invitation to a User.
An Invitation can be sent for various purposes such as for joining a room/game, adding a friend to the Buddy List etc...voidSFSGameApi. sendInvitation(User inviter, java.util.List<User> invitees, int expirySeconds, InvitationCallback callBackHandler, ISFSObject params)Send an Invitation to a User.
An Invitation can be sent for various purposes such as for joining a room/game, adding a friend to the Buddy List etc...voidISFSGameApi. sendJoinRoomInvitation(Room target, User inviter, java.util.List<User> invitees, int expirySeconds)Invites Users / Players in an existing Room.voidISFSGameApi. sendJoinRoomInvitation(Room target, User inviter, java.util.List<User> invitees, int expirySeconds, boolean asSpect, boolean leaveLastJoinedRoom)Invites Users / Players in an existing Room.voidISFSGameApi. sendJoinRoomInvitation(Room target, User inviter, java.util.List<User> invitees, int expirySeconds, boolean asSpect, boolean leaveLastJoinedRoom, ISFSObject params)Invites Users / Players in an existing Room.voidSFSGameApi. sendJoinRoomInvitation(Room target, User inviter, java.util.List<User> invitees, int expirySeconds)Invites Users / Players in an existing Room.voidSFSGameApi. sendJoinRoomInvitation(Room target, User inviter, java.util.List<User> invitees, int expirySeconds, boolean asSpect, boolean leaveLastJoinedRoom)Invites Users / Players in an existing Room.voidSFSGameApi. sendJoinRoomInvitation(Room target, User inviter, java.util.List<User> invitees, int expirySeconds, boolean asSpect, boolean leaveLastJoinedRoom, ISFSObject params)Invites Users / Players in an existing Room.voidISFSApi. sendModeratorMessage(User sender, java.lang.String message, ISFSObject params, java.util.Collection<ISession> recipients)Sends a moderator message to a number of Users.voidSFSApi. sendModeratorMessage(User sender, java.lang.String message, ISFSObject params, java.util.Collection<ISession> recipients)Sends a moderator message to a number of Users.voidISFSApi. sendObjectMessage(Room targetRoom, User sender, ISFSObject message, java.util.Collection<User> recipients)Send an Object message.voidISFSMMOApi. sendObjectMessage(Room targetRoom, User sender, ISFSObject message, Vec3D aoi)Send an Object message based on a custom SFSObject that can contain any data.voidSFSApi. sendObjectMessage(Room targetRoom, User sender, ISFSObject message, java.util.Collection<User> recipients)Send an Object message.voidSFSMMOApi. sendObjectMessage(Room targetRoom, User sender, ISFSObject message, Vec3D aoi)Send an Object message based on a custom SFSObject that can contain any data.voidISFSApi. sendPrivateMessage(User sender, User recipient, java.lang.String message, ISFSObject params)Sends a private chat message.voidSFSApi. sendPrivateMessage(User sender, User recipient, java.lang.String message, ISFSObject params)Sends a private chat message.voidISFSApi. sendPublicMessage(Room targetRoom, User sender, java.lang.String message, ISFSObject params)Sends a public chat message.voidISFSMMOApi. sendPublicMessage(Room targetRoom, User sender, java.lang.String message, ISFSObject params, Vec3D aoi)Sends a public chat message.voidSFSApi. sendPublicMessage(Room targetRoom, User sender, java.lang.String message, ISFSObject params)Sends a public chat message.voidSFSMMOApi. sendPublicMessage(Room targetRoom, User sender, java.lang.String message, ISFSObject params, Vec3D aoi)Sends a public chat message.voidISFSBuddyApi. setBuddyVariables(User owner, java.util.List<BuddyVariable> buddyVariables, boolean fireClientEvent, boolean fireServerEvent)Set any number of BuddyVariables for the specified ownervoidSFSBuddyApi. setBuddyVariables(User owner, java.util.List<BuddyVariable> buddyVariables, boolean fireClientEvent, boolean fireServerEvent)Set any number of BuddyVariables for the specified ownervoidISFSApi. setRoomVariables(User user, Room targetRoom, java.util.List<RoomVariable> variables)Set Room Variables.voidISFSApi. setRoomVariables(User user, Room targetRoom, java.util.List<RoomVariable> variables, boolean fireClientEvent, boolean fireServerEvent, boolean overrideOwnership)Set Room Variables.voidSFSApi. setRoomVariables(User user, Room targetRoom, java.util.List<RoomVariable> variables)Set Room Variables.voidSFSApi. setRoomVariables(User user, Room targetRoom, java.util.List<RoomVariable> variables, boolean fireClientEvent, boolean fireServerEvent, boolean overrideOwnership)Set Room Variables.voidISFSMMOApi. setUserPosition(User user, Vec3D pos, Room targetRoom)Set the new User position inside an MMORoomvoidSFSMMOApi. setUserPosition(User user, Vec3D pos, Room targetRoom)Set the new User position inside an MMORoomvoidISFSApi. setUserVariables(User owner, java.util.List<UserVariable> variables)Set User Variables.voidISFSApi. setUserVariables(User owner, java.util.List<UserVariable> variables, boolean fireClientEvent, boolean fireServerEvent)Set User Variables.voidSFSApi. setUserVariables(User owner, java.util.List<UserVariable> variables)Set User Variables.voidSFSApi. setUserVariables(User owner, java.util.List<UserVariable> variables, boolean fireClientEvent, boolean fireServerEvent)Set User Variables.voidISFSApi. spectatorToPlayer(User user, Room targetRoom, boolean fireClientEvent, boolean fireServerEvent)Turns a spectator in a Game Room to a Player.voidSFSApi. spectatorToPlayer(User user, Room targetRoom, boolean fireClientEvent, boolean fireServerEvent)voidISFSApi. subscribeRoomGroup(User user, java.lang.String groupId)Subscribe User to a Room Group.voidSFSApi. subscribeRoomGroup(User user, java.lang.String groupId)Subscribe User to a Room Group.voidISFSApi. unsubscribeRoomGroup(User user, java.lang.String groupId)Unsubscribe User to a Room Group.voidSFSApi. unsubscribeRoomGroup(User user, java.lang.String groupId)Unsubscribe User to a Room Group.Method parameters in com.smartfoxserver.v2.api with type arguments of type User Modifier and Type Method Description java.util.List<User>ISFSApi. findUsers(java.util.Collection<User> userList, MatchExpression expression, int limit)Find one or more User(s) in the specified collection of Users.java.util.List<User>SFSApi. findUsers(java.util.Collection<User> userList, MatchExpression expression, int limit)Find one or more User(s) in the specified collection of Users.voidISFSApi. sendExtensionResponse(java.lang.String cmdName, ISFSObject params, java.util.List<User> recipients, Room room, boolean useUDP)voidSFSApi. sendExtensionResponse(java.lang.String cmdName, ISFSObject params, java.util.List<User> recipients, Room room, boolean useUDP)voidISFSGameApi. sendInvitation(User inviter, java.util.List<User> invitees, int expirySeconds, InvitationCallback callBackHandler, ISFSObject params)Send an Invitation to a User.
An Invitation can be sent for various purposes such as for joining a room/game, adding a friend to the Buddy List etc...voidSFSGameApi. sendInvitation(User inviter, java.util.List<User> invitees, int expirySeconds, InvitationCallback callBackHandler, ISFSObject params)Send an Invitation to a User.
An Invitation can be sent for various purposes such as for joining a room/game, adding a friend to the Buddy List etc...voidISFSGameApi. sendJoinRoomInvitation(Room target, User inviter, java.util.List<User> invitees, int expirySeconds)Invites Users / Players in an existing Room.voidISFSGameApi. sendJoinRoomInvitation(Room target, User inviter, java.util.List<User> invitees, int expirySeconds, boolean asSpect, boolean leaveLastJoinedRoom)Invites Users / Players in an existing Room.voidISFSGameApi. sendJoinRoomInvitation(Room target, User inviter, java.util.List<User> invitees, int expirySeconds, boolean asSpect, boolean leaveLastJoinedRoom, ISFSObject params)Invites Users / Players in an existing Room.voidSFSGameApi. sendJoinRoomInvitation(Room target, User inviter, java.util.List<User> invitees, int expirySeconds)Invites Users / Players in an existing Room.voidSFSGameApi. sendJoinRoomInvitation(Room target, User inviter, java.util.List<User> invitees, int expirySeconds, boolean asSpect, boolean leaveLastJoinedRoom)Invites Users / Players in an existing Room.voidSFSGameApi. sendJoinRoomInvitation(Room target, User inviter, java.util.List<User> invitees, int expirySeconds, boolean asSpect, boolean leaveLastJoinedRoom, ISFSObject params)Invites Users / Players in an existing Room.voidISFSApi. sendObjectMessage(Room targetRoom, User sender, ISFSObject message, java.util.Collection<User> recipients)Send an Object message.voidSFSApi. sendObjectMessage(Room targetRoom, User sender, ISFSObject message, java.util.Collection<User> recipients)Send an Object message. -
Uses of User in com.smartfoxserver.v2.buddylist
Methods in com.smartfoxserver.v2.buddylist that return User Modifier and Type Method Description UserBuddyList. getOwner()Get the User that owns this BuddyListUserSFSBuddyList. getOwner()Methods in com.smartfoxserver.v2.buddylist with parameters of type User Modifier and Type Method Description static java.util.List<java.lang.String>BuddyUtils. filterNonMutualRecipients(User sender, java.util.List<java.lang.String> recipientNames) -
Uses of User in com.smartfoxserver.v2.components.signup
Methods in com.smartfoxserver.v2.components.signup with parameters of type User Modifier and Type Method Description voidISignUpAssistantPlugin. execute(User user, ISFSObject params, SignUpConfiguration config)Handles the execution of the plugin logicjava.lang.String[]IPasswordManager. generateRandom(User user)voidSignUpAssistantComponent. handleClientRequest(User sender, ISFSObject params)ISFSObjectCustomFieldPasswordRecovery. recover(SignUpAssistantComponent suac, User user, ISFSObject params)ISFSObjectIPasswordRecovery. recover(SignUpAssistantComponent suac, User user, ISFSObject params)ISFSObjectLegacyPasswordRecovery. recover(SignUpAssistantComponent suac, User user, ISFSObject params) -
Uses of User in com.smartfoxserver.v2.controllers.filter
Methods in com.smartfoxserver.v2.controllers.filter with parameters of type User Modifier and Type Method Description FilterActionISystemFilter. handleClientRequest(User sender, ISFSObject params)Handles a client requestFilterActionReadOnlyUserVariablesFilter. handleClientRequest(User sender, ISFSObject params)FilterActionISystemFilterChain. runRequest(User sender, ISFSObject params)FilterActionSysControllerFilterChain. runRequest(User sender, ISFSObject params) -
Uses of User in com.smartfoxserver.v2.entities
Classes in com.smartfoxserver.v2.entities that implement User Modifier and Type Class Description classSFSUserOverviewMethods in com.smartfoxserver.v2.entities that return User Modifier and Type Method Description UserLoggable. doLogin(LoginData ld)UserRoom. getOwner()Get the owner of the Room (the user that created it)UserSFSRoom. getOwner()Get the owner of the Room (the user that created it)UserRoom. getUserById(int id)UserSFSRoom. getUserById(int id)UserSFSZone. getUserById(int id)Get a User from its unique IDUserZone. getUserById(int id)Get a User from its unique IDUserRoom. getUserByName(java.lang.String name)UserSFSRoom. getUserByName(java.lang.String name)UserSFSZone. getUserByName(java.lang.String name)Get a User from its nameUserZone. getUserByName(java.lang.String name)Get a User from its nameUserRoom. getUserByPlayerId(int playerId)Get the User currently having the specified playerId (Game Room only)UserSFSRoom. getUserByPlayerId(int playerId)Get the User currently having the specified playerId (Game Room only)UserRoom. getUserBySession(ISession session)UserSFSRoom. getUserBySession(ISession session)UserSFSZone. getUserBySession(ISession session)Get a User from its Session objectUserZone. getUserBySession(ISession session)Get a User from its Session objectUserSFSZone. login(LoginData loginData)INTERNALUserZone. login(LoginData loginData)INTERNALMethods in com.smartfoxserver.v2.entities that return types with arguments of type User Modifier and Type Method Description java.util.List<User>SFSUser. getLastProxyList()java.util.List<User>User. getLastProxyList()java.util.List<User>Room. getPlayersList()For Game Rooms: get all Players in the Room (same as all User without the Spectators)java.util.List<User>SFSRoom. getPlayersList()For Game Rooms: get all Players in the Room (same as all User without the Spectators)java.util.List<User>Room. getSpectatorsList()For Game Rooms: get all Spectators in the Room (same as all User without the Players)java.util.List<User>SFSRoom. getSpectatorsList()For Game Rooms: get all Spectators in the Room (same as all User without the Players)java.util.List<User>Room. getUserList()Get all Users in the Roomjava.util.List<User>SFSRoom. getUserList()Get all Users in the Roomjava.util.Collection<User>SFSZone. getUserList()Get the list of Users logged in the Zonejava.util.Collection<User>Zone. getUserList()Get the list of Users logged in the Zonejava.util.Collection<User>SFSZone. getUsersInGroup(java.lang.String groupId)Get a list of Users from all Rooms in the provided Room Groupjava.util.Collection<User>Zone. getUsersInGroup(java.lang.String groupId)Get a list of Users from all Rooms in the provided Room GroupMethods in com.smartfoxserver.v2.entities with parameters of type User Modifier and Type Method Description voidRoom. addUser(User user)voidRoom. addUser(User user, boolean asSpectator)voidSFSRoom. addUser(User user)voidSFSRoom. addUser(User user, boolean asSpectator)booleanRoom. containsUser(User user)Checks if the specified User is joined in the RoombooleanSFSRoom. containsUser(User user)Checks if the specified User is joined in the RoomRoomSFSZone. createRoom(CreateRoomSettings params, User user)Use theSFSApi.createRoom(Zone, CreateRoomSettings, User)method insteadRoomZone. createRoom(CreateRoomSettings params, User user)voidILoginFinalizer. doFinalize(User user)voidLoginFinalizer. doFinalize(User user)java.util.List<RoomVariable>Room. getVariablesCreatedByUser(User user)Get a list of Room Variables created by a specific Userjava.util.List<RoomVariable>SFSRoom. getVariablesCreatedByUser(User user)Get a list of Room Variables created by a specific UservoidRoom. removeUser(User user)voidSFSRoom. removeUser(User user)voidSFSZone. removeUser(User user)INTERNALvoidZone. removeUser(User user)INTERNALvoidSFSZone. removeUserFromRoom(User user, Room room)voidZone. removeUserFromRoom(User user, Room room)INTERNALjava.util.List<RoomVariable>Room. removeVariablesCreatedByUser(User user)java.util.List<RoomVariable>Room. removeVariablesCreatedByUser(User user, boolean isLeaveRoom)java.util.List<RoomVariable>SFSRoom. removeVariablesCreatedByUser(User user)java.util.List<RoomVariable>SFSRoom. removeVariablesCreatedByUser(User user, boolean isLeaveRoom)voidRoom. setOwner(User user)voidSFSRoom. setOwner(User owner)voidRoom. switchPlayerToSpectator(User user)voidSFSRoom. switchPlayerToSpectator(User user)voidRoom. switchSpectatorToPlayer(User user)voidSFSRoom. switchSpectatorToPlayer(User user)Method parameters in com.smartfoxserver.v2.entities with type arguments of type User Modifier and Type Method Description voidSFSUser. setLastProxyList(java.util.List<User> proxyList)voidUser. setLastProxyList(java.util.List<User> proxyList)Constructors in com.smartfoxserver.v2.entities with parameters of type User Constructor Description SFSBannedUser(User user, int durationMinutes, BanMode mode)SFSBannedUser(User user, int durationMinutes, BanMode mode, java.lang.String reason, java.lang.String adminName) -
Uses of User in com.smartfoxserver.v2.entities.invitation
Fields in com.smartfoxserver.v2.entities.invitation with type parameters of type User Modifier and Type Field Description protected java.util.Map<User,java.util.List<Invitation>>SFSInvitationManager. invitationsByOwnerMethods in com.smartfoxserver.v2.entities.invitation that return User Modifier and Type Method Description UserInvitation. getInvitee()Get the Invitee, the user that receives the invitationUserSFSInvitation. getInvitee()UserInvitation. getInviter()Get the Inviter, the user that started this invitationUserSFSInvitation. getInviter()Constructors in com.smartfoxserver.v2.entities.invitation with parameters of type User Constructor Description SFSInvitation(User inviter, User invitee, int secondsForAnswer)SFSInvitation(User inviter, User invitee, int secondsForAnswer, ISFSObject params) -
Uses of User in com.smartfoxserver.v2.entities.managers
Methods in com.smartfoxserver.v2.entities.managers with parameters of type User Modifier and Type Method Description voidSFSBannedUserManager. banUser(User userToBan, User modUser, int durationMinutes, BanMode mode, java.lang.String reason, java.lang.String banMessage, int delaySeconds)voidSFSBannedUserManager. kickUser(User userToKick, User modUser, java.lang.String kickMessage, int delaySeconds)voidSFSBannedUserManager. kickUser(User userToKick, User modUser, java.lang.String kickMessage, int delaySeconds, boolean isBan)voidSFSBannedUserManager. sendWarningMessage(User recipient, User senderMod, java.lang.String message) -
Uses of User in com.smartfoxserver.v2.entities.match
Methods in com.smartfoxserver.v2.entities.match that return types with arguments of type User Modifier and Type Method Description java.util.List<User>MatchingUtils. matchUsers(java.util.Collection<User> userList, MatchExpression conditions)java.util.List<User>MatchingUtils. matchUsers(java.util.Collection<User> userList, MatchExpression conditions, int limit)Methods in com.smartfoxserver.v2.entities.match with parameters of type User Modifier and Type Method Description booleanMatchingUtils. matchUser(User user, MatchExpression conditions)Method parameters in com.smartfoxserver.v2.entities.match with type arguments of type User Modifier and Type Method Description java.util.List<User>MatchingUtils. matchUsers(java.util.Collection<User> userList, MatchExpression conditions)java.util.List<User>MatchingUtils. matchUsers(java.util.Collection<User> userList, MatchExpression conditions, int limit) -
Uses of User in com.smartfoxserver.v2.entities.variables
Methods in com.smartfoxserver.v2.entities.variables that return User Modifier and Type Method Description UserRoomVariable. getOwner()Return the User that created the variable.UserSFSRoomVariable. getOwner()Return the User that created the variable.Methods in com.smartfoxserver.v2.entities.variables with parameters of type User Modifier and Type Method Description voidRoomVariable. setOwner(User user)Sets the creator of a variable.voidSFSRoomVariable. setOwner(User user)Sets the creator of a variable. -
Uses of User in com.smartfoxserver.v2.extensions
Methods in com.smartfoxserver.v2.extensions with parameters of type User Modifier and Type Method Description voidIClientRequestHandler. handleClientRequest(User sender, ISFSObject params)Handle a client requestvoidISFSExtension. handleClientRequest(java.lang.String cmdName, User sender, ISFSObject params)This method is called whenever a client sends a request to this ExtensionvoidSFSExtension. handleClientRequest(java.lang.String requestId, User sender, ISFSObject params)This method is called whenever a client sends a request to this Extensionprotected voidBaseClientRequestHandler. send(java.lang.String cmdName, ISFSObject params, User recipient)Send a response back to a Userprotected voidBaseClientRequestHandler. send(java.lang.String cmdName, ISFSObject params, User recipient, boolean useUDP)Send a response back to a Userprotected voidBaseServerEventHandler. send(java.lang.String cmdName, ISFSObject params, User recipient)Send a response back to a Userprotected voidBaseServerEventHandler. send(java.lang.String cmdName, ISFSObject params, User recipient, boolean useUDP)Send a response back to a UservoidBaseSFSExtension. send(java.lang.String cmdName, ISFSObject params, User recipient)voidBaseSFSExtension. send(java.lang.String cmdName, ISFSObject params, User recipient, boolean useUDP)voidISFSExtension. send(java.lang.String cmdName, ISFSObject params, User recipient)voidISFSExtension. send(java.lang.String cmdName, ISFSObject params, User recipient, boolean useUDP)Send an extension message/response to a single UserMethod parameters in com.smartfoxserver.v2.extensions with type arguments of type User Modifier and Type Method Description protected voidBaseClientRequestHandler. send(java.lang.String cmdName, ISFSObject params, java.util.List<User> recipients)Broadcast a response back to multiple Usersprotected voidBaseClientRequestHandler. send(java.lang.String cmdName, ISFSObject params, java.util.List<User> recipients, boolean useUDP)Broadcast a response back to multiple Usersprotected voidBaseServerEventHandler. send(java.lang.String cmdName, ISFSObject params, java.util.List<User> recipients)Broadcast a response back to multiple Usersprotected voidBaseServerEventHandler. send(java.lang.String cmdName, ISFSObject params, java.util.List<User> recipients, boolean useUDP)Broadcast a response back to multiple UsersvoidBaseSFSExtension. send(java.lang.String cmdName, ISFSObject params, java.util.List<User> recipients)voidBaseSFSExtension. send(java.lang.String cmdName, ISFSObject params, java.util.List<User> recipients, boolean useUDP)Send an extension message/response to a list of recipientsvoidISFSExtension. send(java.lang.String cmdName, ISFSObject params, java.util.List<User> recipients)voidISFSExtension. send(java.lang.String cmdName, ISFSObject params, java.util.List<User> recipients, boolean useUDP)Send an extension message/response to a list of recipients -
Uses of User in com.smartfoxserver.v2.extensions.filter
Methods in com.smartfoxserver.v2.extensions.filter with parameters of type User Modifier and Type Method Description FilterActionIFilter. handleClientRequest(java.lang.String requestId, User sender, ISFSObject params)Handles a client requestFilterActionIFilterChain. runRequestInChain(java.lang.String requestId, User sender, ISFSObject params)FilterActionSFSExtensionFilterChain. runRequestInChain(java.lang.String requestId, User sender, ISFSObject params) -
Uses of User in com.smartfoxserver.v2.game
Methods in com.smartfoxserver.v2.game that return types with arguments of type User Modifier and Type Method Description java.util.List<User>CreateSFSGameSettings. getInvitedPlayers()For private games only: A list of players invited to play in the Game.Methods in com.smartfoxserver.v2.game with parameters of type User Modifier and Type Method Description voidSFSGame. addUser(User user, boolean asSpectator)voidSFSGame. removeUser(User user)voidSFSGame. switchPlayerToSpectator(User user)voidSFSGame. switchSpectatorToPlayer(User user)Method parameters in com.smartfoxserver.v2.game with type arguments of type User Modifier and Type Method Description voidCreateSFSGameSettings. setInvitedPlayers(java.util.List<User> invitedPlayers)Set a list of people invited to play a private Game -
Uses of User in com.smartfoxserver.v2.mmo
Methods in com.smartfoxserver.v2.mmo that return User Modifier and Type Method Description UserMMORoom. getUserByPlayerId(int playerId)Methods in com.smartfoxserver.v2.mmo that return types with arguments of type User Modifier and Type Method Description java.util.List<User>MMORoom. getPlayersList()java.util.List<User>MMORoom. getProximityList(User target)Returns the List of Users falling within the target's AOIjava.util.List<User>MMORoom. getProximityList(User target, Vec3D aoi)Returns the List of Users falling within the a custom AOI around the targetjava.util.List<User>MMORoom. getProximityList(Vec3D position)Returns the List of Users falling within the AOI of the target positionjava.util.List<User>MMORoom. getProximityList(Vec3D position, Vec3D aoi)Returns the List of Users falling within the custom AOI around the target positionjava.util.List<User>MMORoom.PreviousMMORoomState. getProxyList()java.util.List<User>MMORoom. getSpectatorsList()Methods in com.smartfoxserver.v2.mmo with parameters of type User Modifier and Type Method Description voidMMORoom. addUser(User user, boolean asSpectator)privatecom.smartfoxserver.v2.mmo.P3DMMORoom. findUserLocation(User user)privatejava.util.List<BaseMMOItem>MMORoom. getProximityItems(User target)Get the list of MMOItems falling within the User's AoIjava.util.List<BaseMMOItem>MMORoom. getProximityItems(User target, Vec3D aoi)Get the list of MMOItems falling within a custom AoIjava.util.List<User>MMORoom. getProximityList(User target)Returns the List of Users falling within the target's AOIjava.util.List<User>MMORoom. getProximityList(User target, Vec3D aoi)Returns the List of Users falling within the a custom AOI around the targetvoidMMORoom. removeUser(User user)privatevoidMMORoom. updateUser(User user)privateConstructor parameters in com.smartfoxserver.v2.mmo with type arguments of type User Constructor Description PreviousMMORoomState(int roomId, java.util.List<User> proxyList) -
Uses of User in com.smartfoxserver.v2.security
Methods in com.smartfoxserver.v2.security with parameters of type User Modifier and Type Method Description booleanPrivilegeManager. isFlagSet(User user, SystemPermission permission)booleanSFSPrivilegeManager. isFlagSet(User user, SystemPermission permission)booleanPrivilegeManager. isRequestAllowed(User user, SystemRequest request)booleanSFSPrivilegeManager. isRequestAllowed(User user, SystemRequest request) -
Uses of User in com.smartfoxserver.v2.util
Methods in com.smartfoxserver.v2.util that return User Modifier and Type Method Description static UserUsersUtil. getServerAdmin()static UserUsersUtil. getServerModerator()Methods in com.smartfoxserver.v2.util with parameters of type User Modifier and Type Method Description com.smartfoxserver.v2.util.filters.FilteredMessageIWordFilter. apply(java.lang.String message, User user)com.smartfoxserver.v2.util.filters.FilteredMessageSFSWordFilter. apply(java.lang.String message, User user)Applies the filter to a message/string of a User.voidIFloodFilter. filterRequest(T reqType, User user)voidSFSFloodFilter. filterRequest(SystemRequest reqType, User user)static booleanUsersUtil. isAllowedToPerformNewSearch(User user)static booleanUsersUtil. usersSeeEachOthers(User sender, User recipient)
-