Implementing new function in all classes implementing Player

This commit is contained in:
Tyler Moore 2018-10-04 14:16:52 -07:00
parent c5cedc2aba
commit 4057cc2859
4 changed files with 9 additions and 3 deletions

View file

@ -2478,7 +2478,7 @@ public abstract class PlayerImpl implements Player, Serializable {
}
@Override
public boolean lookAtAllLibraries(Ability source, Game game) {
public void lookAtAllLibraries(Ability source, Game game) {
for(UUID playerId : game.getState().getPlayersInRange(this.getId(), game)){
Player player = game.getPlayer(playerId);
String playerName = this.getName().equals(player.getName()) ? "Your " : player.getName() + "'s ";
@ -2486,7 +2486,6 @@ public abstract class PlayerImpl implements Player, Serializable {
Cards cardsInLibrary = new CardsImpl(player.getLibrary().getTopCards(game, player.getLibrary().size()));
lookAtCards(playerName, cardsInLibrary, game);
}
return true;
}
private boolean handleLibraryCastableCards(Library library, Game game, UUID targetPlayerId) {