Example #1
0
  public boolean checkSelfBirdCollision(PipeManager pipeManager) {
    if (pipeManager == null) return false;

    BirdSprite me = birdSprites.get(ReceiveDataStorage.getPlayerLabel());
    boolean check = pipeManager.isCollided(me.getAnimatedSprite()) || me.outofLowerBound();
    if (check) me.StopAnimation();
    return check;
  }
Example #2
0
  public boolean checkSelfBirdPassPipePair(PipeManager pipeManager) {
    if (pipeManager == null) return false;

    BirdSprite me = birdSprites.get(ReceiveDataStorage.getPlayerLabel());
    return pipeManager.isPassed(me.getAnimatedSprite());
  }