Uses of Class
com.smartfoxserver.v2.entities.match.MatchExpression
-
Packages that use MatchExpression Package Description com.smartfoxserver.v2.api com.smartfoxserver.v2.entities.match com.smartfoxserver.v2.game -
-
Uses of MatchExpression in com.smartfoxserver.v2.api
Methods in com.smartfoxserver.v2.api with parameters of type MatchExpression Modifier and Type Method Description java.util.List<Room>ISFSApi. findRooms(java.util.Collection<Room> roomList, MatchExpression expression, int limit)Find one or more Room(s) in the specified collection of Users.java.util.List<Room>SFSApi. findRooms(java.util.Collection<Room> roomList, MatchExpression expression, int limit)Find one or more Room(s) in the specified collection of Users.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.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. -
Uses of MatchExpression in com.smartfoxserver.v2.entities.match
Methods in com.smartfoxserver.v2.entities.match that return MatchExpression Modifier and Type Method Description MatchExpressionMatchExpression. and(java.lang.String varName, com.smartfoxserver.v2.entities.match.IMatcher condition, java.lang.Object value)Concatenates two expressions with the logical AND operator.static MatchExpressionMatchExpression. fromSFSArray(ISFSArray sfsa)MatchExpressionMatchExpression. next()Get the next expression chained to the current one.MatchExpressionMatchExpression. or(java.lang.String varName, com.smartfoxserver.v2.entities.match.IMatcher condition, java.lang.Object value)Concatenates two expressions with the logical OR operator.MatchExpressionMatchExpression. rewind()Rewinds the cursor to the first expression in the chain and return the MatchExpression at the top of the chain of expressionsMethods in com.smartfoxserver.v2.entities.match with parameters of type MatchExpression Modifier and Type Method Description booleanMatchingUtils. matchRoom(Room room, MatchExpression conditions)java.util.List<Room>MatchingUtils. matchRooms(java.util.Collection<Room> roomList, MatchExpression conditions)java.util.List<Room>MatchingUtils. matchRooms(java.util.Collection<Room> roomList, MatchExpression conditions, int limit)booleanMatchingUtils. matchUser(User user, MatchExpression conditions)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 MatchExpression in com.smartfoxserver.v2.game
Methods in com.smartfoxserver.v2.game that return MatchExpression Modifier and Type Method Description MatchExpressionCreateSFSGameSettings. getPlayerMatchExpression()A match expression to filter Players willing to join the Game.MatchExpressionSFSGame. getPlayerMatchExpression()Get the MatchExpression that is going to be checked against any Player joining this Room.
By default this is null and no matching is performed.MatchExpressionCreateSFSGameSettings. getSpectatorMatchExpression()A match expression to filter Spectators willing to join the Game.MatchExpressionSFSGame. getSpectatorMatchExpression()Get the MatchExpression that is going to be checked against any Spectator joining this Room.
By default this is null and no matching is performed.Methods in com.smartfoxserver.v2.game with parameters of type MatchExpression Modifier and Type Method Description voidCreateSFSGameSettings. setPlayerMatchExpression(MatchExpression playerMatchExpression)A match expression to filter Players willing to join the Game.voidSFSGame. setPlayerMatchExpression(MatchExpression exp)This is not modifiable at runtime.
The MatchExpression should be specified in the CreateGameSettingsvoidCreateSFSGameSettings. setSpectatorMatchExpression(MatchExpression spectatorMatchExpression)A match expression to filter Spectators willing to join the Game.voidSFSGame. setSpectatorMatchExpression(MatchExpression spectatorMatchExpression)This is not modifiable at runtime.
The parameter should be specified in the CreateGameSettings
-