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; }
public boolean checkSelfBirdPassPipePair(PipeManager pipeManager) { if (pipeManager == null) return false; BirdSprite me = birdSprites.get(ReceiveDataStorage.getPlayerLabel()); return pipeManager.isPassed(me.getAnimatedSprite()); }