(Card c)
| 243 | } |
| 244 | |
| 245 | public void updateLastStateForCard(Card c) { |
| 246 | if (c == null || c.getZone() == null) { |
| 247 | return; |
| 248 | } |
| 249 | |
| 250 | ZoneType zone = c.getZone().getZoneType(); |
| 251 | CardCollection lookup = zone.equals(ZoneType.Battlefield) ? lastStateBattlefield |
| 252 | : zone.equals(ZoneType.Graveyard) ? lastStateGraveyard |
| 253 | : null; |
| 254 | |
| 255 | if (lookup != null) { |
| 256 | lastStateBattlefield.remove(c); |
| 257 | lastStateGraveyard.remove(c); |
| 258 | lookup.add(CardCopyService.getLKICopy(c)); |
| 259 | } |
| 260 | } |
| 261 | |
| 262 | private final GameEntityCache<Player, PlayerView> playerCache = new GameEntityCache<>(); |
| 263 | public Player getPlayer(PlayerView playerView) { |
no test coverage detected