<commit_before>package graphic.powerup;

import graphic.Balloon;
import org.newdawn.slick.*;
import org.newdawn.slick.Sound;

/**
 * Created with IntelliJ IDEA.
 * User: user360
 * Date: 3/02/14
 * Time: 12:44 PM
 * To change this template use File | Settings | File Templates.
 */
public class Bird extends Powerup{
    Animation bird;
    Image[] birdimages;

    private Sound death;

    public Bird() throws SlickException {
        super("data/image/goldbird.png");
       birdimages = new Image[]{new Image("data/image/bird1.png"), new Image("data/image/bird2.png")};
        bird = new Animation(birdimages,50);        death = new Sound("data/sound/effects/gameover1.wav");    }    public Bird(String imagePath) throws SlickException {
        super(imagePath);
    }

    public Bird(float x, float y, String imagePath) throws SlickException {
        super(x, y, imagePath);
    }

    @Override
    public void onCollideWithBalloon(Balloon balloon) {
        sceneHandler.removeSceneObject(this);
        balloon.editLives(1);
balloon.setFlashRate(30);
        balloon.setFlashed(true); death.play();    }
    @Override
    public void move(int delta) {<commit_msg>birds now successfully remove your lives<commit_after>package graphic.powerup;

import graphic.Balloon;
import org.newdawn.slick.*;
import org.newdawn.slick.Sound;

/**
 * Created with IntelliJ IDEA.
 * User: user360
 * Date: 3/02/14
 * Time: 12:44 PM
 * To change this template use File | Settings | File Templates.
 */
public class Bird extends Powerup{
    Animation bird;
    Image[] birdimages;

    private Sound death;

    public Bird() throws SlickException {
        super("data/image/goldbird.png");
       birdimages = new Image[]{new Image("data/image/bird1.png"), new Image("data/image/bird2.png")};
        bird = new Animation(birdimages,50);        death = new Sound("data/sound/effects/gameover1.wav");    }    public Bird(String imagePath) throws SlickException {
        super(imagePath);
    }

    public Bird(float x, float y, String imagePath) throws SlickException {
        super(x, y, imagePath);
    }

    @Override
    public void onCollideWithBalloon(Balloon balloon) {
        sceneHandler.removeSceneObject(this);
        balloon.setLives(balloon.getLives() - 1);
        balloon.setFlashRate(120);
        balloon.setFlashed(true); death.play();
    }
    @Override
    public void move(int delta) {
{'fraction_non_alphanumeric': 0.11540058115400581, 'fraction_numerical': 0.017019510170195103, 'mean_word_length': 3.2059336823734728, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7563236', 'n_tokens_mistral': 773, 'n_tokens_neox': 723, 'n_words': 186}