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

Method clearCounters

forge-game/src/main/java/forge/game/card/Card.java:1943–1954  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1941 }
1942
1943 @Override
1944 public final void clearCounters() {
1945 if (counters.isEmpty()) { return; }
1946 boolean changed = counters.containsKey(CounterEnumType.MANABOND) || counters.keySet().stream().allMatch(CounterType::isKeywordCounter);
1947
1948 counters.clear();
1949 view.updateCounters(this);
1950
1951 if (changed) {
1952 updateKeywords();
1953 }
1954 }
1955
1956 public final int sumAllCounters() {
1957 int count = 0;

Callers 3

changeZoneMethod · 0.95
moveTgtAIMethod · 0.95
resolveMethod · 0.45

Calls 7

updateKeywordsMethod · 0.95
containsKeyMethod · 0.80
isEmptyMethod · 0.65
allMatchMethod · 0.65
streamMethod · 0.65
clearMethod · 0.45
updateCountersMethod · 0.45

Tested by

no test coverage detected