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

Method invoke

forge-game/src/main/java/forge/game/GameAction.java:2528–2534  ·  view source on GitHub ↗
(final Runnable proc)

Source from the content-addressed store, hash-verified

2526
2527 // Invokes given runnable in Game thread pool - used to start game and perform actions from UI (when game-0 waits for input)
2528 public void invoke(final Runnable proc) {
2529 if (ThreadUtil.isGameThread()) {
2530 proc.run();
2531 } else {
2532 ThreadUtil.invokeInGameThread(proc);
2533 }
2534 }
2535
2536 public void becomeMonarch(final Player p, final String set) {
2537 final Player previous = game.getMonarch();

Callers 15

applyToGameMethod · 0.80
updateManaPoolMethod · 0.80
getRealScreenSizeMethod · 0.80
generateManaMethod · 0.80
tutorForCardMethod · 0.80
tapPermanentsMethod · 0.80
untapPermanentsMethod · 0.80
addTokenToBattlefieldMethod · 0.80
addCardToZoneMethod · 0.80
riggedPlanarRollMethod · 0.80
planeswalkToMethod · 0.80
releaseGameThreadMethod · 0.80

Calls 3

isGameThreadMethod · 0.95
invokeInGameThreadMethod · 0.95
runMethod · 0.65

Tested by

no test coverage detected