private void LineUpBirds(float start) { if (birdSprites == null) return; int size = birdSprites.size(); for (int i = 0; i < size; i++) { BirdSprite cur = birdSprites.get(i); cur.setX(start); cur.setAngle(0); cur.setSpeed(0); start -= (Bird.getBirdWith() + 10); } }
public boolean outofLowerBound() { return bird.outofLowerBound(); }
public boolean outofVerticalBound() { return bird.outofVerticalBound(); }
public void setSpeed(float speed) { bird.setSpeed(speed); }
public void setAngle(float angle) { bird.setAngle(angle); setBirdSpritePosition(); }
public void setY(float y) { bird.setY(y); setBirdSpritePosition(); }
public void setX(float x) { bird.setX(x); setBirdSpritePosition(); }
public void move() { bird.move(); setBirdSpritePosition(); }
public void BirdJump() { bird.BirdJump(); setBirdSpritePosition(); }
public void moveoutofRightBound() { bird.setX(GameActivity.getCameraWidth() + Bird.getBirdWith() * 2); setBirdSpritePosition(); }
public void setBirdSpritePosition() { if (animatedSprite == null || bird == null) return; animatedSprite.setX(bird.getX()); animatedSprite.setY(bird.getY()); animatedSprite.setRotation(bird.getAngle()); }