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

Method getSVar

forge-game/src/main/java/forge/game/card/Card.java:1979–1986  ·  view source on GitHub ↗
(final String var)

Source from the content-addressed store, hash-verified

1977 }
1978
1979 public final String getSVar(final String var) {
1980 for (Map<String, String> map : changedSVars.values()) {
1981 if (map.containsKey(var)) {
1982 return map.get(var);
1983 }
1984 }
1985 return currentState.getSVar(var);
1986 }
1987
1988 public final boolean hasSVar(final String var) {
1989 for (Map<String, String> map : changedSVars.values()) {

Callers 15

initVariantsZonesMethod · 0.95
areMetMethod · 0.95
hasConvergeMethod · 0.95
keywordsToTextMethod · 0.95
resolveMethod · 0.95
rollDiceForPlayerMethod · 0.95
resolveMethod · 0.95
resolveMethod · 0.95
resolveMethod · 0.95
visitMethod · 0.95
chooseManaAbilityMethod · 0.95

Calls 4

valuesMethod · 0.80
containsKeyMethod · 0.80
getMethod · 0.65
getSVarMethod · 0.65

Tested by

no test coverage detected