Uses of Class
edu.ntnu.idatt1002.k2g05.models.Player
Packages that use Player
Package
Description
-
Uses of Player in edu.ntnu.idatt1002.k2g05.controllers.opentournament.utils
Methods in edu.ntnu.idatt1002.k2g05.controllers.opentournament.utils that return PlayerModifier and TypeMethodDescriptionPlayerPair.p1()
Returns the value of thep1
record component.PlayerPair.p2()
Returns the value of thep2
record component.Methods in edu.ntnu.idatt1002.k2g05.controllers.opentournament.utils with parameters of type PlayerModifier and TypeMethodDescriptionboolean
MatchColumn.containsPlayer
(Player player) Check if a player is in a Match Columnboolean
PlayerPair.containsPlayer
(Player player) Checks if a Player pair contains a given player.MatchPair.getMatchByPlayer
(Player player) Method for getting a match given the one of the players in the pair, one should check if the player is in the list before doing this.Constructors in edu.ntnu.idatt1002.k2g05.controllers.opentournament.utils with parameters of type PlayerModifierConstructorDescriptionPlayerPair
(Player p1, Player p2) Creates an instance of aPlayerPair
record class. -
Uses of Player in edu.ntnu.idatt1002.k2g05.debug
Methods in edu.ntnu.idatt1002.k2g05.debug that return PlayerModifier and TypeMethodDescriptionstatic Player
DebugData.getTestPlayer()
Method for calling a new test player to be used in test classes -
Uses of Player in edu.ntnu.idatt1002.k2g05.factories
Method parameters in edu.ntnu.idatt1002.k2g05.factories with type arguments of type PlayerModifier and TypeMethodDescriptionstatic void
RoundCollectionFactory.fillQualificationCollection
(RoundCollection collection, List<Player> players) Method for filling a given qualification collection with playersstatic RoundCollection
RoundCollectionFactory.getAndFillQualificationRoundCollection
(String name, List<Player> players) Method for getting and filling a qualification round collection given a nam eof the round collection and the players that is going to play in the qualificatiostatic void
RoundCollectionFactory.updateGroupStageCollectionWithSnakeFill
(RoundCollection collection, List<Player> players, int playersPerRound) Method for filling in a group stage collection with snake fill given the players that are going to be filled in the collection Snake fill looks like with 16 players with 4 per round this: (where number is position after qualification) |A |B |C |D | |1 |2 |3 |4 | |8 |7 |6 |5 | |9 |10|11|12| |16|15|14|13| -
Uses of Player in edu.ntnu.idatt1002.k2g05.models
Methods in edu.ntnu.idatt1002.k2g05.models that return types with arguments of type PlayerModifier and TypeMethodDescriptionTournament.getAllPlayers()
Gets all the players in the tournament.Tournament.getPlayersBySearch
(String search, int threshold) Method for returning a list over results given a search query by name.Methods in edu.ntnu.idatt1002.k2g05.models with parameters of type PlayerModifier and TypeMethodDescriptionvoid
Method for adding players to the tournament.boolean
Tournament.removePlayer
(Player player) Method for removing a given player from the torunament -
Uses of Player in edu.ntnu.idatt1002.k2g05.models.games
Methods in edu.ntnu.idatt1002.k2g05.models.games that return PlayerModifier and TypeMethodDescriptionMatch.getOpponent()
Game.getPlayer()
Gets the player that has played the game.MatchGame.getPlayer()
Constructors in edu.ntnu.idatt1002.k2g05.models.games with parameters of type PlayerModifierConstructorDescriptionConstructor for creating an instance of a Game.Constructor for creating an instance of a Game.Sets scores to be -1 which means they have not been played yetConstructor for creating an instance for a match between two playersConstructor for creating an instance of the game, given the player that plays it. -
Uses of Player in edu.ntnu.idatt1002.k2g05.models.rounds
Methods in edu.ntnu.idatt1002.k2g05.models.rounds with parameters of type PlayerModifier and TypeMethodDescriptionQualificationRound.getGameByPlayer
(Player player) Method for getting a Game given the player that has played it.