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.Room
ISFSGameApi. quickJoinGame(User player, MatchExpression expression, Zone zone, java.lang.String groupId)
Quick join a User in an SFSGame.Room
ISFSGameApi. quickJoinGame(User player, MatchExpression expression, Zone zone, java.lang.String groupId, Room roomToLeave)
Quick join a User in an SFSGame.Room
ISFSGameApi. quickJoinGame(User player, MatchExpression expression, java.util.Collection<Room> searchableRooms, Room roomToLeave)
Quick join a User in an SFSGame.Room
SFSGameApi. quickJoinGame(User player, MatchExpression expression, Zone zone, java.lang.String groupId)
Quick join a User in an SFSGame.Room
SFSGameApi. quickJoinGame(User player, MatchExpression expression, Zone zone, java.lang.String groupId, Room roomToLeave)
Quick join a User in an SFSGame.Room
SFSGameApi. quickJoinGame(User player, MatchExpression expression, java.util.Collection<Room> searchableRooms, Room roomToLeave)
Quick join a User in an SFSGame.void
ISFSApi. 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.void
ISFSApi. 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.void
SFSApi. 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.void
SFSApi. 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 MatchExpression
MatchExpression. 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 MatchExpression
MatchExpression. fromSFSArray(ISFSArray sfsa)
MatchExpression
MatchExpression. next()
Get the next expression chained to the current one.MatchExpression
MatchExpression. or(java.lang.String varName, com.smartfoxserver.v2.entities.match.IMatcher condition, java.lang.Object value)
Concatenates two expressions with the logical OR operator.MatchExpression
MatchExpression. 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 boolean
MatchingUtils. 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)
boolean
MatchingUtils. 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 MatchExpression
CreateSFSGameSettings. getPlayerMatchExpression()
A match expression to filter Players willing to join the Game.MatchExpression
SFSGame. 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.MatchExpression
CreateSFSGameSettings. getSpectatorMatchExpression()
A match expression to filter Spectators willing to join the Game.MatchExpression
SFSGame. 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 void
CreateSFSGameSettings. setPlayerMatchExpression(MatchExpression playerMatchExpression)
A match expression to filter Players willing to join the Game.void
SFSGame. setPlayerMatchExpression(MatchExpression exp)
This is not modifiable at runtime.
The MatchExpression should be specified in the CreateGameSettingsvoid
CreateSFSGameSettings. setSpectatorMatchExpression(MatchExpression spectatorMatchExpression)
A match expression to filter Spectators willing to join the Game.void
SFSGame. setSpectatorMatchExpression(MatchExpression spectatorMatchExpression)
This is not modifiable at runtime.
The parameter should be specified in the CreateGameSettings
-