Sets up the first plane of a round.
()
| 2702 | * Sets up the first plane of a round. |
| 2703 | */ |
| 2704 | public void initPlane() { |
| 2705 | if (game.isGameOver()) |
| 2706 | return; |
| 2707 | Card firstPlane; |
| 2708 | view.updateCurrentPlaneName(""); |
| 2709 | game.getView().updatePlanarPlayer(getView()); |
| 2710 | PlayerZone planarDeck = getZone(ZoneType.PlanarDeck); |
| 2711 | |
| 2712 | while (!planarDeck.isEmpty()) { |
| 2713 | firstPlane = planarDeck.get(0); |
| 2714 | planarDeck.remove(firstPlane); |
| 2715 | if (firstPlane.getType().isPhenomenon()) { |
| 2716 | planarDeck.add(firstPlane); |
| 2717 | } else { |
| 2718 | currentPlanes.add(firstPlane); |
| 2719 | getZone(ZoneType.Command).add(firstPlane); |
| 2720 | break; |
| 2721 | } |
| 2722 | } |
| 2723 | game.setActivePlanes(currentPlanes); |
| 2724 | view.updateCurrentPlaneName(currentPlanes.toString().replaceAll(" \\(.*","").replace("[","")); |
| 2725 | } |
| 2726 | |
| 2727 | public CardCollectionView getInboundTokens() { |
| 2728 | return inboundTokens; |
no test coverage detected