Interface MatchServiceUtils
- All Known Implementing Classes:
StandardMatchServiceUtils
public interface MatchServiceUtils
A type that assists the services classes in paring players. This performs the action of attempting to pair two
players and then signal other players who may be waiting for a response.
-
Method Summary
Modifier and TypeMethodDescriptionattempt(Matchmaker matchmaker, Match match, MatchmakingApplicationConfiguration configuration) Attempts to create a pairing between two players, using the suppliedMatchmakerredactOpponentUser(Match match) Redacts any private information for the opponent user so an opponent may not see the personal details of an opponentUser.
-
Method Details
-
attempt
Match attempt(Matchmaker matchmaker, Match match, MatchmakingApplicationConfiguration configuration) Attempts to create a pairing between two players, using the suppliedMatchmaker- Parameters:
matchmaker- theMatchmakerto usematch- the originating player match.configuration- theMatchmakingApplicationConfigurationto use when finalizing the match- Returns:
- the
Matchafter the attempt has been made to pair it.
-
redactOpponentUser
Redacts any private information for the opponent user so an opponent may not see the personal details of an opponentUser.
-