(GameObject o)
| 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) { |