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

Method find

forge-game/src/main/java/forge/game/GameSnapshot.java:463–472  ·  view source on GitHub ↗
(GameObject o)

Source from the content-addressed store, hash-verified

461 }
462
463 public GameObject find(GameObject o) {
464 // Is this finding the object in the new game?
465 if (o instanceof Card) {
466 return findBy(newGame, (Card) o);
467 } else if (o instanceof Player) {
468 return findBy(newGame, (Player) o);
469 }
470
471 return null;
472 }
473 public GameObject reverseFind(GameObject o) {
474 // Is this finding the object in the orig game?
475 if (o instanceof Card) {

Callers 1

assignGameStateMethod · 0.95

Calls 1

findByMethod · 0.95

Tested by

no test coverage detected