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

Method getController

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

Source from the content-addressed store, hash-verified

3727 }
3728
3729 public final Player getController() {
3730 Entry<Long, Player> lastEntry = tempControllers.lastEntry();
3731 if (lastEntry != null) {
3732 final long lastTimestamp = lastEntry.getKey();
3733 if (lastTimestamp > controllerTimestamp) {
3734 return lastEntry.getValue();
3735 }
3736 }
3737 if (controller != null) {
3738 return controller;
3739 }
3740 return owner;
3741 }
3742
3743 public final void setController(final Player player, final long tstamp) {
3744 tempControllers.clear();

Callers 15

getAlternativeCostsMethod · 0.95
processCardsForZoneMethod · 0.95
copyGameStateMethod · 0.95
ceaseToExistMethod · 0.95
checkStaticAbilitiesMethod · 0.95
dealDamageMethod · 0.95
getReplacementListMethod · 0.95
executeReplacementMethod · 0.95
canReplaceMethod · 0.95
canReplaceMethod · 0.95
AttackRequirementMethod · 0.95

Calls 2

getKeyMethod · 0.45
getValueMethod · 0.45

Tested by 1