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

Method setCounters

forge-game/src/main/java/forge/game/card/Card.java:1925–1941  ·  view source on GitHub ↗
(final Map<CounterType, Integer> allCounters)

Source from the content-addressed store, hash-verified

1923 }
1924
1925 @Override
1926 public final void setCounters(final Map<CounterType, Integer> allCounters) {
1927 boolean changed = counters.containsKey(CounterEnumType.MANABOND) || counters.keySet().stream().allMatch(CounterType::isKeywordCounter);
1928 counters = allCounters;
1929 view.updateCounters(this);
1930
1931 if (!isLKI()) {
1932 for (CounterType ct : counters.keySet()) {
1933 if (createCounterStatic(ct)) {
1934 changed = true;
1935 }
1936 }
1937 }
1938 if (changed) {
1939 updateKeywords();
1940 }
1941 }
1942
1943 @Override
1944 public final void clearCounters() {

Callers 15

changeZoneMethod · 0.95
getLKICopyMethod · 0.95
addCounterInternalMethod · 0.95
subtractCounterMethod · 0.95
putEtbCountersMethod · 0.95
getPumpedCreatureMethod · 0.95
voteMethod · 0.95
chooseSingleEntityMethod · 0.95
willPayUnlessCostMethod · 0.95

Calls 7

isLKIMethod · 0.95
createCounterStaticMethod · 0.95
updateKeywordsMethod · 0.95
containsKeyMethod · 0.80
allMatchMethod · 0.65
streamMethod · 0.65
updateCountersMethod · 0.45