<commit_before>package graphic.powerup;

import game.Game;
import graphic.Balloon;
import graphic.BalloonEffect;
import org.newdawn.slick.Graphics;
import org.newdawn.slick.Image;
import org.newdawn.slick.SlickException;
import org.newdawn.slick.Sound;

/**
 * Created with IntelliJ IDEA.
 * User: user360
 * Date: 5/02/14
 * Time: 1:15 PM
 * To change this template use File | Settings | File Templates.
 */
public class PShield extends Powerup implements BalloonEffect {

    private Image circle = new Image("data/image/bubble.png");

    private int invisibleInterval;

    private int counter;


<<<<<<< HEAD


=======
>>>>>>> 6006a949df11b0e9770a198d519df3f1fbee513f
    public PShield() throws SlickException {
        super("data/image/shield.png");
        this.invisibleInterval = 2500;
    }

    @Override
    public void onCollideWithBalloon(Balloon balloon) {
        balloon.addBalloonEffect(this, "shield");
        sceneHandler.removeSceneObject(this);
        Game.AUDIO.SHIELD_POP.play(1,0.8f);
    }


    @Override
    public void drawOnBalloon(Balloon balloon, Graphics graphics) {
        if (!sceneHandler.isPaused()) {
            balloon.setLockLife(true);
            balloon.setRenderLock(false);
            counter++;<commit_msg>got rid of merge junk<commit_after>package graphic.powerup;

import game.Game;
import graphic.Balloon;
import graphic.BalloonEffect;
import org.newdawn.slick.Graphics;
import org.newdawn.slick.Image;
import org.newdawn.slick.SlickException;
import org.newdawn.slick.Sound;

/**
 * Created with IntelliJ IDEA.
 * User: user360
 * Date: 5/02/14
 * Time: 1:15 PM
 * To change this template use File | Settings | File Templates.
 */
public class PShield extends Powerup implements BalloonEffect {

    private Image circle = new Image("data/image/bubble.png");

    private int invisibleInterval;

    private int counter;


    public PShield() throws SlickException {
        super("data/image/shield.png");
        this.invisibleInterval = 2500;
    }

    @Override
    public void onCollideWithBalloon(Balloon balloon) {
        balloon.addBalloonEffect(this, "shield");
        sceneHandler.removeSceneObject(this);
        Game.AUDIO.SHIELD_POP.play(1,0.8f);
    }


    @Override
    public void drawOnBalloon(Balloon balloon, Graphics graphics) {
        if (!sceneHandler.isPaused()) {
            balloon.setLockLife(true);
            balloon.setRenderLock(false);
            counter++;
{'fraction_non_alphanumeric': 0.1071719641401793, 'fraction_numerical': 0.024857375713121434, 'mean_word_length': 3.3374558303886928, 'pattern_counts': {'":': 0, '<': 10, '<?xml version=': 0, '>': 10, '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': '6697541', 'n_tokens_mistral': 835, 'n_tokens_neox': 753, 'n_words': 169}