public interface Match
The Match interface represents a game match or session, containing methods to access various
information about the match, its players, and its current phase.
-
Method Summary
Retrieves a set of players who are currently connected to the match (teams invalid input: '&' guests).
Retrieves the current phase of the match.
Retrieves the current state of the match, derived from its current phase.
Retrieves a set of players who are currently alive in the match.
Retrieves a set of players who are currently connected to the match.
Retrieves a set of all players participating in the match.
-
Method Details
-
getPhase
Retrieves the current phase of the match.
- Returns:
- The current phase of the match, indicating its state or stage.
-
getTeamsPlayers
Retrieves a set of all players participating in the match.
- Returns:
- A set containing instances of MatchPlayer representing all players in the match.
-
getConnectedPlayers
Retrieves a set of players who are currently connected to the match (teams invalid input: '&' guests).
- Returns:
- A set containing instances of MatchPlayer representing connected players.
-
getTeamsConnectedPlayers
Retrieves a set of players who are currently connected to the match.
- Returns:
- A set containing instances of MatchPlayer representing connected players.
-
getTeamsAlivePlayers
Retrieves a set of players who are currently alive in the match.
- Returns:
- A set containing instances of MatchPlayer representing players who are alive.
-
getState
Retrieves the current state of the match, derived from its current phase. This method
provides a convenient way to access the state directly from the phase.
- Returns:
- The state of the match, inferred from its current phase.