MCPcopy Create free account
hub / github.com/Card-Forge/forge / initPlane

Method initPlane

forge-game/src/main/java/forge/game/player/Player.java:2704–2725  ·  view source on GitHub ↗

Sets up the first plane of a round.

()

Source from the content-addressed store, hash-verified

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;

Callers 1

startGameMethod · 0.95

Calls 15

getViewMethod · 0.95
getZoneMethod · 0.95
getTypeMethod · 0.95
updatePlanarPlayerMethod · 0.80
setActivePlanesMethod · 0.80
getViewMethod · 0.65
isEmptyMethod · 0.65
getMethod · 0.65
isPhenomenonMethod · 0.65
addMethod · 0.65
isGameOverMethod · 0.45

Tested by

no test coverage detected