<commit_before>package com.mpu.spinv.game.states.gameplaystate;

import com.mpu.spinv.engine.model.GameEntity;
import com.mpu.spinv.utils.Constants;

/**
 * Boss.java
 * 
 * @author <NAME>
 * @date 2017-12-15
 */
public class Boss extends GameEntity {
	
	// ---------------- Constants ----------------
	
	private static final int WIDTH = 00;
	private static final int HEIGHT = 00;
	
	private static final int INITIAL_X = Constants.WINDOW_WIDTH / 2 - WIDTH / 2;
	private static final int INITIAL_Y = Constants.WINDOW_WIDTH / 2 - WIDTH / 2;
	
	private final int VELOCITY = 5;
	
	private static final boolean INITIAL_VISIBILITY = false;
	
	public Boss() {
		super(INITIAL_X, INITIAL_Y, INITIAL_VISIBILITY);
	}

}<commit_msg>Added more sample guidance code for the boss<commit_after>package com.mpu.spinv.game.states.gameplaystate;

import java.awt.image.BufferedImage;
import java.io.IOException;

import javax.imageio.ImageIO;

import com.mpu.spinv.engine.model.GameEntity;
import com.mpu.spinv.engine.model.Sprite;
import com.mpu.spinv.utils.Constants;

/**
 * Boss.java
 * 
 * @author <NAME>
 * @date 2017-12-15
 */
public class Boss extends GameEntity {
	
	// ---------------- Constants ----------------
	
	private static final int WIDTH = 183;
	private static final int HEIGHT = 162;
	
	private static final int INITIAL_X = Constants.WINDOW_WIDTH / 2 - WIDTH / 2;
	private static final int INITIAL_Y = Constants.WINDOW_WIDTH / 2 - WIDTH / 2;
	
	private final int VELOCITY = 5;
	
	private static final boolean INITIAL_VISIBILITY = false;
	
	// Entity features
	
	private int life = 10;
	
	public Boss() {
		super(INITIAL_X, INITIAL_Y, INITIAL_VISIBILITY);
		
		// Setting up the boss sprite
		BufferedImage image = null;
		try {
			image = ImageIO.read(Boss.class.getResource("/resources/img/ugly_boss.png"));
		} catch (IOException e) {
			e.printStackTrace();
		}
		setStaticSprite(new Sprite(image));
		
		// Boss setup
		setScreenBound(false);
		setVelocity(VELOCITY, VELOCITY);
	}
	
	public void decrementLife() {
		if (life > 1)
			life--;
		else {
			// Ends game
		}
	}

}
{'fraction_non_alphanumeric': 0.13407015857760693, 'fraction_numerical': 0.01874098990869774, 'mean_word_length': 3.0505836575875485, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 6, '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': '411646', 'n_tokens_mistral': 801, 'n_tokens_neox': 689, 'n_words': 179}