()
| 216 | } |
| 217 | |
| 218 | public void copyLastState() { |
| 219 | lastStateBattlefield.clear(); |
| 220 | lastStateGraveyard.clear(); |
| 221 | Map<Integer, Card> cachedMap = Maps.newHashMap(); |
| 222 | for (final Player p : getPlayers()) { |
| 223 | lastStateBattlefield.addAll(p.getZone(ZoneType.Battlefield).getLKICopy(cachedMap)); |
| 224 | lastStateGraveyard.addAll(p.getZone(ZoneType.Graveyard).getLKICopy(cachedMap)); |
| 225 | } |
| 226 | } |
| 227 | |
| 228 | public CardCollectionView copyLastState(ZoneType type) { |
| 229 | CardCollection result = new CardCollection(); |
no test coverage detected