MCPcopy Create free account
hub / github.com/Card-Forge/forge / getNextPlayerAfter

Method getNextPlayerAfter

forge-game/src/main/java/forge/game/Game.java:803–805  ·  view source on GitHub ↗

Get the player whose turn it is after a given player's turn, taking turn order into account. @param playerTurn a Player, or null. @return A Player, whose turn comes after the current player, or null if there are no players in the game.

(final Player playerTurn)

Source from the content-addressed store, hash-verified

801 * {@code null} if there are no players in the game.
802 */
803 public Player getNextPlayerAfter(final Player playerTurn) {
804 return getNextPlayerAfter(playerTurn, getTurnOrder());
805 }
806
807 /**
808 * Get the player whose turn it is after a given player's turn, taking turn

Callers 15

onPlayerLostMethod · 0.95
getDefinedPlayersMethod · 0.95
resolveMethod · 0.95
resolveMethod · 0.95
canPlayMethod · 0.95
checkApiLogicMethod · 0.95
runOpeningHandActionsMethod · 0.80
takeInitiativeMethod · 0.80

Calls 6

getTurnOrderMethod · 0.95
getShiftMethod · 0.80
indexOfMethod · 0.65
isEmptyMethod · 0.65
sizeMethod · 0.65
getMethod · 0.65

Tested by

no test coverage detected