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

Method getState

forge-game/src/main/java/forge/game/card/Card.java:508–517  ·  view source on GitHub ↗
(final CardStateName state)

Source from the content-addressed store, hash-verified

506 }
507
508 public CardState getState(final CardStateName state) {
509 if (state == CardStateName.FaceDown) {
510 return getFaceDownState();
511 }
512 CardCloneStates clStates = getLastClonedState();
513 if (clStates == null) {
514 return getOriginalState(state);
515 }
516 return clStates.get(state);
517 }
518
519 public boolean hasState(final CardStateName state) {
520 if (state == CardStateName.FaceDown || state == CardStateName.EmptyRoom) {

Callers 15

getLKICopyMethod · 0.95
setStateMethod · 0.95
isAdventureCardMethod · 0.95
getAbilityTextMethod · 0.95
updateSpellAbilitiesMethod · 0.95
getAllSpellAbilitiesMethod · 0.95
updateKeywordsCacheMethod · 0.95
hasPlayableLandFaceMethod · 0.95
sharesNameWithMethod · 0.95
getCMCMethod · 0.95

Calls 4

getFaceDownStateMethod · 0.95
getLastClonedStateMethod · 0.95
getOriginalStateMethod · 0.95
getMethod · 0.95

Tested by

no test coverage detected