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

Method appendCards

forge-game/src/main/java/forge/game/GameState.java:152–156  ·  view source on GitHub ↗
(Map<ZoneType, String> cardTexts, String categoryPrefix, StringBuilder sb)

Source from the content-addressed store, hash-verified

150 }
151
152 private void appendCards(Map<ZoneType, String> cardTexts, String categoryPrefix, StringBuilder sb) {
153 for (Entry<ZoneType, String> kv : cardTexts.entrySet()) {
154 sb.append(TextUtil.concatNoSpace(categoryPrefix, ZONES.get(kv.getKey()), "=", kv.getValue(), "\n"));
155 }
156 }
157
158 public void initFromGame(Game game) {
159 playerStates.clear();

Callers 1

toStringMethod · 0.95

Calls 5

concatNoSpaceMethod · 0.95
getMethod · 0.65
appendMethod · 0.45
getKeyMethod · 0.45
getValueMethod · 0.45

Tested by

no test coverage detected