[ELD] Fix Once and Future. Remove unused Player.putInHand method

This commit is contained in:
Alex W. Jackson 2022-10-20 00:51:54 -04:00
parent f5f17cc73e
commit 7c1e823deb
5 changed files with 18 additions and 52 deletions

View file

@ -696,26 +696,6 @@ public abstract class PlayerImpl implements Player, Serializable {
}
}
/**
* Don't use this in normal card code, it's for more internal use. Always
* use the [Player].moveCards methods if possible for card movement of card
* code.
*
* @param card
* @param game
* @return
*/
@Override
public boolean putInHand(Card card, Game game) {
if (card.isOwnedBy(playerId)) {
card.setZone(Zone.HAND, game);
this.hand.add(card);
} else {
return game.getPlayer(card.getOwnerId()).putInHand(card, game);
}
return true;
}
@Override
public boolean removeFromHand(Card card, Game game) {
return hand.remove(card.getId());