Uses of Class
org.swtpra1.amazongame.Player
-
Packages that use Player Package Description org.swtpra1 Namespace for all java classes for the group "swtpra1" of the "Softwaretechnikpraktikum WS20/21" at the Universität Paderborn.org.swtpra1.amazongame Classes used to model the execution of the game of the amazons according to the api. -
-
Uses of Player in org.swtpra1
Methods in org.swtpra1 that return Player Modifier and Type Method Description Player
Leaderboard.LeaderboardEntry. getPlayer()
Player
DoubleRoundRobinTournament. getPlayerById(int id)
Return the locally saved player object with the given absolute id if it exists.Methods in org.swtpra1 that return types with arguments of type Player Modifier and Type Method Description java.util.Map<Player,java.lang.Integer>
DoubleRoundRobinTournament. getLeaderboard()
Gets a mapping Player -> #wins sorted in descending order.static java.util.SortedMap<java.lang.Integer,Player>
GameserverMain. getPlayerMap()
java.util.List<Player>
DoubleRoundRobinTournament. getPlayers()
Methods in org.swtpra1 with parameters of type Player Modifier and Type Method Description static boolean
GameserverMain. checkIfPlayerExists(Player player)
Checks if player exists in playerMap before new game is created.Constructors in org.swtpra1 with parameters of type Player Constructor Description LeaderboardEntry(Player player)
New leaderboard entries for a player have 0 games played and 0 wins/losses.Constructor parameters in org.swtpra1 with type arguments of type Player Constructor Description DoubleRoundRobinTournament(java.util.List<Player> players, long maxTurnTime)
Constructs a new tournament using the current time as a filename. -
Uses of Player in org.swtpra1.amazongame
Methods in org.swtpra1.amazongame that return Player Modifier and Type Method Description Player
Turn. getPlayer()
Player
Game. getPlayerById(int playerId)
Returns the Player object corresponding to the given id if the Player is playing in this game.Player[]
Game. getPlayers()
Methods in org.swtpra1.amazongame with parameters of type Player Modifier and Type Method Description int
Game. getRelativePlayerId(Player player)
Takes a player object and returns the relative id in this game.void
Board. move(Square start, Square end, Player player)
Frees the source square and takes the target square and marks it with player id.Constructors in org.swtpra1.amazongame with parameters of type Player Constructor Description Game(int gameId, Player[] players, int rows, int columns, long maxTurnTime)
Represents a single instance of the "Game of the Amazons" between players.Game(int gameId, Player[] players, Board initialBoard, long maxTurnTime)
Represents a single instance of the "Game of the Amazons" between players.Turn(int startRow, int startColumn, int endRow, int endColumn, int shotRow, int shotColumn, Player player)
A convenience wrapper to construct a turn with coodinates.Turn(Square moveStart, Square moveEnd, Square shot, Player player)
Constructs a turn from one Square to another Square.
-