mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 04:08:01 +00:00
Player: add getInboundTokens to make it accessable in Game#forEachCardInGame
This commit is contained in:
@@ -534,6 +534,7 @@ public class Game {
|
||||
visitor.visitAll(player.getZone(ZoneType.Battlefield).getCards(false));
|
||||
visitor.visitAll(player.getZone(ZoneType.Exile).getCards());
|
||||
visitor.visitAll(player.getZone(ZoneType.Command).getCards());
|
||||
visitor.visitAll(player.getInboundTokens());
|
||||
}
|
||||
visitor.visitAll(getStackZone().getCards());
|
||||
}
|
||||
|
||||
@@ -2804,6 +2804,10 @@ public class Player extends GameEntity implements Comparable<Player> {
|
||||
return false;
|
||||
}
|
||||
|
||||
public CardCollectionView getInboundTokens() {
|
||||
return inboundTokens;
|
||||
}
|
||||
|
||||
public void addInboundToken(Card c) {
|
||||
inboundTokens.add(c);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user